capacitor-community/bluetooth-le

Task :capacitor-community-bluetooth-le:processDebugAndroidTestManifest FAILED

Closed this issue · 1 comments

Hi
I am using your plugin with Ionic 7 with capacitor, i recently updated from Ionic 6 to 7 and i am now getting these errors in Andriod Studio, can you please advise what needs to be done to solve this issue?

`> Task :capacitor-community-bluetooth-le:processDebugAndroidTestManifest FAILED
G:\AVR_Project\Ionic Projects\App0001-AardraCloud\node_modules\@capacitor-community\bluetooth-le\android\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest1582303344738873100.xml Error:
	android:exported needs to be explicitly specified for element <activity#androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
G:\AVR_Project\Ionic Projects\App0001-AardraCloud\node_modules\@capacitor-community\bluetooth-le\android\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest1582303344738873100.xml Error:
	android:exported needs to be explicitly specified for element <activity#androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
G:\AVR_Project\Ionic Projects\App0001-AardraCloud\node_modules\@capacitor-community\bluetooth-le\android\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest1582303344738873100.xml Error:
	android:exported needs to be explicitly specified for element <activity#androidx.test.core.app.InstrumentationActivityInvoker$EmptyFloatingActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

`

It seems that you updated Capacitor from v3 to a newer version and didn't add android:exported. See https://capacitorjs.com/docs/updating/4-0#add-androidexported-tag-to-your-android-manifest.

This is not an issue with this plugin but with your Capacitor version.