How can I specify location of debug keystore for Android ant debug builds?

前端 未结 7 1206
北荒
北荒 2020-12-01 05:36

Is it possible to specify the location of a self created debug keystore when creating debug .apk\'s (-debug.apk) with ant

7条回答
  •  猫巷女王i
    2020-12-01 05:51

    As far as I've seen so far no existing solution works with the latest ant version.

    The only primitive way of doing it is to replace the default debug.keystore its in default folder.

    The default location is the .android folder. Usually at C:\Users\USER_NAME.android On windows you can get to it using %USERPROFILE%.android.

    What I did is create a powershell script to backup the default file, copy keystore file to the default location, build the signed debug apk, delete my keystore file, restore original file.

    Let me know if you need more information here.

提交回复
热议问题