我用flutter制作了一个小应用程序,然后将其发布在Play商店中。问题是,我无法在拥有的任何AVD上安装。我收到“您的设备与此版本不兼容”(或类似的消息,具体取决于我尝试使用的android版本)。
我只是按照有关如何制作apk和应用程序捆绑包(它们都无效)的说明进行操作。如何在启用了Play商店的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)
Run Code Online (Sandbox Code Playgroud)
您无法从仿真器上用flutter编写的存储中安装apk,因为仿真器的ABI为x86,并且处于释放模式(存储中的模式)的apk无法安装在具有x86ABI的设备上。您甚至无法在模拟器上以发布模式运行应用程序
| 归档时间: |
|
| 查看次数: |
98 次 |
| 最近记录: |