Closed ltfschoen closed 4 years ago
@ltfschoen This Issue may solve your problem.
Solution
I understood that my teammate encountered issues building for Android too in the PR of our fork here https://github.com/DataHighway-DHX/app/pull/1, and they just shared with me that apparently polkawallet-flutter has a bug for Android, whereby it cannot generate some files in the build folder (i.e. ./android) (similar to issue https://github.com/flutter/flutter/issues/33214).
So the steps to resolve are to create a MainActivity.kt file in the following directory:
mkdir -p ./android/app/src/main/kotlin/com/datahighway/app && \
touch ./android/app/src/main/kotlin/com/datahighway/app/MainActivity.kt
And then paste the following in the file:
package com.datahighway.app
import androidx.annotation.NonNull;
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterActivity() {
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
GeneratedPluginRegistrant.registerWith(flutterEngine);
}
}
When I built it again with flutter run -d <DEVICE_ID> -v
this time it worked with the following output:
[ +28 ms] executing: [/Users/ls/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +40 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] f139b11009aeb8ed2a3a3aa8b0066e482709dde3 [ ] executing: [/Users/ls/development/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +13 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v1.12.13+hotfix.9-0-gf139b1100 [ +8 ms] executing: [/Users/ls/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +7 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/stable [ ] executing: [/Users/ls/development/flutter/] git ls-remote --get-url origin [ +6 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +53 ms] executing: [/Users/ls/development/flutter/] git rev-parse --abbrev-ref HEAD [ +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +6 ms] executing: sw_vers -productName [ +16 ms] Exit code 0 from: sw_vers -productName [ ] Mac OS X [ ] executing: sw_vers -productVersion [ +16 ms] Exit code 0 from: sw_vers -productVersion [ ] 10.14.6 [ ] executing: sw_vers -buildVersion [ +14 ms] Exit code 0 from: sw_vers -buildVersion [ ] 18G103 [ +31 ms] executing: /usr/bin/xcode-select --print-path [ +16 ms] Exit code 0 from: /usr/bin/xcode-select --print-path [ ] /Library/Developer/CommandLineTools [ +1 ms] executing: /usr/bin/xcodebuild -version [ +6 ms] Exit code 1 from: /usr/bin/xcodebuild -version [ ] xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance [ +79 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb devices -l [ +6 ms] Exit code 0 from: /Users/ls/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached 988a1644544349575a30 device usb:338755584X product:greatltexx model:SM_N950F device:greatlte transport_id:2 [ +17 ms] executing: /Users/ls/development/flutter/bin/cache/artifacts/libimobiledevice/idevice_id -h [ +41 ms] executing: /usr/bin/xcodebuild -version [ +4 ms] Exit code 1 from: /usr/bin/xcodebuild -version [ ] xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance [ +8 ms] /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 shell getprop [ +63 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ +5 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. [ +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. [ ] 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. [ +73 ms] Found plugin flutter_aes_ecb_pkcs5 at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_aes_ecb_pkcs5-0.1.1/ [ +7 ms] Found plugin flutter_local_notifications at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-1.4.0/ [ +8 ms] Found plugin flutter_plugin_android_lifecycle at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.6/ [ +2 ms] Found plugin flutter_qr_reader at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_qr_reader-1.0.3/ [ +10 ms] Found plugin flutter_webview_plugin at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.11/ [ +13 ms] Found plugin image_picker at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.4/ [ +18 ms] Found plugin package_info at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+16/ [ +6 ms] Found plugin permission_handler at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-4.4.0+hotfix.4/ [ +15 ms] Found plugin shared_preferences at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+3/ [ +1 ms] Found plugin shared_preferences_macos at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+6/ [ +2 ms] Found plugin shared_preferences_web at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+4/ [ +14 ms] Found plugin url_launcher at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.2/ [ +1 ms] Found plugin url_launcher_macos at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+4/ [ +2 ms] Found plugin url_launcher_web at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+1/ [ +36 ms] Found plugin flutter_aes_ecb_pkcs5 at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_aes_ecb_pkcs5-0.1.1/ [ +1 ms] Found plugin flutter_local_notifications at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-1.4.0/ [ +2 ms] Found plugin flutter_plugin_android_lifecycle at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.6/ [ ] Found plugin flutter_qr_reader at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_qr_reader-1.0.3/ [ +2 ms] Found plugin flutter_webview_plugin at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.11/ [ +3 ms] Found plugin image_picker at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.4/ [ +5 ms] Found plugin package_info at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+16/ [ +1 ms] Found plugin permission_handler at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/permission_handler-4.4.0+hotfix.4/ [ +5 ms] Found plugin shared_preferences at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+3/ [ ] Found plugin shared_preferences_macos at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+6/ [ +1 ms] Found plugin shared_preferences_web at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+4/ [ +4 ms] Found plugin url_launcher at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.2/ [ ] Found plugin url_launcher_macos at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+4/ [ ] Found plugin url_launcher_web at /Users/ls/development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+1/ [ +46 ms] Generating /Users/ls/code/src/DataHighway-com/app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +34 ms] executing: /usr/bin/xcodebuild -version [ +3 ms] Exit code 1 from: /usr/bin/xcodebuild -version [ ] xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance [ +3 ms] ro.hardware = samsungexynos8895 [ +8 ms] executing: /usr/bin/xcodebuild -version [ +4 ms] Exit code 1 from: /usr/bin/xcodebuild -version [ ] xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance [ +40 ms] Launching lib/main.dart on SM N950F in debug mode... [ +7 ms] executing: /Users/ls/Library/Android/sdk/build-tools/29.0.2/aapt dump xmltree /Users/ls/code/src/DataHighway-com/app/build/app/outputs/apk/app.apk AndroidManifest.xml [ +7 ms] Exit code 0 from: /Users/ls/Library/Android/sdk/build-tools/29.0.2/aapt dump xmltree /Users/ls/code/src/DataHighway-com/app/build/app/outputs/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)="0.6.2" (Raw: "0.6.2") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9") A: package="com.datahighway.app" (Raw: "com.datahighway.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: uses-permission (line=15) A: android:name(0x01010003)="android.permission.FLASHLIGHT" (Raw: "android.permission.FLASHLIGHT") E: uses-permission (line=16) A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA") E: uses-feature (line=18) A: android:name(0x01010003)="android.hardware.camera" (Raw: "android.hardware.camera") E: uses-feature (line=19) A: android:name(0x01010003)="android.hardware.camera.autofocus" (Raw: "android.hardware.camera.autofocus") E: uses-feature (line=20) A: android:name(0x01010003)="android.hardware.camera.flash" (Raw: "android.hardware.camera.flash") E: uses-permission (line=22) A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE") E: uses-permission (line=23) A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw: "android.permission.WRITE_EXTERNAL_STORAGE") E: application (line=31) A: android:label(0x01010001)="DataHighway" (Raw: "DataHighway") A: android:icon(0x01010002)=@0x7f0b0000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:usesCleartextTraffic(0x010104ec)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: activity (line=38) A: android:theme(0x01010000)=@0x7f0d00a1 A: android:name(0x01010003)="com.datahighway.app.MainActivity" (Raw: "com.datahighway.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: intent-filter (line=45) E: action (line=46) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=48) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=55) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: provider (line=59) A: android:name(0x01010003)="io.flutter.plugins.imagepicker.ImagePickerFileProvider" (Raw: "io.flutter.plugins.imagepicker.ImagePickerFileProvider") A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)="com.datahighway.app.flutter.image_provider" (Raw: "com.datahighway.app.flutter.image_provider") A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff E: meta-data (line=64) A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS") A: android:resource(0x01010025)=@0x7f0f0001 E: provider (line=68) A: android:name(0x01010003)="androidx.core.content.FileProvider" (Raw: "androidx.core.content.FileProvider") A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)="com.datahighway.app.fileprovider" (Raw: "com.datahighway.app.fileprovider") A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff E: meta-data (line=73) A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS") A: android:resource(0x01010025)=@0x7f0f0000 E: activity (line=78) A: android:theme(0x01010000)=@0x01030007 A: android:name(0x01010003)="io.flutter.plugins.urllauncher.WebViewActivity" (Raw: "io.flutter.plugins.urllauncher.WebViewActivity") A: android:exported(0x01010010)=(type 0x12)0x0 [ +7 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 shell -x logcat -v time -t 1 [ +78 ms] Exit code 0 from: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 shell -x logcat -v time -t 1 [ ] --------- beginning of system 04-09 14:06:01.909 I/SamsungAlarmManager( 5604): setLocked to kernel - T:3 / 20200409T140700, SetElapsed=12670909, nowELAPSED=12612818 [ +8 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb version [ +1 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 logcat -v time -T 04-09 14:06:01.909 [ +15 ms] Android Debug Bridge version 1.0.41 Version 29.0.4-5871666 Installed as /Users/ls/Library/Android/sdk/platform-tools/adb [ +2 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb start-server [ +17 ms] Building APK [ +19 ms] Running Gradle task 'assembleDebug'... [ +1 ms] gradle.properties already sets `android.enableR8` [ +2 ms] Using gradle from /Users/ls/code/src/DataHighway-com/app/android/gradlew. [ +91 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist [ +10 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist [ ] {"CFBundleName":"Android Studio","JVMOptions":{"MainClass":"com.intellij.idea.Main","ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP _PACKAGE\/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","Properties":{"idea.home .path":"$APP_PACKAGE\/Contents","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.paths.selector":"AndroidStudio3.6"},"WorkingDirectory":"$APP_PACKAGE\/Contents\/bin"},"NSDesktopF olderUsageDescription":"An application in Android Studio requests access to the user's Desktop folder.","LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-192.7142.36.36.6308749","CFBundleDevelopmentRegion":"English","NSCameraUsageDescription":"An application in Android Studio requests access to the device's camera.","CFBundleDocumentTypes":[{"CFBundleTypeExtensions":["ipr"],"CFBundleTypeName":"Android Studio Project File","CFBundleTypeIconFile":"studio.icns","CFBundleTypeRole":"Editor"},{"CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"LSTypeIsPackage":false,"CFBundleTypeName":"All documents","CFBundleTypeRole":"Editor"}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionSt ring":"3.6","NSMicrophoneUsageDescription":"An application in Android Studio requests access to the device's microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsageDescription":"An application in Android Studio requests access to the user's location information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"],"CFBundleTypeRole":"Editor"}],"CFBundleIdentifier":"com.google.android. studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsageDescription":"An application in Android Studio requests access to the user's Documents folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio requests access to the user's Downloads folder.","NSNetworkVolumesUsageDescription":"An application in Android Studio requests access to files on a network volume.","CFBundleGetInfoString":"Android Studio 3.6, build AI-192.7142.36.36.6308749. Copyright JetBrains s.r.o., (c) 2000-2020","NSRemovableVolumesUsageDescription":"An application in Android Studio requests access to files on a removable volume."} [ +9 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ +81 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ ] openjdk version "1.8.0_212-release" OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211) OpenJDK 64-Bit Server VM (build 25.212-b4-5784211, mixed mode) [ +2 ms] executing: [/Users/ls/code/src/DataHighway-com/app/android/] /Users/ls/code/src/DataHighway-com/app/android/gradlew -Pverbose=true -Ptarget=/Users/ls/code/src/DataHighway-com/app/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-arm64 assembleDebug [ +751 ms] > Configure project :app [ ] WARNING: DSL element 'useProguard' is obsolete and will be removed soon. Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard.. [+2585 ms] > Task :app:compileFlutterBuildDebug [ ] [ +23 ms] executing: [/Users/ls/development/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ +30 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] [ ] f139b11009aeb8ed2a3a3aa8b0066e482709dde3 [ ] [ ] executing: [/Users/ls/development/flutter/] git describe --match v*.*.* --first-parent --long --tags [ ] [ +7 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] [ ] v1.12.13+hotfix.9-0-gf139b1100 [ ] [ +9 ms] executing: [/Users/ls/development/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ ] [ +7 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] [ ] origin/stable [ ] [ ] executing: [/Users/ls/development/flutter/] git ls-remote --get-url origin [ ] [ +7 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [ ] https://github.com/flutter/flutter.git [ ] [ +52 ms] executing: [/Users/ls/development/flutter/] git rev-parse --abbrev-ref HEAD [ ] [ +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] [ ] stable [ ] [ +23 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. [ ] [ ] 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. [ ] [ +104 ms] Initializing file store [ ] [ +18 ms] Done initializing file store [ +294 ms] [+1528 ms] Skipping target: kernel_snapshot [ +202 ms] [ +164 ms] debug_android_application: Starting due to {InvalidatedReason.outputMissing} [ +501 ms] [ +494 ms] debug_android_application: Complete [ +96 ms] [ +68 ms] Persisting file store [ ] [ +8 ms] Done persisting file store [ ] [ +8 ms] build succeeded. [ ] [ +16 ms] "flutter assemble" took 2,444ms. [ ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE ... [ ] BUILD SUCCESSFUL in 7s [ ] 424 actionable tasks: 10 executed, 414 up-to-date [ +373 ms] Running Gradle task 'assembleDebug'... (completed in 8.7s) [ +57 ms] calculateSha: LocalDirectory: '/Users/ls/code/src/DataHighway-com/app/build/app/outputs/apk'/app.apk [ +68 ms] calculateSha: reading file took 68us [ +585 ms] calculateSha: computing sha took 585us [ +4 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk. [ +5 ms] executing: /Users/ls/Library/Android/sdk/build-tools/29.0.2/aapt dump xmltree /Users/ls/code/src/DataHighway-com/app/build/app/outputs/apk/app.apk AndroidManifest.xml [ +11 ms] Exit code 0 from: /Users/ls/Library/Android/sdk/build-tools/29.0.2/aapt dump xmltree /Users/ls/code/src/DataHighway-com/app/build/app/outputs/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)="0.6.2" (Raw: "0.6.2") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9") A: package="com.datahighway.app" (Raw: "com.datahighway.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: uses-permission (line=15) A: android:name(0x01010003)="android.permission.FLASHLIGHT" (Raw: "android.permission.FLASHLIGHT") E: uses-permission (line=16) A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA") E: uses-feature (line=18) A: android:name(0x01010003)="android.hardware.camera" (Raw: "android.hardware.camera") E: uses-feature (line=19) A: android:name(0x01010003)="android.hardware.camera.autofocus" (Raw: "android.hardware.camera.autofocus") E: uses-feature (line=20) A: android:name(0x01010003)="android.hardware.camera.flash" (Raw: "android.hardware.camera.flash") E: uses-permission (line=22) A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE") E: uses-permission (line=23) A: android:name(0x01010003)="android.permission.WRITE_EXTERNAL_STORAGE" (Raw: "android.permission.WRITE_EXTERNAL_STORAGE") E: application (line=31) A: android:label(0x01010001)="DataHighway" (Raw: "DataHighway") A: android:icon(0x01010002)=@0x7f0b0000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:usesCleartextTraffic(0x010104ec)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: activity (line=38) A: android:theme(0x01010000)=@0x7f0d00a1 A: android:name(0x01010003)="com.datahighway.app.MainActivity" (Raw: "com.datahighway.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: intent-filter (line=45) E: action (line=46) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=48) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=55) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: provider (line=59) A: android:name(0x01010003)="io.flutter.plugins.imagepicker.ImagePickerFileProvider" (Raw: "io.flutter.plugins.imagepicker.ImagePickerFileProvider") A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)="com.datahighway.app.flutter.image_provider" (Raw: "com.datahighway.app.flutter.image_provider") A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff E: meta-data (line=64) A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS") A: android:resource(0x01010025)=@0x7f0f0001 E: provider (line=68) A: android:name(0x01010003)="androidx.core.content.FileProvider" (Raw: "androidx.core.content.FileProvider") A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)="com.datahighway.app.fileprovider" (Raw: "com.datahighway.app.fileprovider") A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff E: meta-data (line=73) A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS") A: android:resource(0x01010025)=@0x7f0f0000 E: activity (line=78) A: android:theme(0x01010000)=@0x01030007 A: android:name(0x01010003)="io.flutter.plugins.urllauncher.WebViewActivity" (Raw: "io.flutter.plugins.urllauncher.WebViewActivity") A: android:exported(0x01010010)=(type 0x12)0x0 [ +1 ms] Stopping app 'app.apk' on SM N950F. [ ] executing: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 shell am force-stop com.datahighway.app [ +72 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 shell pm list packages com.datahighway.app [ +82 ms] package:com.datahighway.app [ +4 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 shell cat /data/local/tmp/sky.com.datahighway.app.sha1 [ +26 ms] 04c782337fb7c1dd3273db78de7d606f8f75dd3c [ +1 ms] Installing APK. [ +2 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb version [ +8 ms] Android Debug Bridge version 1.0.41 Version 29.0.4-5871666 Installed as /Users/ls/Library/Android/sdk/platform-tools/adb [ ] executing: /Users/ls/Library/Android/sdk/platform-tools/adb start-server [ +7 ms] Installing build/app/outputs/apk/app.apk... [ ] executing: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 install -t -r /Users/ls/code/src/DataHighway-com/app/build/app/outputs/apk/app.apk [+10440 ms] Performing Streamed Install Success [ ] Installing build/app/outputs/apk/app.apk... (completed in 10.4s) [ +2 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 shell echo -n 8c45872701e56dd38ccc551361444fa2e9bf9e68 > /data/local/tmp/sky.com.datahighway.app.sha1 [ +101 ms] SM N950F startApp [ +3 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true com.datahighway.app/com.datahighway.app.MainActivity [ +216 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.datahighway.app/.MainActivity (has extras) } [ ] Waiting for observatory port to be available... [ +972 ms] D/FlutterActivity(26713): Using the launch theme as normal theme. [ +3 ms] D/FlutterActivityAndFragmentDelegate(26713): Setting up FlutterEngine. [ +21 ms] D/FlutterActivityAndFragmentDelegate(26713): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment. [+1093 ms] Observatory URL on device: http://127.0.0.1:38825/Tex_-ATUAiA=/ [ +1 ms] executing: /Users/ls/Library/Android/sdk/platform-tools/adb -s 988a1644544349575a30 forward tcp:0 tcp:38825 [ +7 ms] D/FlutterActivityAndFragmentDelegate(26713): Attaching FlutterEngine to the Activity that owns this Fragment. [ +1 ms] 55218 [ ] Forwarded host port 55218 to device port 38825 for Observatory [ +12 ms] Connecting to service protocol: http://127.0.0.1:55218/Tex_-ATUAiA=/ [ +153 ms] D/FlutterView(26713): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@90dd4a7 [ +22 ms] D/FlutterActivityAndFragmentDelegate(26713): Executing Dart entrypoint: main, and sending initial route: / [ +210 ms] Successfully connected to service protocol: http://127.0.0.1:55218/Tex_-ATUAiA=/ [ +3 ms] Sending to VM service: getVM({}) [ +8 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Unknown, operatingSystem: android, targetCPU: arm64, version: 2.7.2 (Mon Mar 23 22:11:27 2020 +0100) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 26713, startTime: 15864... [ +6 ms] Sending to VM service: getIsolate({isolateId: isolates/999268383613871}) [ +3 ms] Sending to VM service: _flutter.listViews({}) [ +6 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7940673120, isolate: {type: @Isolate, fixedId: true, id: isolates/999268383613871, name: main.dart$main-999268383613871, number: 999268383613871}}]} [ +5 ms] DevFS: Creating new filesystem on the device (null) [ ] Sending to VM service: _createDevFS({fsName: app}) [ +48 ms] Result: {type: FileSystem, name: app, uri: file:///data/user/0/com.datahighway.app/code_cache/appMQVVSO/app/} [ ] DevFS: Created new filesystem on the device (file:///data/user/0/com.datahighway.app/code_cache/appMQVVSO/app/) [ +1 ms] Updating assets [ +181 ms] Syncing files to device SM N950F... [ +1 ms] Scanning asset files [ +9 ms] <- reset [ ] Compiling dart to kernel with 0 updated files [ +6 ms] /Users/ls/development/flutter/bin/cache/dart-sdk/bin/dart /Users/ls/development/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/ls/development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter -Ddart.developer.causal_async_stacks=true --output-dill /var/folders/5t/sc9yhg4j61b71frp6ksy6vyr0000gn/T/flutter_tool.NYES4I/app.dill --packages /Users/ls/code/src/DataHighway-com/app/.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 [ +2 ms] D/SurfaceView(26713): surfaceChanged (1440,2792) 1 #8 io.flutter.embedding.android.FlutterSurfaceView{b8125f2 V.E...... ......ID 0,0-1440,2792} [ ] D/ViewRootImpl@fd0d966[MainActivity](26713): Relayout returned: old=[0,0][1440,2960] new=[0,0][1440,2960] result=0x3 surface={valid=true 520375689216} changed=false [ ] D/vndksupport(26713): Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace. [ +21 ms] Result: {type: Isolate, id: isolates/999268383613871, name: main, number: 999268383613871, _originNumber: 999268383613871, startTime: 1586405184549, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 0, avgCollectionPeriodMillis: 0... [ +17 ms] D/ViewRootImpl@fd0d966[MainActivity](26713): MSG_RESIZED: frame=Rect(0, 0 - 1440, 2960) ci=Rect(0, 84 - 0, 168) vi=Rect(0, 84 - 0, 168) or=1 [ ] D/ViewRootImpl@fd0d966[MainActivity](26713): MSG_WINDOW_FOCUS_CHANGED 1 1 [ ] D/InputMethodManager(26713): prepareNavigationBarInfo() DecorView@17d1689[MainActivity] [ ] D/InputMethodManager(26713): getNavigationBarColor() -855310 [ +5 ms] <- compile package:polka_wallet/main.dart [ +34 ms] D/InputMethodManager(26713): prepareNavigationBarInfo() DecorView@17d1689[MainActivity] [ ] D/InputMethodManager(26713): getNavigationBarColor() -855310 [ ] V/InputMethodManager(26713): Starting input: tba=com.datahighway.app ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false [ ] D/InputMethodManager(26713): startInputInner - Id : 0 [ ] I/InputMethodManager(26713): startInputInner - mService.startInputOrWindowGainedFocus [ ] D/InputTransport(26713): Input channel constructed: fd=96 [ ] D/InputMethodManager(26713): prepareNavigationBarInfo() DecorView@17d1689[MainActivity] [ ] D/InputMethodManager(26713): getNavigationBarColor() -855310 [ ] V/InputMethodManager(26713): Starting input: tba=com.datahighway.app ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false [ ] D/InputMethodManager(26713): startInputInner - Id : 0 [ +417 ms] I/flutter (26713): notification_plugin initialised: true [ +990 ms] I/flutter (26713): initailizing app state [ +2 ms] I/flutter (26713): sys locale: en_ [ +35 ms] I/flutter (26713): No observables detected in the build method of Observer [ ] I/flutter (26713): #3 _WalletAppState.build.(package:polka_wallet/app.dart:130:38) [ +290 ms] E/AccessibilityBridge(26713): VirtualView node must not be the root node. [ +130 ms] I/WebViewFactory(26713): Loading com.android.chrome version 74.0.3729.136 (code 372913652) [ +599 ms] I/cr_LibraryLoader(26713): Time to load native libraries: 8 ms (timestamps 8782-8790) [ +72 ms] I/chromium(26713): [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0 [ +2 ms] I/cr_LibraryLoader(26713): Expected native library version number "74.0.3729.136", actual native library version number "74.0.3729.136" [ +32 ms] W/cr_ChildProcLH(26713): Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true [ +3 ms] W/datahighway.ap(26713): Accessing hidden method Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z (light greylist, reflection) [ +33 ms] I/cr_BrowserStartup(26713): Initializing chromium process, singleProcess=false [ +77 ms] E/chromium(26713): [ERROR:filesystem_posix.cc(89)] stat /data/user/0/com.datahighway.app/cache/WebView/Crashpad: No such file or directory (2) [ ] E/chromium(26713): [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/com.datahighway.app/cache/WebView/Crashpad: No such file or directory (2) [ +144 ms] D/SharedPreferencesImpl(26713): Time required to fsync /data/user/0/com.datahighway.app/shared_prefs/WebViewChromiumPrefs.xml: [<1: 0, <2: 0, <4: 0, <8: 0, <16: 0, <32: 0, <64: 0, <128: 0, <256: 0, <512: 1, <1024: 0, <2048: 0, <4096: 0, <8192: 0, <16384: 0, >=16384: 0] [ +99 ms] W/datahighway.ap(26713): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-> (Landroid/content/Context;I)V (light greylist, reflection) [ ] W/datahighway.ap(26713): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection) [ +2 ms] W/datahighway.ap(26713): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) [ ] W/datahighway.ap(26713): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) [ ] W/datahighway.ap(26713): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelection EventTracker$SelectionEvent; (light greylist, reflection) [ ] W/datahighway.ap(26713): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEvent Tracker$SelectionEvent; (light greylist, reflection) [ ] W/datahighway.ap(26713): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection) [ ] W/datahighway.ap(26713): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionE ventTracker$SelectionEvent; (light greylist, reflection) [ +80 ms] W/cr_media(26713): Requires BLUETOOTH permission [ +57 ms] W/AudioCapabilities(26713): Unsupported mime audio/ac4 [ +5 ms] W/AudioCapabilities(26713): Unsupported mime audio/x-ima [ +7 ms] W/AudioCapabilities(26713): Unsupported mime audio/x-ape [ +3 ms] W/AudioCapabilities(26713): Unsupported mime audio/eac3-joc [ +2 ms] W/AudioCapabilities(26713): Unsupported mime audio/evrc [ +9 ms] W/AudioCapabilities(26713): Unsupported mime audio/mpeg-L1 [ +2 ms] W/AudioCapabilities(26713): Unsupported mime audio/mpeg-L2 [ +4 ms] W/AudioCapabilities(26713): Unsupported mime audio/qcelp [ +3 ms] W/AudioCapabilities(26713): Unsupported mime audio/x-ms-wma [ +7 ms] W/AudioCapabilities(26713): Unsupported mime audio/evrc [ +8 ms] W/AudioCapabilities(26713): Unsupported mime audio/qcelp [ +24 ms] W/VideoCapabilities(26713): Unrecognized profile 4 for video/hevc [ +2 ms] W/VideoCapabilities(26713): Unsupported mime video/mp43 [ +9 ms] W/VideoCapabilities(26713): Unrecognized profile/level 1/32 for video/mp4v-es [ ] W/VideoCapabilities(26713): Unrecognized profile/level 32768/2 for video/mp4v-es [ ] W/VideoCapabilities(26713): Unrecognized profile/level 32768/64 for video/mp4v-es [ +2 ms] W/VideoCapabilities(26713): Unsupported mime video/wvc1 [ +15 ms] W/VideoCapabilities(26713): Unsupported mime video/wvc1 [ ] W/VideoCapabilities(26713): Unsupported mime video/x-ms-wmv7 [ +2 ms] W/VideoCapabilities(26713): Unsupported mime video/x-ms-wmv8 [ +14 ms] I/VideoCapabilities(26713): Unsupported profile 4 for video/mp4v-es [ +350 ms] E/AccessibilityBridge(26713): VirtualView node must not be the root node. [ +22 ms] I/flutter (26713): webview loaded [ +210 ms] E/AccessibilityBridge(26713): VirtualView node must not be the root node. [ +414 ms] I/flutter (26713): js file loaded [ +38 ms] I/flutter (26713): wss://kusama-rpc.polkadot.io/ [ +653 ms] I/flutter (26713): received msg: {"path":"log","data":"main js loaded"} [ +241 ms] D/NetworkSecurityConfig(26713): No Network Security Config specified, using platform default [+2529 ms] I/chromium(26713): [INFO:CONSOLE(23)] "2020-04-09 14:06:33", source: (23) [ +174 ms] Updating files [ +712 ms] DevFS: Sync finished [ +2 ms] Syncing files to device SM N950F... (completed in 8,649ms, longer than expected) [ ] Synced 3.5MB. [ +1 ms] Sending to VM service: _flutter.listViews({}) [ +4 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x7940673120, isolate: {type: @Isolate, fixedId: true, id: isolates/999268383613871, name: main.dart$main-999268383613871, number: 999268383613871}}]} [ +1 ms] <- accept [ ] Connected to _flutterView/0x7940673120. [ +2 ms] 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R". [ +1 ms] An Observatory debugger and profiler on SM N950F is available at: http://127.0.0.1:55218/Tex_-ATUAiA=/ [ ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
Could we update the polkawallet-io/polkawallet-flutter repo too with these relevant steps so the community knows how to overcome this issue?
@ltfschoen We will fix it by migrating the project to flutter 1.13, not by adding a MainActivity.kt
file.
Reproducing the issue
I've followed the following steps described in the README on macOS Mojave 10.14.6, with my objective just to try and run it on my Android device (Samsung Galaxy S8 Note with Android 9)
(where
<DEVICE_ID>
is the device ID that's shown when I runfluttter devices
But whilst the app gets installed on the mobile device, only the welcome window appears briefly but then closes, and then at the end of the terminal logs it hangs displaying
Waiting for observatory port to be available...
Troubleshooting Steps Taken
I've got the required dependencies installed (note that I'm only trying to build on Android so Xcode isn't required (since when I run it I'm specifying the Android device with
flutter run -d <DEVICE_ID)> -v
)I've tried restarting the computer, and I've tried restarting the device, but it still hangs.
I've updated the following settings on my Android phone so I don't get error
Device x is not authorized.
:I've checked that the device is connected with:
I've tried debugging the device logs by running the following in a different terminal window before running
flutter run -d <DEVICE_ID> -v
And more specifically I've also tried running the following on in a different terminal window to see what Observatory port is connected
But it only outputs the following, and doesn't output
Observatory is listening on: http://127.0.0.1:<PORT>
as expected (see https://github.com/flutter/flutter/issues/25455#issuecomment-483198080).I've tried killing the server
I've tried creating the myapp example on the Flutter website, and that builds and runs successfully without crashing on the same Android device
Environment
Note: Sometimes when I try to build in a new terminal window, it doesn't build successfully, and gives error:
so to get it to build I have to run the the following again:
References
I've gone through these related issues trying to resolve it:
https://github.com/flutter/flutter/issues/25455 https://github.com/flutter/flutter/issues/33214 https://github.com/flutter/flutter/issues/19770 https://github.com/flutter/flutter/issues/51269 https://medium.com/flutter-community/hot-reload-for-flutter-integration-tests-e0478b63bd54