我在 Playstore 中有一个 Flutter 应用程序,如果您有 Android 12,它只会弹出一条错误消息:\n“AppName 无法安装”
\n我的Flutter版本是2.5.0
\n由于我的设置,我希望该应用程序可以安装在 Android 12 上。是否有任何 \xc3\xb2ther 原因导致此失败?
\n这是我的build.grade:
\ndef localProperties = new Properties()\ndef localPropertiesFile = rootProject.file(\'local.properties\')\nif (localPropertiesFile.exists()) {\n localPropertiesFile.withReader(\'UTF-8\') { reader ->\n localProperties.load(reader)\n }\n}\n\ndef flutterRoot = localProperties.getProperty(\'flutter.sdk\')\nif (flutterRoot == null) {\n throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")\n}\n\ndef flutterVersionCode = localProperties.getProperty(\'flutter.versionCode\')\nif (flutterVersionCode == null) {\n flutterVersionCode = \'25\'\n}\n\ndef flutterVersionName = localProperties.getProperty(\'flutter.versionName\')\nif (flutterVersionName == null) {\n flutterVersionName = \'1.1.0\'\n}\n\ndef keystoreProperties = new …Run Code Online (Sandbox Code Playgroud)