Flutter build appbundle 不创建 64 位并添加不必要的权限?
Flutter build appbundle not creating 64bit and adding unnecessary permission?
嗨,我构建了应用程序并上传到 google 游戏机。
我收到这个错误!
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 控制台上收到此警告
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 (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. 相机 uses-permission android:name="android.permission.CAMERA" tools:node="remove"
2. 对于 64 位包,我更新到最新的 flutter stabil 并构建 64.
嗨,我构建了应用程序并上传到 google 游戏机。 我收到这个错误!
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 控制台上收到此警告
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 (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. 相机 uses-permission android:name="android.permission.CAMERA" tools:node="remove" 2. 对于 64 位包,我更新到最新的 flutter stabil 并构建 64.