Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter tool hangs waiting on observatory port when AndroidManifest.xml and MainActivity.kt package name get out of sync #33214

Closed
timsneath opened this issue May 22, 2019 · 37 comments
Labels
a: debugging Debugging, breakpoints, expression evaluation c: crash Stack traces logged to the console customer: crowd Affects or could affect many people, though not necessarily a specific customer. P2 Important issues not at the top of the work list platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@timsneath
Copy link
Contributor

Running flutter run -v -d pixel, my machine is blocked on waiting for an observatory port:

[ +154 ms] executing: /Users/timsneath/Library/Android/sdk/platform-tools/adb -s 91PY17QE5 shell pm list packages org.sneath.ui
[  +78 ms] package:org.sneath.ui
[   +5 ms] executing: /Users/timsneath/Library/Android/sdk/platform-tools/adb -s 91PY17QE5 shell cat /data/local/tmp/sky.org.sneath.ui.sha1
[  +68 ms] 08f43c862ef45c89f28f1fa4739338e431e2de53
[   +1 ms] Installing APK.
[   +2 ms] executing: /Users/timsneath/Library/Android/sdk/platform-tools/adb version
[   +8 ms] Android Debug Bridge version 1.0.40
           Version 28.0.2-5303910
           Installed as /Users/timsneath/Library/Android/sdk/platform-tools/adb
[        ] executing: /Users/timsneath/Library/Android/sdk/platform-tools/adb start-server
[   +7 ms] Installing build/app/outputs/apk/app.apk...
[        ] executing: /Users/timsneath/Library/Android/sdk/platform-tools/adb -s 91PY17QE5 install -t -r
/Users/timsneath/git/me/cambridge/spectrum/build/app/outputs/apk/app.apk
[+4431 ms] Performing Streamed Install
                    Success
[        ] Installing build/app/outputs/apk/app.apk... (completed in 4.4s)
[   +2 ms] executing: /Users/timsneath/Library/Android/sdk/platform-tools/adb -s 91PY17QE5 shell echo -n 9aa4ea09863fedf129e6e919a3a606763ec775e6 >
/data/local/tmp/sky.org.sneath.ui.sha1
[  +24 ms] Pixel 3 XL startApp
[   +1 ms] executing: /Users/timsneath/Library/Android/sdk/platform-tools/adb -s 91PY17QE5 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
org.sneath.ui/org.sneath.ui.MainActivity
[  +76 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=org.sneath.ui/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...

I can see some other examples of this (#26623, #23778), but they may be triggered by other scenarios, so opening a new bug.

flutter doctor -v reports:

[✓] Flutter (Channel master, v1.6.1-pre.87, on Mac OS X 10.14.5 18F132, locale en-US)
    • Flutter version 1.6.1-pre.87 at /Users/timsneath/flutter
    • Framework revision a6f1c095dc (3 hours ago), 2019-05-22 10:19:08 -0700
    • Engine revision 64f18f2cb6
    • Dart version 2.3.2 (build 2.3.2-dev.0.0 fde6a5917e)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/timsneath/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.6.1

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 35.2.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.34.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.0.2

[✓] Connected device (3 available)
    • Pixel 3 XL • 91PY17QE5                            • android-arm64 • Android 9 (API 28)
    • iPhone Xs  • 56F96104-5BD4-49DE-85CB-C9D165FCB383 • ios           • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)
    • macOS      • macOS                                • darwin-x64    • Mac OS X 10.14.5 18F132

• No issues found!
@timsneath timsneath added c: crash Stack traces logged to the console tool Affects the "flutter" command-line tool. See also t: labels. a: debugging Debugging, breakpoints, expression evaluation labels May 22, 2019
@wreppun
Copy link

wreppun commented May 22, 2019

This happened to me as well. I was on 1.6.0 (I've since reverted to stable).

The above linked issues seem to have been about admin permissions.

This only happens against Android (iOS simulator still works), and I've reproduced against both API 27 and API 28, running both in debug and release mode, on an emulator and on a device (in release mode, it doesn't hang on the observatory line, but just closes).

There is no error message, even when running with the --verbose flag.

[✓] Flutter (Channel dev, v1.6.0, on Mac OS X 10.14.4 18E226, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
    ✗ Verify that all connected devices have been paired with this computer in Xcode.
      If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
      To update with Brew, run:
        brew update
        brew uninstall --ignore-dependencies libimobiledevice
        brew uninstall --ignore-dependencies usbmuxd
        brew install --HEAD usbmuxd
        brew unlink usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.34.0)
[✓] Connected device (1 available)

@timsneath
Copy link
Contributor Author

@jason-simmons and I just did some troubleshooting, and it seems that in my case, the package name in AndroidManifest.xml and the package name in MainActivity.kt had gotten out of sync with each other. This leads to the app not being able to launch, which Jason detected by perusing the contents of adb logcat. I wonder if you're seeing the same, or something different?

@wreppun
Copy link

wreppun commented May 23, 2019

@timsneath , our issue was an orphaned <provider> in AndroidManifest.xml -- we had to remove a plugin to upgrade (because of the 1.5.9-pre.94 changes).

We're good now though, I think this can safely be closed.

@DanTup
Copy link
Contributor

DanTup commented May 23, 2019

Are there things we could do to detect these sorts of things and report them? If there are multiple causes and they're not obvious, it seems like this may come up again. If the errors are clearly identifiable from the logs, maybe we can could scan for them while waiting for the observatory port and write them out as warnings or something?

@hoo-ge
Copy link

hoo-ge commented May 28, 2019

I also encountered the same problem, it seems that the device is in the problem, and the project is running without problems on other devices.

@loolooii
Copy link

loolooii commented May 28, 2019

This happens to me both on my device and the emulator (but both are Pixel 2 and 3). See my comment also here

Also when I check Preferences => Languages & frameworks => Flutter, I see the same text: Waiting for another flutter command to release the startup lock..

Screenshot 2019-05-28 at 15 04 01

I don't have any name conflict in any of those files either. I did everything I mentioned in the comment linked above. This is really frustrating.

@hoo-ge
Copy link

hoo-ge commented May 29, 2019

It is recommended to add some log information in this section.

@loolooii
Copy link

loolooii commented May 31, 2019

This is what seems to go wrong:

[        ] Waiting for observatory port to be available...
[+1492 ms] Observatory URL on device: http://127.0.0.1:44775/8qv2iizvlus=/
[   +1 ms] executing: /Users/nima/Library/Android/sdk/platform-tools/adb -s
emulator-5554 forward tcp:0 tcp:44775
[   +9 ms] 53658
[        ] Forwarded host port 53658 to device port 44775 for Observatory
[   +5 ms] Connecting to service protocol: http://127.0.0.1:53658/8qv2iizvlus=/
[  +25 ms] Error connecting to the service protocol: HttpException: Connection
closed
           before full header was received, uri =
http://127.0.0.1:53658/8qv2iizvlus=/ws
[   +2 ms] "flutter run" took 54,545ms.
[        ] "flutter run" took 54,545ms.

#0      throwToolExit (package:flutter_tools/src/base/common.dart:24:3)
#1      RunCommand.runCommand
(package:flutter_tools/src/commands/run.dart:467:7)
<asynchronous suspension>
#2      FlutterCommand.verifyThenRunCommand
(package:flutter_tools/src/runner/flutter_command.dart:488:18)
#3      _asyncThenWrapperHelper.<anonymous closure>
(dart:async-patch/async_patch.dart:77:64)
#4      _rootRunUnary (dart:async/zone.dart:1132:38)
#5      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#6      _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#7      Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:639:45)
#8      Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#9      Future._complete (dart:async/future_impl.dart:473:7)
#10     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#11     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:28:18)
#12     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:294:13)
#13     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#14     _asyncThenWrapperHelper.<anonymous closure>
(dart:async-patch/async_patch.dart:77:64)
#15     _rootRunUnary (dart:async/zone.dart:1132:38)
#16     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17     _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#18     Future._propagateToListeners.handleValueCallback
(dart:async/future_impl.dart:639:45)
#19     Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#20     Future._complete (dart:async/future_impl.dart:473:7)
#21     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#22     _AsyncAwaitCompleter.complete.<anonymous closure>
(dart:async-patch/async_patch.dart:33:20)
#23     _rootRun (dart:async/zone.dart:1124:13)
#24     _CustomZone.run (dart:async/zone.dart:1021:19)
#25     _CustomZone.bindCallback.<anonymous closure>
(dart:async/zone.dart:947:23)
#26     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#27     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#28     _runPendingImmediateCallback
(dart:isolate-patch/isolate_patch.dart:115:13)
#29     _RawReceivePortImpl._handleMessage
(dart:isolate-patch/isolate_patch.dart:172:5)

But sometimes it doesn't go past Waiting for observatory port to be available...

@DanTup maybe you have some idea?

@loolooii
Copy link

loolooii commented Jun 6, 2019

This problem went away when I removed this plugin: flutter_webview_plugin

After sometime I tried to install it again just to see if this was really the cause of this problem and it happened again. I'm not saying that this is caused specifically only with this plugin, but definitely it helps to remove plugins one by one to see if that solves the problem.

@tunde-dovenet
Copy link

From my case, this problem started when I change the package name in AndroidManifest.xml.

To resolve the issue, I have to also change the package name in MainActivity.java file

image

@jmagman jmagman added this to Awaiting triage in Tools - Android review via automation Jan 11, 2020
@jmagman jmagman moved this from Awaiting triage to Engineer reviewed in Tools - Android review Feb 5, 2020
@kodeli-lab
Copy link

Hi @timsneath im also experiencing the same problem, for mine the package name for both kt and xml files are in sync but the app still hung on observatory port. what is the best solution to fixing this problem!!! please help.

@whosham
Copy link

whosham commented Feb 26, 2020

Hi There,
I have the same issue the application installation stuck at.
[ ] Waiting for observatory port to be available...

I developed the app on windows and shared the code on github.
I want to continue developing on Mac but when I cloned the project on the mac it never built adn it stuck at this phase.

[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.6 18G103, locale en-AE)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.5)
[✓] Connected device (1 available)

