且构网

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

Android中版本与调试版本之间的差异

更新时间:2022-04-29 22:54:15

也许问题与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