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/01/04 06:47:58 UTC

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

eviv3k opened a new issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387


   # Bug Report
   
   ## Problem
   If use `cordova build android --release -- --packageType=apk` then an apk file is generated.  (when cordova-android is 10.x)
   
   I get the error message "App not installed" when I try to install the .apk. It runs fine (download the APK from the play store).
   
   ### What is expected to happen?
   The --packageType=apk flag should control an apk file is generated. I get the error message "App not installed".
   
   
   ### What does actually happen?
   The --packageType=apk flag should control an apk file is generated. I need to test a release build.
   
   ### Information
   ### Command or Code
   `cordova build android --release --packageType=apk`
   
   ### Environment, Platform, Device
   Only happens when cordova-android is version 10 or higher
   
   ### Version information
   Cordova CLI: 10.0.0
   Cordova Platforms: android 10.1.0
   Android SDK Tools : 30.0.3
   NodeJS : v14.16.1
   npm : 6.14.12
   OS : Window
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


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


[GitHub] [cordova-android] breautek commented on issue #1387: Error 'App not Installed' use --packageType=apk flag

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387#issuecomment-1077823344


   > OS : Window
   
   On windows, particularly with powershell, instead of
   
   `cordova build android --release -- --packageType=apk`
   
   You need to wrap the intermediate `--` in quotations, like so:
   
   `cordova build android --release "--" --packageType=apk`
   
   Closing this issue cause I don't believe this is an actual bug.


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


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

Posted by GitBox <gi...@apache.org>.
dpchami edited a comment on issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387#issuecomment-1044291805


   same problem happen to me
   Any solution available?


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


[GitHub] [cordova-android] gmalignon commented on issue #1387: Error 'App not Installed' use --packageType=apk flag

Posted by GitBox <gi...@apache.org>.
gmalignon commented on issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387#issuecomment-1073299298


   Thank you so much!!! I was trying to figure out for hours why APKs generated were not working any more. 
   This really saved me, it works!!!


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


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

Posted by GitBox <gi...@apache.org>.
eviv3k commented 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\vivek.singh\Desktop\bundletool-all-1.8.2.jar" build-apks --mode=universal --bundle="C:\Users\vivek.singh\Desktop\app-release.aab" --output="C:\Users\eviv3k\Desktop\my_app.apks" --ks="D:\Works\Ionic\B23\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


[GitHub] [cordova-android] JLWINC commented on issue #1387: Error 'App not Installed' use --packageType=apk flag

Posted by GitBox <gi...@apache.org>.
JLWINC commented on issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387#issuecomment-1026775976


   @eviv3k  do you find any solution ?


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


[GitHub] [cordova-android] dpchami commented on issue #1387: Error 'App not Installed' use --packageType=apk flag

Posted by GitBox <gi...@apache.org>.
dpchami commented on issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387#issuecomment-1044291805


   same happen to me
   Any solution available?


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


[GitHub] [cordova-android] breautek closed issue #1387: Error 'App not Installed' use --packageType=apk flag

Posted by GitBox <gi...@apache.org>.
breautek closed issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387


   


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


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

Posted by GitBox <gi...@apache.org>.
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


[GitHub] [cordova-android] breautek commented on issue #1387: Error 'App not Installed' use --packageType=apk flag

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387#issuecomment-1030467660


   There seems to be some kind of disconnect. `cordova build...` responsibility is build a distributable binary in either a form of a bundle or apk. Which it sounds like it's doing successfully.
   
   > "App not installed"
   
   What is showing this error message and what is being done leading up to this error message? (e.g. are you using `adb` or `cordova run` or some other method of installing the 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


[GitHub] [cordova-android] JLWINC commented on issue #1387: Error 'App not Installed' use --packageType=apk flag

Posted by GitBox <gi...@apache.org>.
JLWINC commented on issue #1387:
URL: https://github.com/apache/cordova-android/issues/1387#issuecomment-1018281964


   +1 same error , do you find any solution ?


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