我无法从Play商店安装自己的应用程序

时间:2019-06-10 08:45:02

标签: android flutter

我用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)

1 个答案:

答案 0 :(得分:5)

由于仿真器的ABI为final SyncAdapterType[] syncs = ContentResolver.getSyncAdapterTypes(); for (SyncAdapterType sync : syncs) { Log.d(TAG, "found SyncAdapter: " + sync.accountType); if (ContactsContract.AUTHORITY.equals(sync.authority)) { Log.d(TAG, "found SyncAdapter that supports contacts: " + sync.accountType); if (sync.supportsUploading()) { Log.d(TAG, "found SyncAdapter that supports contacts and is not read-only: " + sync.accountType); // we'll now get a list of all accounts under that accountType: Account[] accounts = AccountManager.get(this).getAccountsByType(sync.accountType); for (Account account : accounts) { Log.d(TAG, account.type + " / " + account.name); } } } } ,并且发行版(商店中的模式)下的apk无法安装,因此无法在仿真器上以波动方式编写的商店中安装apk。安装在具有x86 ABI的设备上。 您甚至无法在模拟器上以发布模式运行应用程序