Any Help or workaround?

@pawlowskim
Copy link

I don't know what is causing the problem but if your are writing on iOS you could possibly

  • run application via XCode
  • on the top of the logs in XCode there will be observatory link
  • run flutter attach --debug-uri <link>

@TahaTesser TahaTesser added the customer: crowd Affects or could affect many people, though not necessarily a specific customer. label Mar 3, 2020
@gerben-van-eck
Copy link

gerben-van-eck commented Mar 4, 2020

I found so many Github issues regarding this topic that I don't know where to comment.. #51797 being one of them

After experimenting, what fixes it for me is switching to the master channel ( flutter channel master ) which corresponds to the master branch.
I manually 'walked back' using git checkout tags/v1.15.3 till 1.15.1 and I have the same issue on all these versions.
I run Fedora Linux 31, and have the issue both on a physical device running Android 10 and on an emulator running Android 9.

@jmagman jmagman changed the title Flutter tool hangs waiting on observatory port Flutter tool hangs waiting on observatory port when AndroidManifest.xml and MainActivity.kt package name get out of sync Mar 5, 2020
@jmagman
Copy link
Member

jmagman commented Mar 5, 2020

I think this issue has become a mash up of many "Waiting for observatory port to be available..." issues, which may have different causes (like any crash on launch).

If you are seeing this issue on iOS, this should be greatly improved on the dev channel. Please check #49735 and #46705.

Let's use this issue to track the tool detecting the mismatch between AndroidManifest.xml and MainActivity.kt and giving a better error message. If your package identifiers match, please file another issue.

@jmagman
Copy link
Member

jmagman commented Mar 5, 2020

When I update the AndroidManifest.xml package to from com.example.test_create to com.example.test_create1 and flutter run it fails:

