Building the apk using the ant script .

前端 未结 3 574
隐瞒了意图╮
隐瞒了意图╮ 2021-01-06 13:51

I am facing problem in creating the .apk file using the ant script . The generated .apk named as _unaligned.apk instead of .apk and on installing the _unaligned.apk file to

相关标签:
3条回答
  • 2021-01-06 14:23

    this Bloq entry explains all necessary steps. Especially if you want to customize your build script.

    If your are looking for the actual build script, just look into your Android SDK folder platforms/android-X/templates. There should be a file called android_rules.xml.

    I customized my build script to clean, build, sign and distributing the apk to an attached device. If you like, I can provide you with my script. Just contact me!

    0 讨论(0)
  • 2021-01-06 14:24

    What ant command are you running at the command / terminal prompt?

    I have been having different problems with manually running ant (Repackage apk file to contain custom assets what build tool to use) and there might be some info on that thread to help you.

    Alternatively, remember that one needs to sign the apk file before deploying it (see Joubarc's link).

    0 讨论(0)
  • 2021-01-06 14:46

    You'll need to use zipalign & sign your apk with some key; as long as you're testing the app you can simply use the debug key with ant debug

    At least that's what I understand from this page which you may want to read carefully.

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