Skip to content

No way of testing android release in emulator environment #28432

@reilem

Description

@reilem

I recently released a flutter app, and android users are reporting that it crashes on launch. The app works fine in emulators in debug/development mode but I cannot test the release mode anywhere because I don't have an android device. I have tried:

  • Installing the apk via: flutter build apk && flutter install
  • Drag and dropping the built apk onto the emulator
  • Using an x86_64 emulator
  • Installing the app via the play store in the emulator (play store complains that the app is not compatible with current device)

I there ANY way I can test my app? Or do I just have to conclude that my app will never work on android? Thanks in advance.

Steps to Reproduce

  1. Create a new project
  2. flutter run --release
    Output:
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Release mode is not supported for emulators.
[✓] Flutter (Channel beta, v1.1.8, on Mac OS X 10.14.3 18D109, locale en-GB)
    • Flutter version 1.1.8 at /Users/Reinert/Documents/Coding/Flutter/sdk/flutter
    • Framework revision 985ccb6d14 (7 weeks ago), 2019-01-08 13:45:55 -0800
    • Engine revision 7112b72cc2
    • Dart version 2.1.1 (build 2.1.1-dev.0.1 ec86471ccc)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/Reinert/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/Reinert/Library/Android/sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 9.0.4+11)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[!] Android Studio (version 3.3.1)
    • Android Studio at /Users/Reinert/Applications/JetBrains Toolbox/Android Studio.app/Contents
    • Flutter plugin version 33.1.1
    • Dart plugin version 182.5215
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.4)
    • IntelliJ at /Users/Reinert/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 32.0.3
    • Dart plugin version 183.5429.25

[!] VS Code (version 1.31.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: tests"flutter test", flutter_test, or one of our testsc: proposalA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.frameworkflutter/packages/flutter repository. See also f: labels.platform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions