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
?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With