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

前端 未结 6 2230
陌清茗
陌清茗 2020-12-30 04:48

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

相关标签:
6条回答
  • 2020-12-30 04:50

    Check out platforms/android/build.xml for where "HelloWorld" comes from, maybe. In my case, I have a line that says

    <project name="CordovaApp" default="help">
    

    and my app gets named "CordovaApp-release.apk", instead of what I have in config.xml. I assume the "cordova platform add android" is doing something slightly wrong, but not entirely sure.

    0 讨论(0)
  • 2020-12-30 04:53

    in the newest versions the apk file should be located at /platforms/android/app/build/outputs/apk/release/

    0 讨论(0)
  • 2020-12-30 04:55

    Phonegap 5.4.0 puts them in platforms/android/build/outputs/apk

    I ran phonegap build --release to do this. Still trying to figure all this out however!

    0 讨论(0)
  • 2020-12-30 04:58

    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.

    0 讨论(0)
  • 2020-12-30 05:02

    Are you using eclipse? If so, take a look at this tutorial. This will allow you to export to a .apk file.

    http://examples.javacodegeeks.com/android/core/build-android-application-package-file-apk-using-eclipse-ide/

    0 讨论(0)
  • 2020-12-30 05:12

    I am guessing they moved the location of the apk again. Here is my version and the new location:

    >phonegap -v

    8.0.0

    location of apk after

    >phonegap build android --release

    [project_folder]\platforms\android\app\build\outputs\apk\release

    Note the extra \app folder.

    0 讨论(0)
提交回复
热议问题