gpt4 book ai didi

android - Flutter build appbundle 不创建 64 位并添加不必要的权限?

转载 作者:IT王子 更新时间:2023-10-29 07:17:18 24 4
gpt4 key购买 nike

您好,我构建应用程序并上传到 Google Play 控制台。我收到了这个错误!

Error Your app has an apk with version code 1 that requests the following permission(s): android.permission.CAMERA. Apps using these permissions in an APK are required to have a privacy policy set.

但实际上我不使用相机或相机许可。在 AndroidManifest.xml 中也只是 android.permission.INTERNET

然后我从 flutter 网站上了解到 flutter build appbundle 将为 armeabi-v7a(32 位)和 arm64-v8a(64 位)编译。

但是我在 play console 上收到了这个警告

This release is not compliant with the Google Play 64-bit requirement

The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: 1.

请帮我解决这两个问题:(

flutter 医生

[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.18362.207], locale en-ID)
• Flutter version 1.5.4-hotfix.2 at C:\flutter
• Framework revision 7a4c33425d (2 months ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)


[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at C:\Users\KLIK-EAT\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.

[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 36.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] VS Code (version 1.36.0)
• VS Code at C:\Users\KLIK-EAT\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.2.0

[√] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

最佳答案

谢谢已经修好了 1. 相机使用权限 android:name="android.permission.CAMERA"tools:node="remove" 2. 对于 64 位包,我更新到最新的 flutter stabil 并构建 64。

关于android - Flutter build appbundle 不创建 64 位并添加不必要的权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56949690/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com