我用flutter制作了一个小应用程序,并在Play Store上发布。问题是,我不能在我的任何AVD上安装。我得到“你的设备与此版本不兼容”(或类似的消息,取决于我尝试的Android版本)。
我只是按照说明做了一个apk和一个应用包(它们都不起作用)。我如何使它可以下载和使用在一个播放商店启用的AVD?
这里是一个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)
最佳答案
您不能从Emulator上以flutter写入的存储安装APK,因为Emulator的ABI为x86
,并且不能在具有x86
abi的设备上安装处于释放模式(存储上的模式)的APK。
您甚至不能在模拟器上以发布模式运行应用程序
关于android - 我无法从Play商店安装自己的应用程序,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/56523123/