zipalign: command not found

前端 未结 9 2042
Happy的楠姐
Happy的楠姐 2021-01-31 02:51

I\'m working on Ionic project now whereby I want to zipalign the android-release-unsigned.apk file. I followed this guide by Ionic.

When I run

9条回答
  •  逝去的感伤
    2021-01-31 03:31

    if you are making ionic release build then you can make build.json file on your app's root folder with these information given below

    {
    "android": {
       "release": {
       "keystore": "Your keystore",
       "storePassword": "password",
       "alias": "alias name",
       "password" : "password",
       "keystoreType": ""
        }
    }  }
    

    make sure that you can place your keystore on your app's root folder or provide full path of your keystore at keystore object

    now just you can run this command as below

    ionic cordova build android --release
    

    this command automatically find your build.json and make signed release build.

提交回复
热议问题