Cordova only creates Debug APK (android-debug.apk)
Question by Guest | 2016-10-30 at 18:26
I have written an HTML5 App using Cordova and now I would like to create my App or APK for testing it on my smartphone.
For this, I have executed the following command via the terminal in the project directory:
cordova build android
However, this command only seems to create a Debug-APK. At least I can only find a file named android-debug.apk in the output folder \platforms\android\build\outputs\apk after compiling.
I assume that this file is not intended for release or publishing it. Indeed, it is working on my phone, but it seems not to be the end version because of that name. How to create a Cordova App without debug addition?
Related Topics
Android Splash Screen Tutorial
Tutorial | 0 Comments
Cordova Release APK not working
Question | 1 Answer
Android Table Layout with columns of equal width
Tutorial | 0 Comments
Cordova: Batch Script closes automatically
Question | 1 Answer
Android Getting Sound Levels
Open Question | 1 Answer
Android SDK Manager: Problem with installing packages "File not Found (Access is denied) Done. Nothing was installed"
Question | 4 Answers
Android Programming: Open URL/Set Link to Website
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
Instead of "cordova build android" you have to use the command "cordova build android --release". So, you just have to prepend "--release" as a parameter behind your command.
Thereby, instead of creating "android-debug.apk" the APK "android-release-unsigned.apk" will be created.
However, before releasing, the app has to be signed. You can find some instructions here.
2016-10-30 at 21:26