且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android 中的发布与调试版本差异

更新时间:2022-01-25 22:34:54

可能与apk的签名有关.如果您使用 debuggable true,那么您的应用程序将使用通用调试密钥库进行签名,并且一切正常.相反,如果您将其删除,则必须提供

Maybe the problem is related to the signing of the apk. If you use debuggable true then your app is signed with a generic debug keystore and everything works correctly. Conversely, if you remove it you have to provide

storeFile file("myreleasekey.keystore")
storePassword "password"
keyAlias "MyReleaseKey"
keyPassword "password"

更多信息在这里:

https://developer.android.com/studio/build/build-variants.html#build-types