我用flutter做了一个小应用程序,我把它发布到了play store上。问题是,我无法在我拥有的任何 avd 上安装。我收到“您的设备与此版本不兼容”(或类似消息,具体取决于我尝试使用的 Android 版本)。
我只是按照有关如何制作 apk 和应用程序包的说明进行操作(它们都不起作用)。如何使其可在支持 avd 的 Play 商店中下载和使用?
这是一个flutter doctor -v
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale
fr-FR)
• Flutter version 1.5.4-hotfix.2 at /Users/moo/development/flutter
• Framework revision 7a4c33425d (6 weeks 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 28.0.3)
• Android SDK at /Users/moo/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• ios-deploy 1.9.4
• CocoaPods version 1.7.1
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 36.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b01)
[✓] VS Code (version 1.35.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.1.0
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.0 (API
24) (emulator)
最佳答案
您无法在模拟器上安装用 flutter 编写的商店中的 apk,因为模拟器的 ABI 是 x86
,并且 apk 处于 Release模式(商店中的模式)无法安装在具有 x86
ABI 的设备上。
您甚至无法在模拟器上以 Release模式运行应用程序
关于android - 我无法从 Play 商店安装我自己的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56523123/