Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is APK file stored after phonegap android build is successful?

I don't understand where can I find my package that is compiled so I can copy it into my device and install it from there.

What I did is create an empty project, then made build on it with no errors, however, I cannot find .apk file.

\platforms\android\bin has HelloWorld-debug.apk but I don't want to debug package but a normal one.

I tried phonegap build android as well as phonegap build android local and no difference was found between these two commands. Also, why is it even named HelloWorld if I named my project lololol?

like image 867
Stan Avatar asked Dec 16 '13 15:12

Stan


People also ask

Where are Android APK files stored?

Finding APK Files If you want to locate the APK files in your Android phones, you can find the APK for user-installed apps under /data/app/directory while the preinstalled ones are located in /system/app folder and you can access them by using ES File Explorer.

Where are APK files in ionic?

Next, we can find our unsigned APK file in platforms/android/build/outputs/apk . In our example, the file was platforms/android/build/outputs/apk/HelloWorld-release-unsigned.


1 Answers

You can change the name of the app after to create the project, in the file:

ProjectFolder/www/config.xml

After that, you have to build again the project. If you want the release version, go to

ProjectFolder/platforms/android/cordova

and then execute the command:

cordova build --release

This creates an unsigned release APK at ProjectFolder/platforms/android/bin folder, called YourAppName-release-unsigned.apk.

like image 180
jgarciabt Avatar answered Sep 23 '22 13:09

jgarciabt