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

Runtime exception #381

Open
jondspa opened this issue Jan 24, 2023 · 3 comments
Open

Runtime exception #381

jondspa opened this issue Jan 24, 2023 · 3 comments

Comments

@jondspa
Copy link

jondspa commented Jan 24, 2023

Hi -

Longtime user of this great plugin! Thanks!

Trying to upgrade to API 31. App compiles but crashes immediately on a device. Getting this error in logcat:

java.lang.RuntimeException: Unable to get provider de.appplant.cordova.emailcomposer.Provider: java.lang.SecurityException: Provider must not be exported

I've gone into this plugin's plugin.xml and see exported is set to false. I've tried true, I've taken out android:exported="false", and I've taken out the whole provider section. Always same error. I've tried 0.9.2 and 0.10.1.

Any ideas?

  • Jon
@jfoclpf
Copy link
Collaborator

jfoclpf commented Jan 25, 2023

I am using the plugin in API 30 to 33 with no problems.

It crashes immediately right after opening the APP?
I'm not versed in Java, but the cordova APP has the file plugins/cordova-plugin-email-composer/src/android/Provider.java. Here!

Have you tried commenting some of those lines?

This plugin has 343 forks, you may also check if one of those found any solution and be kind to share it with us :)

@jfoclpf
Copy link
Collaborator

jfoclpf commented Jan 25, 2023

maybe androidX issue? If that's the case you'll need the plugin cordova-plugin-androidx-adapter

@Akash-Tapadia-DFT
Copy link

Having the same issue, commenting the Provider.java helped me

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

No branches or pull requests

3 participants