即使我为调试密钥和发布密钥都添加了SHA1证书指纹,Android的Google地方信息不适用于发行版APK,也仅适用于调试apk。我不知道这是什么问题,这是我如何获得释放密钥sha1指纹keytool -list -v -keystore releasekey.jks -alias aliasForKey
并输入正确的密码,然后获得正确的输出而没有任何错误Certificate fingerprints:
MD5: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:
SHA1: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:
SHA256: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:
答案 0 :(得分:1)
如果minifyEnabled为true,则将这些行粘贴到proguard-rules.pro文件中
-keepnames class * implements java.io.Serializable
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
!static !transient <fields>;
!private <fields>;
!private <methods>;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}