Launching lib/main.dart on A0001 in debug mode...
/Users/m/Projects/test_create/android/app/src/debug/AndroidManifest.xml Error:
        Overlay manifest:package attribute declared at AndroidManifest.xml:2:5-38 value=(com.example.test_create)
        has a different value=(com.example.test_create) declared in main manifest at AndroidManifest.xml:2:5-39
        Suggestion: remove the overlay declaration at AndroidManifest.xml 	and place it in the build.gradle:
                flavorName {                                            
                        applicationId = "com.example.test_create"       
                }                                                       
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* What went wrong:                                                      
Execution failed for task ':app:processDebugManifest'.                  
> Manifest merger failed : Overlay manifest:package attribute declared at AndroidManifest.xml:2:5-38 value=(com.example.test_create)
        has a different value=(com.example.test_create) declared in main manifest at AndroidManifest.xml:2:5-39
        Suggestion: remove the overlay declaration at AndroidManifest.xml 	and place it in the build.gradle:
                flavorName {                                            
                        applicationId = "com.example.test_create"       
                }                                                       
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                        
* Get more help at https://help.gradle.org                              
                                                                        
BUILD FAILED in 822ms                                                   
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                         1.4s
Exception: Gradle task assembleDebug failed with exit code 1

because build.gradle has applicationId "com.example.test_create"
What's the best way to reproduce this?

@AlistairBates
Copy link

Is it possible that you also changed the android:name in the file android/app/src/main/AndroidManifest.xml

I found changing

<application android:name="io.flutter.app.FlutterApplication"

to something else caused this exact behaviour.

@newGeneracion
Copy link

newGeneracion commented Mar 22, 2020

any solution to the problem? I just installed flutter and follow the tutorial but it fails, I have a LG cell phone with Android 7.0 (API 24), Thanks for any help.

LOG:

