Using SDK 31 you need to actively set android:exported="true" to every intent inside your manifest explicitely. I did this and everything is fine.
The moment I ran ionic cordova build the plugin.xml will be merged with the AndroidManifest.xml. This will cause a duplicate fragment error, because there are two intents, from your plugin.xml and the manually edited with android:exported="true"
For me the fix was to edit node_modules/cordova-plugin-camera-preview/plugin.xml:
Maybe the same error from #585
Using SDK 31 you need to actively set
android:exported="true"
to every intent inside your manifest explicitely. I did this and everything is fine.The moment I ran
ionic cordova build
the plugin.xml will be merged with the AndroidManifest.xml. This will cause a duplicate fragment error, because there are two intents, from your plugin.xml and the manually edited withandroid:exported="true"
For me the fix was to edit
node_modules/cordova-plugin-camera-preview/plugin.xml
:I dont know what
android:exported="true"
is doing and I dont care. (I'm so done with the android platform)Maybe you can add this too so everybody does not need to figure this out on themself? 🫶