Flutter: unfortunately app has stopped android jelly bean 4.2 emulator

0

My flutter app runs perfectly well on android v9 emulator but the app crashes right after the installation on my android v4.2 emulator. When I build the apk and drag it onto my physical old android device (v4.2) it runs perfectly well. But its too old and I can't find a driver for it so I have no way of seeing the logs - which is why I'm using an emulator.

in build.gradle I have:

minSdkVersion 16
targetSdkVersion 28
multiDexEnabled true

flutter run -v:

[ +103 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +88 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 2ae34518b87dd891355ed6c6ea8cb68c4d52bb9d
[        ] executing: [C:\src\flutter/] git tag --contains HEAD
[ +266 ms] Exit code 0 from: git tag --contains HEAD
[   +1 ms] 1.20.1
[   +6 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +46 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[  +35 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +69 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +43 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +51 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.  
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +18 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +54 ms] List of devices attached
           emulator-5554          device product:google_sdk_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:4
[   +6 ms] C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[  +37 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +7 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +207 ms] Generating C:\Users\myUser\Documents\Flutter\my_app\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +19 ms] ro.hardware = ranchu
[  +27 ms] Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +34 ms] Starting incremental build...
[   +8 ms] Initializing file store
[  +19 ms] Skipping target: gen_localizations
[  +17 ms] complete
[  +13 ms] Launching lib\main.dart on Android SDK built for x86 in debug mode...
[   +6 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\myUser\AppData\Local\Temp\flutter_tools.e0331f06\flutter_tool.c812d1b0\app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root
--initialize-from-dill build\cache.dill.track.dill
[  +12 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\build-tools\29.0.1\aapt dump xmltree C:\Users\myUser\Documents\Flutter\my_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +27 ms] Exit code 0 from: C:\Users\myUser\AppData\Local\Android\sdk\build-tools\29.0.1\aapt dump xmltree C:\Users\myUser\Documents\Flutter\my_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.my_app" (Raw: "com.example.my_app")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="Anni Meal" (Raw: "Anni Meal")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.my_app.MainActivity" (Raw: "com.example.my_app.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +26 ms] <- compile package:my_app/main.dart
[  +20 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +62 ms] Android Debug Bridge version 1.0.41
           Version 30.0.4-6686687
           Installed as C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +3 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +58 ms] Building APK
[  +16 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] gradle.properties already sets `android.enableR8`
[  +28 ms] Using gradle from C:\Users\myUser\Documents\Flutter\my_app\android\gradlew.bat.
[   +1 ms] C:\Users\myUser\Documents\Flutter\my_app\android\gradlew.bat mode: 33279 rwxrwxrwx.
[  +26 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +114 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +2 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +106 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +3 ms] executing: [C:\Users\myUser\Documents\Flutter\my_app\android/] C:\Users\myUser\Documents\Flutter\my_app\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-x86
-Ptarget=C:\Users\myUser\Documents\Flutter\my_app\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+3627 ms] > Task :app:compileFlutterBuildDebug
[   +1 ms] [  +99 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +65 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [        ] 2ae34518b87dd891355ed6c6ea8cb68c4d52bb9d
[   +1 ms] [        ] executing: [C:\src\flutter/] git tag --contains HEAD
[  +24 ms] [ +274 ms] Exit code 0 from: git tag --contains HEAD
[   +1 ms] [        ] 1.20.1
[   +1 ms] [   +6 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +2 ms] [  +44 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[  +25 ms] [        ] origin/stable
[  +17 ms] [        ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[        ] [  +36 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[   +1 ms] [  +71 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +42 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] [        ] stable
[        ] [  +27 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +15 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +1 ms] [  +10 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +2 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[  +14 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +33 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [   +4 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +31 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +13 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[   +1 ms] [  +67 ms] Initializing file store
[  +13 ms] [  +19 ms] Done initializing file store
[        ] [  +39 ms] Skipping target: gen_localizations
[  +52 ms] [ +780 ms] Skipping target: kernel_snapshot
[ +395 ms] [ +367 ms] debug_android_application: Starting due to {InvalidatedReason.inputChanged}
[ +110 ms] [ +161 ms] debug_android_application: Complete
[ +390 ms] [ +328 ms] Persisting file store
[   +1 ms] [  +10 ms] Done persisting file store
[        ] [  +11 ms] build succeeded.
[   +1 ms] [  +10 ms] "flutter assemble" took 1,825ms.
[        ] [   +3 ms] ensureAnalyticsSent: 0ms
[        ] [   +1 ms] Running shutdown hooks
[  +12 ms] [        ] Shutdown hooks complete
[   +2 ms] [   +2 ms] exiting with code 0
[ +186 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[   +5 ms] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[   +1 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[  +84 ms] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders UP-TO-DATE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +297 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResValues UP-TO-DATE
[   +4 ms] > Task :app:generateDebugResources UP-TO-DATE
[  +12 ms] > Task :app:mergeDebugResources UP-TO-DATE
[   +1 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[  +76 ms] > Task :app:processDebugManifest UP-TO-DATE
[   +2 ms] > Task :app:processDebugResources UP-TO-DATE
[   +1 ms] > Task :app:compileDebugKotlin UP-TO-DATE
[   +3 ms] > Task :app:javaPreCompileDebug UP-TO-DATE
[   +1 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[  +11 ms] > Task :app:compileDebugSources UP-TO-DATE
[   +2 ms] > Task :app:processDebugJavaRes NO-SOURCE
[  +16 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE
[  +73 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[   +2 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[   +1 ms] > Task :app:multiDexListDebug UP-TO-DATE
[   +1 ms] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[        ] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] Compatible side by side NDK version was not found.
[+1193 ms] > Task :app:packageDebug
[  +93 ms] > Task :app:assembleDebug
[   +1 ms] BUILD SUCCESSFUL in 6s
[        ] 31 actionable tasks: 6 executed, 25 up-to-date
[ +572 ms] Running Gradle task 'assembleDebug'... (completed in 7.8s)
[  +25 ms] calculateSha: LocalDirectory: 'C:\Users\myUser\Documents\Flutter\my_app\build\app\outputs\flutter-apk'/app.apk
[  +35 ms] calculateSha: reading file took 33us
[ +421 ms] calculateSha: computing sha took 419us
[   +5 ms] ✓ Built build\app\outputs\flutter-apk\app-debug.apk.
[   +6 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\build-tools\29.0.1\aapt dump xmltree C:\Users\myUser\Documents\Flutter\my_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +21 ms] Exit code 0 from: C:\Users\myUser\AppData\Local\Android\sdk\build-tools\29.0.1\aapt dump xmltree C:\Users\myUser\Documents\Flutter\my_app\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +7 ms] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.example.my_app" (Raw: "com.example.my_app")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: application (line=22)
                 A: android:label(0x01010001)="Anni Meal" (Raw: "Anni Meal")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=28)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.my_app.MainActivity" (Raw: "com.example.my_app.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=42)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=52)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=56)
                     E: action (line=57)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=59)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=66)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +30 ms] Stopping app 'app.apk' on Android SDK built for x86.
[   +2 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell am force-stop com.example.my_app
[ +302 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell pm list packages com.example.my_app
[ +313 ms] package:com.example.my_app
[   +2 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell cat /data/local/tmp/sky.com.example.my_app.sha1
[  +29 ms] baad0141e2618c4ca3d9f7dcf1682b844cab3658
[   +1 ms] Installing APK.
[   +3 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +29 ms] Android Debug Bridge version 1.0.41
           Version 30.0.4-6686687
           Installed as C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +2 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +31 ms] Installing build\app\outputs\flutter-apk\app.apk...
[   +2 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 install -t -r C:\Users\myUser\Documents\Flutter\my_app\build\app\outputs\flutter-apk\app.apk
[+2128 ms] Performing Push Install
                    C:\Users\myUser\Documents\Flutter\my_app\build\app\outputs\flutter-apk\app.apk: 1 file pushed, 0 skipped. 116.3 MB/s (39706066 bytes in 0.326s)
                        pkg: /data/local/tmp/app.apk
                    Success
[   +1 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 2.1s)
[   +1 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell echo -n 5e194ac0295d191b3800711fd2b6dc68310353ab > /data/local/tmp/sky.com.example.my_app.sha1
[  +28 ms] Android SDK built for x86 startApp
[   +8 ms] executing: C:\Users\myUser\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ezenable-checked-mode true --ez verify-entry-points true com.example.my_app/com.example.my_app.MainActivity
[ +313 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.my_app/.MainActivity (has extras) }
[   +2 ms] Waiting for observatory port to be available...

The emulator shows unfortunately myApp has stopped and the app just waits for observatory port to be available until I press ctrl+C

flutter doctor -v:

[√] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Version 10.0.19041.450], locale en-GB)
    • Flutter version 1.20.1 at C:\src\flutter
    • Framework revision 2ae34518b8 (2 weeks ago), 2020-08-05 19:53:19 -0700
    • Engine revision c8e3b94853
    • Dart version 2.9.0

 
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at C:\Users\myUser\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.48.1)
    • VS Code at C:\Users\myUser\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.13.2

[√] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 4.2.2 (API 17) (emulator)

• No issues found!
android
flutter
android-4.2-jelly-bean
asked on Stack Overflow Aug 20, 2020 by Jacob

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0