我正在尝试在GooglePlay中开始对我的颤振应用程序进行内部测试

我正在尝试在 Google Play 控制台中开始对我的颤振应用程序进行内部测试。它适用于除 Android 12 以外的其他设备。在 Android 12 上,我无法安装该应用程序。但该应用程序在 Android 12 模拟器上运行完美。

我已经按照这个问题的说明进行操作Flutter App not installable from Google store for Android 12 despite being set to targetSDK 31。因为它也不起作用,所以我创建了一个新的干净的 Flutter 项目并在没有更改任何内容的情况下上传它。结果是一样的:除搭载 Android 12 的设备外,所有设备均可下载该应用。

我的 build.gradle 文件:

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

图片[1]-我正在尝试在GooglePlay中开始对我的颤振应用程序进行内部测试-唐朝资源网

def flutterRoot = localProperties.getProperty('flutter.sdk') if (flutterRoot == null) { throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") } def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' }

图片[2]-我正在尝试在GooglePlay中开始对我的颤振应用程序进行内部测试-唐朝资源网

def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { flutterVersionName = '1.0' } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion 31 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } sourceSets {

图片[3]-我正在尝试在GooglePlay中开始对我的颤振应用程序进行内部测试-唐朝资源网

main.java.srcDirs += 'src/main/kotlin' } defaultConfig { applicationId "myAppId" minSdkVersion 21 targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } } flutter { source '../..' } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" }

颤振医生:

© 版权声明
THE END
喜欢就支持一下吧
点赞64赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容