Repository: flutter
Issue: flutter build apk / flutter install hangs on emulator created by flutter
Labels: c: crash,platform-android,tool,P2,team-android,triaged-android

## Steps to Reproduce

1. Create an android emulator via flutter: flutter emulator --create (I have to edit the config slightly as per https://github.com/flutter/flutter/issues/23988)
2. Launch the emulator: flutter emulator --launch flutter_emulator
3. Create application:  flutter create flutter_build_apk_test
4. Verify that stuff works:
$ cd flutter_build_apk_test/
$ flutter run
(the app launches and looks fine) (exiting with 'q')
5. $ flutter build apk
6. $ flutter install
now it just hangs at `Installing build/app/outputs/apk/app.apk`

If on the other hand I launch another emulator I have laying around:
```
$ time flutter build apk
Initializing gradle...                                       0.6s
Resolving dependencies...                                    1.1s
Gradle task 'assembleRelease'...                                 
Gradle task 'assembleRelease'... Done                        3.8s
Built build/app/outputs/apk/release/app-release.apk (4.7MB).

real	0m6.437s
user	0m5.053s
sys	0m0.685s

$ time flutter install
Initializing gradle...                                       0.6s
Resolving dependencies...                                    1.1s
Installing app.apk to Android SDK built for x86 64...
Installing build/app/outputs/apk/app.apk...                  5.1s
Error: ADB exited with exit code 1
adb: failed to install [pathto]/flutter_build_apk_test/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to
extract native libraries, res=-113]
Install failed

real	0m7.837s
user	0m3.766s
sys	0m0.742s
```
So here it just gives me a weird error --- but at least it doesn't hang.
The error is probably https://github.com/flutter/flutter/issues/8824

## Logs
With emulator that hangs:

```
$ flutter doctor -v
[✓] Flutter (Channel master, v0.10.3-pre.104, on Linux, locale en_US.UTF-8)
    • Flutter version 0.10.3-pre.104 at [pathto]/flutter/flutter
    • Framework revision 7e652d1dba (8 hours ago), 2018-11-05 20:00:19 -0500
    • Engine revision 3374f4cce0
    • Dart version 2.1.0 (build 2.1.0-dev.8.0 bf26f760b1)

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at [pathto]/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: [pathto]/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
    • All Android licenses accepted.

[✓] Android Studio (version 2.3)
    • Android Studio at [pathto]/android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.3)
    • IntelliJ at /opt/intellij-ue-2017.3
    • Flutter plugin version 20.0.2
    • Dart plugin version 173.4700

[✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
    • IntelliJ at /opt/intellij-ue-2018.1
    • Flutter plugin version 29.0.2
    • Dart plugin version 181.5540.11

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!
```

With emulator that gives error:

```
$ flutter doctor -v
[✓] Flutter (Channel master, v0.10.3-pre.104, on Linux, locale en_US.UTF-8)
    • Flutter version 0.10.3-pre.104 at [pathto]/flutter/flutter
    • Framework revision 7e652d1dba (8 hours ago), 2018-11-05 20:00:19 -0500
    • Engine revision 3374f4cce0
    • Dart version 2.1.0 (build 2.1.0-dev.8.0 bf26f760b1)

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at [pathto]/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: [pathto]/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
    • All Android licenses accepted.

[✓] Android Studio (version 2.3)
    • Android Studio at [pathto]/android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.3)
    • IntelliJ at /opt/intellij-ue-2017.3
    • Flutter plugin version 20.0.2
    • Dart plugin version 173.4700

[✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
    • IntelliJ at /opt/intellij-ue-2018.1
    • Flutter plugin version 29.0.2
    • Dart plugin version 181.5540.11

[✓] Connected device (1 available)
    • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 7.1.1 (API 25) (emulator)

• No issues found!
```