Android Studio 如何复制从Google Play商店通过App Bundle安装应用时发现的错误?

tzcvj98z  于 11个月前  发布在  Android
关注(0)|答案(2)|浏览(87)

我们开发了一款应用,通过以下配置从Android Studio运行时可以轻松运行:

buildTypes {
    debug {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

字符串
为了模拟Google Play商店安装,我们选择了“Deploy:APK from app bundle”。


的数据
但是,当我们从Android Studio运行应用时,该错误(阻止恢复用户首选项)不会出现。只有当我们直接从Google Play商店在模拟器上安装应用时,该错误才会出现。
我们的应用是作为应用捆绑包部署的。您对如何设置更接近Google Play下载条件的测试环境有何建议?

xt0899hw

xt0899hw1#

对于如何设置更接近Google Play下载条件的测试环境,您有什么建议吗?
是的。我可以推荐您使用Google Play Internal Testing

如何设置

Doc

osh3o9ms

osh3o9ms2#

我已经确定了以下步骤来重现仅在上传到Google Play的应用程序捆绑包中发生的问题。

// Generate APKs.
bundletool build-apks --bundle=~/Desktop/com.xxx-536-5.36-release.aab --output=~/Desktop/output.apks --ks=~/xxx/my-release-key.jks --ks-key-alias=xxx

// Install APK to connected device. Connected device can be an emulator.
bundletool install-apks --apks=~/Desktop/output.apks

字符串

相关问题