java.lang.SecurityException when install apk

前端 未结 3 755
轻奢々
轻奢々 2021-01-02 08:28

as you know apk is a zip archive, I extracted it and replaced some resources, and zipped it again, when I install it, I get this exception

java.lang.SecurityExceptio

3条回答
  •  没有蜡笔的小新
    2021-01-02 08:56

    My problem was wrong certificate alias in keystore. I changed it to "CERT" and it started to work. I used this command: keytool -changealias -alias "1" -destalias "CERT" -keystore android.jks

提交回复
热议问题