[英]I switched from ADT to Android Studio: You uploaded an APK that is signed with a different certificate to your previous APKs
Please read before you post as a duplicate! 请仔细阅读,然后再发送副本! I am using the same certificate, the only one I have used for years on multiple apps. 我使用的是同一证书,这是多年来我在多个应用程序上使用过的唯一证书。 I have run keytool on the jks I am using and the SHA1 key is the same as Google Play says was used to sign the last accepted apk. 我已在正在使用的jks上运行keytool,并且SHA1密钥与Google Play所说的用于签署最后接受的apk相同。 I have also run jarsigner on both the new apk and the last accepted one, and they show the exact same certificate information, dates, etc. The only change is I switched from ADT to Android Studio, and I can still upload using ADT using the same cert. 我还在新的apk和最后一个被接受的apk上都运行了jarsigner,它们显示的证书信息,日期等完全相同。唯一的变化是我从ADT切换到了Android Studio,并且仍然可以使用ADT使用ADT上传相同证书 And, for the record, the SHA that Google Play says I signed the new apk with is not my debug SHA either. 而且,根据记录,Google Play说我与新apk签署的SHA也不是我的调试SHA。 Any ideas? 有任何想法吗? I really don't want to go back to ADT! 我真的不想回到ADT!
This thing is when you first installed your app (from ADT) into your emulator or android device, it was made from ADT, but now you are trying to install the same app, from Android Studio, that is why you are getting this error : You uploaded an APK that is signed with a different certificate to your previous APKs 这件事是当您第一次从ADT将应用程序(从ADT)安装到模拟器或android设备时,它是由ADT制作的,但是现在您正尝试从Android Studio安装同一应用程序,这就是为什么出现此错误的原因: 您已将使用其他证书签名的APK上传到以前的APK
What you have to do is, first uninstall the previous version of your app from your device (which was installed when using ADT)... And then install the latest APK, by using Android Studio. 您需要做的是,首先从设备上卸载应用程序的先前版本(使用ADT时已安装)...然后,使用Android Studio安装最新的APK。
You dont have to go back to ADT. 您不必回到ADT。 Keep using Android Studio, as it is the official IDE for Android Developement. 继续使用Android Studio,因为它是Android开发的官方IDE。
Edit: For Google Play i am not sure what can be the solution, as i dont know if u can delete an old signed APK and add a new one signed by the same certificate... Switching from ADT to Studio usually gives these kind of problems. 编辑:对于Google Play,我不确定可以采用什么解决方案,因为我不知道您是否可以删除旧的签名APK并添加由同一证书签名的新APK ...从ADT切换到Studio通常会提供这些问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.