You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/02/20 08:03:43 UTC

[GitHub] [cordova-android] eviv3k edited a comment on issue #1387: Error 'App not Installed' use --packageType=apk flag

eviv3k edited a comment on issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387#issuecomment-1046183911


   @JLWINC @dpchami 
   The complete way we had to do:
   
   1. Download `bundletool-all-1.8.2.jar` from [this link](https://github.com/google/bundletool/releases), download the latest version available.
   
   2. Create an app bundle using cordova `cordova build android --prod --release` 
   
   3. Copy the bundletool jar to some location and get its path. In my case its `C:\Users\eviv3k\Desktop\bundletool-all-1.8.2.jar`
   
   4. Use this command: `java -jar "BUNDLE_TOOL_JAR_PATH" build-apks --mode=universal --bundle="BUNDLE_PATH" --output=YOUR_OUTPUT_NAME.apks` In my case it will be `java -jar "C:\Users\eviv3k\Desktop\bundletool-all-1.8.2.jar" build-apks --mode=universal --bundle="C:\Users\eviv3k\Desktop\app-release.aab" --output="C:\Users\eviv3k\Desktop\my_app.apks" --ks="D:\Works\certificates\my-release-key.keystore" --ks-key-alias=alias_name"`
   
   5. This will create a file `my_app.apks`, rename it to .zip `my_app.zip`, extract this file, and done You will have `universal.apk`.
   


-- 
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: issues-unsubscribe@cordova.apache.org

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



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