You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2022/09/30 02:19:02 UTC

[GitHub] [cordova] breautek commented on issue #340: android:exported duplicates the activity

breautek commented on issue #340:
URL: https://github.com/apache/cordova/issues/340#issuecomment-1263025847

   cordova-android has the patch which landed in version [10.1.2](https://github.com/apache/cordova-android/blob/master/RELEASENOTES.md#1012-apr-11-2022) for the `android:exported`.
   
   Cordova-android will manage the main activity, but if third-party plugins or libraries provides their own activities that may need to be updated as well. In those cases, the plugin maintainers needs to update their plugins to use the `android:exported` on the activities they include.
   
   The particular duplicate error is because you have two `<activity>` tags with the same `android:name` attribute. This could be caused by a conflict between your `<edit-config>` rules and (presumably) the plugin that adds these activity entries. If the plugin maintainers are unable or otherwise unwilling to update their plugins, it may be best to fork the plugin if their license allows it. Alternatively you can try writing a [hook](https://cordova.apache.org/docs/en/11.x/guide/appdev/hooks/index.html) instead of using `<edit-config>` that manipulates the `AndroidManifest`. 
   
   There are several known issues on `<edit-config>` that makes it very difficult to use, unfortunately. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org