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/01/14 11:25:32 UTC

[GitHub] [cordova] AndrewBal opened a new issue #312: Can't build apk for Android 12. Cordova

AndrewBal opened a new issue #312:
URL: https://github.com/apache/cordova/issues/312


   Please help me with a problem
   
   When I try to install the application after building it on Android 12 emulator, AndroidStudio throws errors for some services:
   
   _Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed pars e during installPackageLI: /data/app/vmdl1492588574.tmp/base.apk (at Binary XML file line #105): com.adobe.phonegap.push.FCMService: Targeting S+ (version 31 and above) requires that a n explicit value for android:exported be defined when intent filters are present]_
   
   To avoid this error I add **android:exported="false"** Like this
   
      ```
    <service android:exported="false" android:name="com.adobe.phonegap.push.FCMService">
                   <intent-filter>
                       <action android:name="com.google.firebase.MESSAGING_EVENT" />
                   </intent-filter>
               </service>
   ```
   
      
   But because of this, an error appears already at the time of building the apk and the service is duplicated in the AndroidManifest below:
   
   _Element service#com.adobe.phonegap.push.FCMService at AndroidManifest.xml:29:9-33:19 duplicated with element declared at AndroidManifest.xml:19:9-23:19_


-- 
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


[GitHub] [cordova] AndrewBal closed issue #312: Can't build apk for Android 12. Cordova

Posted by GitBox <gi...@apache.org>.
AndrewBal closed issue #312:
URL: https://github.com/apache/cordova/issues/312


   


-- 
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