Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App keeps crashing #8

Open
nesha14586 opened this issue Oct 27, 2021 · 5 comments
Open

App keeps crashing #8

nesha14586 opened this issue Oct 27, 2021 · 5 comments

Comments

@nesha14586
Copy link

I installed the plugin, copied the example, built the app and I am getting the file chooser and can see files on my device, but whenever I select a file, the app crashes, it just closes the app.

Ionic:

Ionic CLI : 6.18.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.8.4
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.2.11
@angular/cli : 12.1.4
@ionic/angular-toolkit : 4.0.0

Capacitor:

Capacitor CLI : 3.2.5
@capacitor/android : 3.2.5
@capacitor/core : 3.2.5
@capacitor/ios : 3.2.5

@GarageGadget
Copy link

I have experienced the same issue.

The problem is as result of an IllegalArgumentException:
java.lang.IllegalArgumentException: method com.epicshaggy.filepicker.FilePicker.filePickerResult argument 2 has type android.app.Instrumentation$ActivityResult, got androidx.activity.result.ActivityResult

@nesha14586
Copy link
Author

I have experienced the same issue.

The problem is as result of an IllegalArgumentException: java.lang.IllegalArgumentException: method com.epicshaggy.filepicker.FilePicker.filePickerResult argument 2 has type android.app.Instrumentation$ActivityResult, got androidx.activity.result.ActivityResult

How did you bypass it? Is the change in plugin needed?

@GarageGadget
Copy link

GarageGadget commented Feb 4, 2022 via email

@nesha14586
Copy link
Author

I ended up using an alternative plugin. However, the problem seems that the plugin must be updated to Android X to resolve the issue. From: nesha14586 @.> Sent: Friday, 04 February 2022 16:50 To: epicshaggy/capacitor-file-picker @.> Cc: GarageGadget @.>; Comment @.> Subject: Re: [epicshaggy/capacitor-file-picker] App keeps crashing (Issue #8) I have experienced the same issue. The problem is as result of an IllegalArgumentException: java.lang.IllegalArgumentException: method com.epicshaggy.filepicker.FilePicker.filePickerResult argument 2 has type android.app.Instrumentation$ActivityResult, got androidx.activity.result.ActivityResult How did you bypass it? Is the change in plugin needed? — Reply to this email directly, view it on GitHub <#8 (comment)> , or unsubscribe https://github.com/notifications/unsubscribe-auth/AF5FPOZQJ322QOZSPMYIBLDUZPRRJANCNFSM5G3HMZGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you commented. https://github.com/notifications/beacon/AF5FPO4YAQFVK7UEOIQFJILUZPRRJA5CNFSM5G3HMZG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHVSW2AI.gif Message ID: @.*** @.***> >

Thanks. Would you mind sharing the alternative plugin?

@GarageGadget
Copy link

GarageGadget commented Feb 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants