cannot find keytool on a mac

前端 未结 4 711
离开以前
离开以前 2021-01-01 18:58

I am trying to find my keytool so that I can make keys to sign my app and to register for the google maps api

I\'m beginning to think that I don\'t actually have it

4条回答
  •  有刺的猬
    2021-01-01 19:53

    I did the following and it worked for me:

    1. /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin/keytool -genkey -v -keystore my-release-key.keystore -alias my_keystone -keyalg RSA -keysize 2048 -validity 10000
    2. jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk my_keystone
    3. /Users/developer/Library/Android/sdk/build-tools/28.0.3/zipalign -v 4 app-release-unsigned.apk nameapp.apk

提交回复
热议问题