Sun Mar 22 2020 [18:23:25 GMT-0500 (hora estándar de Colombia)] Log file started
[6:23:29 p. m.] [General] [Info] Starting debug session...
[6:23:29 p. m.] [General] [Info] workspace: C:\Users\Jimmy\Documents\TEST\Flutter\prueba
[6:23:29 p. m.] [General] [Info] Using found common entry point: C:\Users\Jimmy\Documents\TEST\Flutter\prueba\lib\main.dart
[6:23:29 p. m.] [General] [Info] Using workspace as cwd: C:\Users\Jimmy\Documents\TEST\Flutter\prueba
[6:23:29 p. m.] [General] [Info] Detected launch project as Flutter
[6:23:29 p. m.] [General] [Info] Using Flutter debug adapter for this session
[6:23:29 p. m.] [FlutterDaemon] [Info] ==> [{"id":"25","method":"daemon.getSupportedPlatforms","params":{"projectRoot":"C:\Users\Jimmy\Documents\TEST\Flutter\prueba"}}]
[6:23:29 p. m.] [FlutterDaemon] [Info] <== [{"id":"25","result":{"platforms":["ios","android"]}}]
[6:23:29 p. m.] [General] [Info] Checking for errors before launching
[6:23:29 p. m.] [General] [Info] Debug session starting...
{
"program": "C:\Users\Jimmy\Documents\TEST\Flutter\prueba\lib\main.dart",
"cwd": "C:\Users\Jimmy\Documents\TEST\Flutter\prueba",
"name": "Flutter (LG H840)",
"type": "dart",
"request": "launch",
"args": [],
"vmAdditionalArgs": [],
"vmServicePort": 0,
"dartPath": "C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe",
"maxLogLineLength": 2000,
"pubPath": "C:\src\flutter\bin\cache\dart-sdk\bin\pub.bat",
"pubSnapshotPath": "C:\src\flutter\bin\cache\dart-sdk\bin\snapshots\pub.dart.snapshot",
"debugSdkLibraries": false,
"debugExternalLibraries": false,
"showDartDeveloperLogs": true,
"useFlutterStructuredErrors": true,
"debuggerHandlesPathsEverywhereForBreakpoints": true,
"evaluateGettersInDebugViews": true,
"previewToStringInDebugViews": false,
"forceFlutterVerboseMode": true,
"flutterTrackWidgetCreation": true,
"flutterMode": "debug",
"flutterPlatform": "default",
"flutterPath": "C:\src\flutter\bin\flutter.bat",
"deviceId": "LGH840e29d2847",
"deviceName": "LG H840 (android-arm)",
"showMemoryUsage": false,
"debugServer": 49822,
"debuggerType": 2
}
[6:23:29 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] Spawning C:\src\flutter\bin\flutter.bat with args ["run","--machine","--target","lib\main.dart","-d","LGH840e29d2847","--track-widget-creation","--start-paused","-v"]
[6:23:29 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] .. in C:\Users\Jimmy\Documents\TEST\Flutter\prueba
[6:23:29 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] PID: 7772
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +29 ms] executing: [C:\src\flutter] git -c log.showSignature=false log -n 1 --pretty=format:%H
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +72 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] 0b8abb4
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] executing: [C:\src\flutter] git describe --match v*.. --first-parent --long --tags
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +49 ms] Exit code 0 from: git describe --match v*.. --first-parent --long --tags
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] v1.12.13+hotfix.8-0-g0b8abb472
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +8 ms] executing: [C:\src\flutter] git rev-parse --abbrev-ref --symbolic @{u}
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +47 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] origin/stable
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] executing: [C:\src\flutter] git ls-remote --get-url origin
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +48 ms] Exit code 0 from: git ls-remote --get-url origin
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] https://github.com/flutter/flutter.git
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +94 ms] executing: [C:\src\flutter] git rev-parse --abbrev-ref HEAD
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +69 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] stable
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +152 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +30 ms] Exit code 0 from: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] List of devices attached
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== LGH840e29d2847 device product:alicee_global_com model:LG_H840 device:alicee transport_id:3
[6:23:30 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +24 ms] C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe -s LGH840e29d2847 shell getprop
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +141 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +5 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +208 ms] Generating C:\Users\Jimmy\Documents\TEST\Flutter\prueba\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +36 ms] ro.hardware = alicee
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] ro.build.characteristics = default
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [{"event":"daemon.connected","params":{"version":"0.5.3","pid":1788}}]
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [{"event":"app.start","params":{"appId":"0edff9ef-3be1-4405-9e1b-87e038d9bd11","deviceId":"LGH840e29d2847","directory":"C:\Users\Jimmy\Documents\TEST\Flutter\prueba","supportsRestart":true,"launchMode":"run"}}]
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +99 ms] Launching lib\main.dart on LG H840 in debug mode...
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +18 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree C:\Users\Jimmy\Documents\TEST\Flutter\prueba\build\app\outputs\apk\app.apk AndroidManifest.xml
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +22 ms] Exit code 0 from: C:\Users\Jimmy\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree C:\Users\Jimmy\Documents\TEST\Flutter\prueba\build\app\outputs\apk\app.apk AndroidManifest.xml
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] N: android=http://schemas.android.com/apk/res/android
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: manifest (line=2)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:versionCode(0x0101021b)=(type 0x10)0x1
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: package="com.example.prueba" (Raw: "com.example.prueba")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: platformBuildVersionCode=(type 0x10)0x1c
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: platformBuildVersionName=(type 0x10)0x9
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: uses-sdk (line=7)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: uses-permission (line=14)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: application (line=22)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:label(0x01010001)="prueba" (Raw: "prueba")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:icon(0x01010002)=@0x7f080000
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: activity (line=28)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:theme(0x01010000)=@0x7f0a0000
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="com.example.prueba.MainActivity" (Raw: "com.example.prueba.MainActivity")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:launchMode(0x0101001d)=(type 0x10)0x1
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: intent-filter (line=35)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: action (line=36)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: category (line=38)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: meta-data (line=45)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:value(0x01010024)=(type 0x10)0x2
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +13 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe -s LGH840e29d2847 shell -x logcat -v time -t 1
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +152 ms] Exit code 0 from: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe -s LGH840e29d2847 shell -x logcat -v time -t 1
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] --------- beginning of main
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== 03-22 20:23:32.472 E/WifiHAL ( 2939): Received LOG message with insufficent length: 1676
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +6 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +2 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe -s LGH840e29d2847 logcat -v time -T 03-22 20:23:32.472
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +43 ms] Android Debug Bridge version 1.0.41
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== Version 29.0.6-6198805
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== Installed as C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +3 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +81 ms] Building APK
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [{"event":"app.progress","params":{"appId":"0edff9ef-3be1-4405-9e1b-87e038d9bd11","id":"0","progressId":null,"message":"Running Gradle task 'assembleDebug'..."}}]
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +66 ms] gradle.properties already sets android.enableR8
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +9 ms] Using gradle from C:\Users\Jimmy\Documents\TEST\Flutter\prueba\android\gradlew.bat.
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +26 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +134 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] openjdk version "1.8.0_212-release"
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
[6:23:31 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +5 ms] executing: [C:\Users\Jimmy\Documents\TEST\Flutter\prueba\android] C:\Users\Jimmy\Documents\TEST\Flutter\prueba\android\gradlew.bat -q -Ptarget=C:\Users\Jimmy\Documents\TEST\Flutter\prueba\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Ptarget-platform=android-arm assembleDebug
[6:23:37 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [{"event":"app.progress","params":{"appId":"0edff9ef-3be1-4405-9e1b-87e038d9bd11","id":"0","progressId":null,"finished":true}}]
[6:23:37 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [+5116 ms] calculateSha: LocalDirectory: 'C:\Users\Jimmy\Documents\TEST\Flutter\prueba\build\app\outputs\apk'/app.apk
[6:23:37 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +105 ms] calculateSha: reading file took 101us
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +845 ms] calculateSha: computing sha took 844us
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +7 ms] √ Built build\app\outputs\apk\debug\app-debug.apk.
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +7 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree C:\Users\Jimmy\Documents\TEST\Flutter\prueba\build\app\outputs\apk\app.apk AndroidManifest.xml
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +33 ms] Exit code 0 from: C:\Users\Jimmy\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt dump xmltree C:\Users\Jimmy\Documents\TEST\Flutter\prueba\build\app\outputs\apk\app.apk AndroidManifest.xml
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] N: android=http://schemas.android.com/apk/res/android
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: manifest (line=2)
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:versionCode(0x0101021b)=(type 0x10)0x1
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: package="com.example.prueba" (Raw: "com.example.prueba")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: platformBuildVersionCode=(type 0x10)0x1c
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: platformBuildVersionName=(type 0x10)0x9
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: uses-sdk (line=7)
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: uses-permission (line=14)
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: application (line=22)
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:label(0x01010001)="prueba" (Raw: "prueba")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:icon(0x01010002)=@0x7f080000
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: activity (line=28)
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:theme(0x01010000)=@0x7f0a0000
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="com.example.prueba.MainActivity" (Raw: "com.example.prueba.MainActivity")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:launchMode(0x0101001d)=(type 0x10)0x1
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: intent-filter (line=35)
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: action (line=36)
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: category (line=38)
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== E: meta-data (line=45)
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== A: android:value(0x01010024)=(type 0x10)0x2
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +1 ms] Stopping app 'app.apk' on LG H840.
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +1 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe -s LGH840e29d2847 shell am force-stop com.example.prueba
[6:23:38 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +900 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe -s LGH840e29d2847 shell pm list packages com.example.prueba
[6:23:39 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +833 ms] package:com.example.prueba
[6:23:39 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +2 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe -s LGH840e29d2847 shell cat /data/local/tmp/sky.com.example.prueba.sha1
[6:23:39 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +77 ms] f0f6dac81c171e588d89ddbda6a0a910d1d006b2
[6:23:39 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Latest build already installed.
[6:23:39 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] LG H840 startApp
[6:23:39 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +2 ms] executing: C:\Users\Jimmy\AppData\Local\Android\Sdk\platform-tools\adb.exe -s LGH840e29d2847 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 --ez start-paused true com.example.prueba/com.example.prueba.MainActivity
[6:23:40 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ +953 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.prueba/.MainActivity (has extras) }
[6:23:40 p. m.] [FlutterRun] [Info] [Flutter (LG H840)] <== [ ] Waiting for observatory port to be available...

@ZacharyEilers
Copy link

Definitely a weird problem. Changing the package name in MainActivity.kt worked for me though.

@ArronXiao
Copy link

Definitely a weird problem. Changing the package name in MainActivity.kt worked for me though.

yes, so weird, I have the same situation

@yusuf-khamis
Copy link

I have tried all the suggestions posted, mine still says 'Waiting for observatory port to be available...', any other ideas on how to fix it??

@gazialankus
Copy link
Contributor

I'm getting Waiting for observatory port to be available... on fresh projects. Tried many things, various Flutter versions, etc. I also tried the previous version of stable. No dice...

Only happens on device. Does not happen on emulator.

@iapicca
Copy link
Contributor

iapicca commented May 22, 2020

Hi all
if the issue you are experiencing
is occurring specifically on devices running Android 7
please look at this issue
Thank you

@christianarduino
Copy link

I have the same issue on every project. In Android emulator or iOS simulator works well. When I try to run on my device, i have "Waiting for observatory port to be available...".

Device: LG G6
Android Version: 8.0.0

For that, I can't debug on my real device. Any solution?

I tried all the possible solution, but no results

@Himnashu
Copy link

I'm also facing the same issue.
executing: /Users/apple/Library/Android/sdk/build-tools/29.0.3/aapt dump xmltree /Users/apple/Desktop/FluxStore-woo 1.6.6b/source/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +13 ms] Exit code 0 from: /Users/apple/Library/Android/sdk/build-tools/29.0.3/aapt dump xmltree /Users/apple/Desktop/FluxStore-woo 1.6.6b/source/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)0xbc0
A: android:versionName(0x0101021c)="1.1.2" (Raw: "1.1.2")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="com.myhost.Saachi" (Raw: "com.myhost.Saachi")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x13
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.ACCESS_FINE_LOCATION" (Raw: "android.permission.ACCESS_FINE_LOCATION")
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.ACCESS_COARSE_LOCATION" (Raw: "android.permission.ACCESS_COARSE_LOCATION")
E: uses-permission (line=17)
A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
E: uses-permission (line=18)
A: android:name(0x01010003)="android.permission.ACCESS_WIFI_STATE" (Raw: "android.permission.ACCESS_WIFI_STATE")
E: uses-permission (line=19)
A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
E: uses-permission (line=20)
A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw: "com.google.android.c2dm.permission.RECEIVE")
E: uses-feature (line=22)
A: android:glEsVersion(0x01010281)=(type 0x11)0x20000
A: android:required(0x0101028e)=(type 0x12)0xffffffff
E: uses-permission (line=26)
A: android:name(0x01010003)="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" (Raw: "com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE")
E: application (line=34)
A: android:label(0x01010001)="Saachi" (Raw: "Saachi")
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:supportsRtl(0x010103af)=(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=42)
A: android:theme(0x01010000)=@0x7f0d00a5
A: android:name(0x01010003)="com.myhost.Saachi.MainActivity" (Raw: "com.myhost.Saachi.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=56)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: meta-data (line=59)
A: android:name(0x01010003)="com.google.android.geo.API_KEY" (Raw: "com.google.android.geo.API_KEY")
A: android:value(0x01010024)="AIzaSyDnBpxFOfeG6P06nK97hMg01kEgX48JhLE" (Raw: "AIzaSyDnBpxFOfeG6P06nK97hMg01kEgX48JhLE")
E: intent-filter (line=63)
E: action (line=64)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=66)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: intent-filter (line=68)
E: action (line=69)
A: android:name(0x01010003)="FLUTTER_NOTIFICATION_CLICK" (Raw: "FLUTTER_NOTIFICATION_CLICK")
E: category (line=71)
A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
E: meta-data (line=74)
A: android:name(0x01010003)="default-url" (Raw: "default-url")
A: android:value(0x01010024)="https://inspireui.com" (Raw: "https://inspireui.com")
E: intent-filter (line=78)
A: android:autoVerify(0x010104ee)=(type 0x12)0xffffffff
E: action (line=79)
A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
E: category (line=81)
A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
E: category (line=82)
A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
E: data (line=84)
A: android:scheme(0x01010027)="https" (Raw: "https")
A: android:host(0x01010028)="inspireui.com" (Raw: "inspireui.com")
E: data (line=87)
A: android:scheme(0x01010027)="http" (Raw: "http")
E: meta-data (line=92)
A: android:name(0x01010003)="com.google.android.geo.API_KEY" (Raw: "com.google.android.geo.API_KEY")
A: android:value(0x01010024)=@0x7f0c001d
E: meta-data (line=95)
A: android:name(0x01010003)="com.google.android.gms.ads.APPLICATION_ID" (Raw: "com.google.android.gms.ads.APPLICATION_ID")
A: android:value(0x01010024)=@0x7f0c001b
E: meta-data (line=100)
A: android:name(0x01010003)="com.facebook.sdk.ApplicationId" (Raw: "com.facebook.sdk.ApplicationId")
A: android:value(0x01010024)=@0x7f0c0049
E: activity (line=104)
A: android:theme(0x01010000)=@0x7f0d0177
A: android:label(0x01010001)=@0x7f0c001e
A: android:name(0x01010003)="com.facebook.FacebookActivity" (Raw: "com.facebook.FacebookActivity")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
A: android:configChanges(0x0101001f)=(type 0x11)0x5b0
E: activity (line=110)
A: android:name(0x01010003)="com.facebook.CustomTabActivity" (Raw: "com.facebook.CustomTabActivity")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=113)
E: action (line=114)
A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
E: category (line=116)
A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
E: category (line=117)
A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
E: data (line=119)
A: android:scheme(0x01010027)=@0x7f0c004a
E: intent-filter (line=121)
E: action (line=122)
A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
E: category (line=124)
A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
E: category (line=125)
A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
E: data (line=127)
A: android:scheme(0x01010027)="fbconnect" (Raw: "fbconnect")
A: android:host(0x01010028)="cct.com.myhost.Saachi" (Raw: "cct.com.myhost.Saachi")
E: activity (line=132)
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
E: service (line=137)
A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw: "com.google.firebase.components.ComponentDiscoveryService")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:directBootAware(0x01010505)=(type 0x12)0xffffffff
E: meta-data (line=141)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.database.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebase.database.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=144)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebaseauth.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebaseauth.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=147)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=150)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebasemessaging.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebasemessaging.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=153)
A: android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebaseanalytics.FlutterFirebaseAppRegistrar" (Raw:
"com.google.firebase.components:io.flutter.plugins.firebaseanalytics.FlutterFirebaseAppRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=156)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=159)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.storage.StorageRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.storage.StorageRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=162)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.database.DatabaseRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.database.DatabaseRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=165)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" (Raw:
"com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: meta-data (line=168)
A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw: "com.google.firebase.components:com.google.firebase.iid.Registrar")
A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw: "com.google.firebase.components.ComponentRegistrar")
E: provider (line=173)
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.myhost.Saachi.fileprovider" (Raw: "com.myhost.Saachi.fileprovider")
A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff
E: meta-data (line=178)
A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS")
A: android:resource(0x01010025)=@0x7f0f0000
E: service (line=183)
A: android:name(0x01010003)="io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService" (Raw: "io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService")
E: intent-filter (line=184)
E: action (line=185)
A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw: "com.google.firebase.MESSAGING_EVENT")
E: activity (line=189)
A: android:theme(0x01010000)=@0x01030010
A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" (Raw: "com.google.android.gms.auth.api.signin.internal.SignInHubActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
E: service (line=198)
A: android:name(0x01010003)="com.google.android.gms.auth.api.signin.RevocationBoundService" (Raw: "com.google.android.gms.auth.api.signin.RevocationBoundService")
A: android:permission(0x01010006)="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" (Raw:
"com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: activity (line=203)
A: android:theme(0x01010000)=@0x01030010
A: android:name(0x01010003)="com.google.firebase.auth.internal.FederatedSignInActivity" (Raw: "com.google.firebase.auth.internal.FederatedSignInActivity")
A: android:permission(0x01010006)="com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN" (Raw: "com.google.firebase.auth.api.gms.permission.LAUNCH_FEDERATED_SIGN_IN")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
A: android:launchMode(0x0101001d)=(type 0x10)0x2
E: service (line=214)
A: android:name(0x01010003)="com.google.firebase.messaging.FirebaseMessagingService" (Raw: "com.google.firebase.messaging.FirebaseMessagingService")
A: android:exported(0x01010010)=(type 0x12)0x0
E: intent-filter (line=217)
A: android:priority(0x0101001c)=(type 0x10)0xfffffe0c
E: action (line=218)
A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw: "com.google.firebase.MESSAGING_EVENT")
E: receiver (line=222)
A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw: "com.google.firebase.iid.FirebaseInstanceIdReceiver")
A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw: "com.google.android.c2dm.permission.SEND")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=226)
E: action (line=227)
A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE")
E: provider (line=231)
A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.myhost.Saachi.firebaseinitprovider" (Raw: "com.myhost.Saachi.firebaseinitprovider")
A: android:initOrder(0x0101001a)=(type 0x10)0x64
E: uses-library (line=236)
A: android:name(0x01010003)="org.apache.http.legacy" (Raw: "org.apache.http.legacy")
A: android:required(0x0101028e)=(type 0x12)0x0
E: activity (line=240)
A: android:theme(0x01010000)=@0x01030010
A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: activity (line=244)
A: android:theme(0x01010000)=@0x01030010
A: android:name(0x01010003)="com.facebook.ads.AudienceNetworkActivity" (Raw: "com.facebook.ads.AudienceNetworkActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:configChanges(0x0101001f)=(type 0x11)0x4a0
E: provider (line=250)
A: android:name(0x01010003)="com.facebook.ads.AudienceNetworkContentProvider" (Raw: "com.facebook.ads.AudienceNetworkContentProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.myhost.Saachi.AudienceNetworkContentProvider" (Raw: "com.myhost.Saachi.AudienceNetworkContentProvider")
E: activity (line=254)
A: android:theme(0x01010000)=@0x0103000f
A: android:name(0x01010003)="com.google.android.gms.ads.AdActivity" (Raw: "com.google.android.gms.ads.AdActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:configChanges(0x0101001f)=(type 0x11)0xfb0
E: provider (line=260)
A: android:name(0x01010003)="com.google.android.gms.ads.MobileAdsInitProvider" (Raw: "com.google.android.gms.ads.MobileAdsInitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.myhost.Saachi.mobileadsinitprovider" (Raw: "com.myhost.Saachi.mobileadsinitprovider")
A: android:initOrder(0x0101001a)=(type 0x10)0x64
E: receiver (line=266)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementReceiver")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: receiver (line=271)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver" (Raw: "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver")
A: android:permission(0x01010006)="android.permission.INSTALL_PACKAGES" (Raw: "android.permission.INSTALL_PACKAGES")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0xffffffff
E: intent-filter (line=276)
E: action (line=277)
A: android:name(0x01010003)="com.android.vending.INSTALL_REFERRER" (Raw: "com.android.vending.INSTALL_REFERRER")
E: service (line=281)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementService" (Raw: "com.google.android.gms.measurement.AppMeasurementService")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: service (line=285)
A: android:name(0x01010003)="com.google.android.gms.measurement.AppMeasurementJobService" (Raw: "com.google.android.gms.measurement.AppMeasurementJobService")
A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")
A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=291)
A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
A: android:value(0x01010024)=@0x7f080004
E: activity (line=295)
A: android:name(0x01010003)="com.facebook.CustomTabMainActivity" (Raw: "com.facebook.CustomTabMainActivity")
E: provider (line=305)
A: android:name(0x01010003)="com.facebook.internal.FacebookInitProvider" (Raw: "com.facebook.internal.FacebookInitProvider")
A: android:exported(0x01010010)=(type 0x12)0x0
A: android:authorities(0x01010018)="com.myhost.Saachi.FacebookInitProvider" (Raw: "com.myhost.Saachi.FacebookInitProvider")
E: receiver (line=310)
A: android:name(0x01010003)="com.facebook.CurrentAccessTokenExpirationBroadcastReceiver" (Raw: "com.facebook.CurrentAccessTokenExpirationBroadcastReceiver")
A: android:exported(0x01010010)=(type 0x12)0x0
E: intent-filter (line=313)
E: action (line=314)
A: android:name(0x01010003)="com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED" (Raw: "com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED")
[ +16 ms] Stopping app 'app.apk' on AOSP on IA Emulator.
[ +2 ms] executing: /Users/apple/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.myhost.Saachi
[ +97 ms] executing: /Users/apple/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.myhost.Saachi
[ +106 ms] package:com.myhost.Saachi
[ +4 ms] executing: /Users/apple/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.myhost.Saachi.sha1
[ +55 ms] 821a8326ec5810cd93419fbd38020aa6334b9801
[ ] Latest build already installed.
[ ] AOSP on IA Emulator startApp
[ +2 ms] executing: /Users/apple/Library/Android/sdk/platform-tools/adb -s emulator-5554 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.myhost.Saachi/com.myhost.Saachi.MainActivity
[ +55 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.myhost.Saachi/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...

@iapicca iapicca added the P2 Important issues not at the top of the work list label Jun 3, 2020
@andremuller
Copy link

I have the same issue on every project. In Android emulator or iOS simulator works well. When I try to run on my device, i have "Waiting for observatory port to be available...".

Device: LG G6
Android Version: 8.0.0

For that, I can't debug on my real device. Any solution?

I tried all the possible solution, but no results

With my LG G6 I have the same issue.
It looks like the new versions of adb added some compatibility issues with some LG phones.

Downgrading to platform-tools version 28.0.0 solved the problem.

References:

https://superuser.com/questions/1357708/android-adb-logcat-works-only-on-shell/1357929#1357929

#18889 (comment)

@rsribharadwaj
Copy link

@jason-simmons and I just did some troubleshooting, and it seems that in my case, the package name in AndroidManifest.xml and the package name in MainActivity.kt had gotten out of sync with each other. This leads to the app not being able to launch, which Jason detected by perusing the contents of adb logcat. I wonder if you're seeing the same, or something different?

Thanks...Thanks and just Thanks

@snwagbata
Copy link

@christianarduino upgrade to v 1.20.0 and run your project

@tokenflow
Copy link

Here what worked in my case

adb -s <your emulator/device id> uninstall com.yourpackage.name

@Ibtesam-Mahmood
Copy link

Here what worked in my case

adb -s <your emulator/device id> uninstall com.yourpackage.name

@tokenflow Thank you that fixed it for me. While my device did not seem to have the application installed when i searched for it. This command fully removed the application from my phone. This is what seems to be blocking the observatory port from attaching.

@VirtualAstronaut
Copy link

VirtualAstronaut commented Jan 24, 2021

I found so many Github issues regarding this topic that I don't know where to comment.. #51797 being one of them

After experimenting, what fixes it for me is switching to the master channel ( flutter channel master ) which corresponds to the master branch.
I manually 'walked back' using git checkout tags/v1.15.3 till 1.15.1 and I have the same issue on all these versions.
I run Fedora Linux 31, and have the issue both on a physical device running Android 10 and on an emulator running Android 9.

this worked for me & I have disabled embedded devTools in Flutter inspector

I don't know what wud be cause. i am just learning flutter.
I have tried various things but none worked then only once I saw dartDevtools(before disabling) in flutter inspector and when i opened devTools in browser application ran fine

Edit: issue was related to Custom Rom i have installed i changed Rom and there is no issue now.
I am not sure but it has something do with logging level.

here is my previous flutter run --verbose

[ +157 ms] executing: [C:\flutter\flutter_windows_1.22.0-stable\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +55 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 7891006
[ ] executing: [C:\flutter\flutter_windows_1.22.0-stable\flutter/] git tag --points-at HEAD
[ +30 ms] Exit code 0 from: git tag --points-at HEAD
[ ] 1.22.5
[ +10 ms] executing: [C:\flutter\flutter_windows_1.22.0-stable\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +20 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [C:\flutter\flutter_windows_1.22.0-stable\flutter/] git ls-remote --get-url origin
[ +20 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +63 ms] executing: [C:\flutter\flutter_windows_1.22.0-stable\flutter/] git rev-parse --abbrev-ref HEAD
[ +108 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +72 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.
[ +5 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.
[ +115 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +134 ms] List of devices attached
100.87.130.101:5555 device product:WW_X00TD model:ZenFone_Max_Pro_M1 device:ASUS_X00T_2 transport_id:1
[ +8 ms] C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe -s 100.87.130.101:5555 shell getprop
[ +121 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +4 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.
[ +452 ms] Generating C:\Users\suez\AndroidStudioProjects\flutter_appkek\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +37 ms] ro.hardware = qcom
[ +110 ms] Starting incremental build...
[ +5 ms] Initializing file store
[ +19 ms] Skipping target: gen_localizations
[ +9 ms] complete
[ +7 ms] Launching lib\main.dart on ZenFone Max Pro M1 in debug mode...
[ +53 ms] C:\flutter\flutter_windows_1.22.0-stable\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\flutter\flutter_windows_1.22.0-stable\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\flutter\flutter_windows_1.22.0-stable\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -Ddart.developer.causal_async_stacks=true -Dflutter.inspector.structuredErrors=true --output-dill C:\Users\suez\AppData\Local\Temp\flutter_tools.5b6cf5b6\flutter_tool.c2a7fb36\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 --initialize-from-dill build\f872507f30e2ff2523f0f1d19160266e.cache.dill.track.dill
[ +29 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\Users\suez\AndroidStudioProjects\flutter_appkek\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ +118 ms] Exit code 0 from: C:\Users\suez\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\Users\suez\AndroidStudioProjects\flutter_appkek\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)0x1d
A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
A: package="com.example.flutter_appkek" (Raw: "com.example.flutter_appkek")
A: platformBuildVersionCode=(type 0x10)0x1d
A: platformBuildVersionName=(type 0x10)0xa
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=22)
A: android:label(0x01010001)="flutter_appkek" (Raw: "flutter_appkek")
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.flutter_appkek.MainActivity" (Raw: "com.example.flutter_appkek.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
[ +8 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe -s 100.87.130.101:5555 shell -x logcat -v time -t 1
[ +88 ms] Exit code 0 from: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe -s 100.87.130.101:5555 shell -x logcat -v time -t 1
[ ] --------- beginning of main
01-24 16:56:28.332 D/TelephonyProvider( 2694): Using old permission behavior for telephony provider compat
[ +1 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe -s 100.87.130.101:5555 shell -x logcat -v time -t 1
[ +92 ms] Exit code 0 from: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe -s 100.87.130.101:5555 shell -x logcat -v time -t 1
[ ] --------- beginning of kernel
06-13 03:51:43.511 D/logd ( 0): logdr: UID=2000 GID=2000 PID=9709 n tail=1 logMask=99 pid=0 start=0ns timeout=0ns
[ +5 ms] <- compile package:flutter_appkek/main.dart
[ +17 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe version
[ +49 ms] Android Debug Bridge version 1.0.41
Version 30.0.5-6877874
Installed as C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe
[ +2 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[ +18 ms] Building APK
Running Gradle task 'assembleDebug'...
[ +178 ms] gradle.properties already sets android.enableR8
[ +5 ms] Using gradle from C:\Users\suez\AndroidStudioProjects\flutter_appkek\android\gradlew.bat.
[ +2 ms] C:\Users\suez\AndroidStudioProjects\flutter_appkek\android\gradlew.bat mode: 33279 rwxrwxrwx.
[ +12 ms] executing: C:\a1pograms\a1pograms\jre\bin\java -version
[ +89 ms] Exit code 0 from: C:\a1pograms\a1pograms\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:\Users\suez\AndroidStudioProjects\flutter_appkek\android/] C:\Users\suez\AndroidStudioProjects\flutter_appkek\android\gradlew.bat -q -Ptarget-platform=android-arm64 -Ptarget=C:\Users\suez\AndroidStudioProjects\flutter_appkek\lib\main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Pdart-defines=flutter.inspector.structuredErrors%3Dtrue assembleDebug
[+8459 ms] calculateSha: LocalDirectory: 'C:\Users\suez\AndroidStudioProjects\flutter_appkek\build\app\outputs\flutter-apk'/app.apk
[ +38 ms] calculateSha: reading file took 37us
[ +757 ms] calculateSha: computing sha took 756us
[ +6 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk.
[ +4 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\Users\suez\AndroidStudioProjects\flutter_appkek\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ +10 ms] Exit code 0 from: C:\Users\suez\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\Users\suez\AndroidStudioProjects\flutter_appkek\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)0x1d
A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
A: package="com.example.flutter_appkek" (Raw: "com.example.flutter_appkek")
A: platformBuildVersionCode=(type 0x10)0x1d
A: platformBuildVersionName=(type 0x10)0xa
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1d
E: uses-permission (line=14)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=22)
A: android:label(0x01010001)="flutter_appkek" (Raw: "flutter_appkek")
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.flutter_appkek.MainActivity" (Raw: "com.example.flutter_appkek.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
[ +2 ms] Stopping app 'app.apk' on ZenFone Max Pro M1.
[ +1 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe -s 100.87.130.101:5555 shell am force-stop com.example.flutter_appkek
[ +148 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe -s 100.87.130.101:5555 shell pm list packages com.example.flutter_appkek
[ +190 ms] package:com.example.flutter_appkek
[ +2 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe -s 100.87.130.101:5555 shell cat /data/local/tmp/sky.com.example.flutter_appkek.sha1
[ +56 ms] f57ca76a0e8ea455c94cea978454e674838d72cb
[ ] Latest build already installed.
[ ] ZenFone Max Pro M1 startApp
[ +3 ms] executing: C:\Users\suez\AppData\Local\Android\sdk\platform-tools\adb.exe -s 100.87.130.101:5555 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 --ez start-paused true com.example.flutter_appkek/com.example.flutter_appkek.MainActivity
[ +182 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.flutter_appkek/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...

@underhiswings
Copy link

underhiswings commented Jan 28, 2021

I solve the problem!

  1. check two names are same:
    the package name in android/app/src/mainAndroidManifest.xml
    the package name in android/app/main/kotiln/MainActivity.kt

  2. check ios bundle name is similler with the package name
    (example)
    ios bundle name: com.example.myAppName
    package name: com.example.my_app_name

  3. check the name of firebase ios application bundle ID is same with ios bundle name

in firebase
image

in xcode
image

@lxy111222
Copy link

lxy111222 commented Jan 7, 2022

看一下android——》app——》src——》main——》AndroidManifest.xml文件中,没有没有android:name=".MainApplication"属性,有这个也会导致flutter run -v时,出现Waiting for observatory port to be available...的情况

@AlexKenbo
Copy link

A solution was found:
#99179

@jmagman jmagman added the platform-android Android applications specifically label Feb 28, 2022
@blasten
Copy link

blasten commented Feb 28, 2022

There might be multiple issues being combined into this thread.
It will help us understand the nature of the issue if someone could upload and share the content of the android/ directory.

@blasten blasten added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 28, 2022
@github-actions
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.

@github-actions
Copy link

github-actions bot commented Apr 4, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: debugging Debugging, breakpoints, expression evaluation c: crash Stack traces logged to the console customer: crowd Affects or could affect many people, though not necessarily a specific customer. P2 Important issues not at the top of the work list platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
Tools - Android review
  
Engineer reviewed
Development

No branches or pull requests