Problem with Android Oreo and VS 2017

The same project was compiling, debugging, and running fine. However, after Verizon upgraded my Google Pixel to Oreo (8.0), I can't debug anymore.
Debug output:
Android application is debugging. Couldn't connect to logcat, GetProcessId returned: 0

I do have the Android 8.0.0 (API 26) SDK Platform installed.

What should I do to help diagnose this problem? This has brought our whole project to a stop.

Thanks.

Best Answer

Answers

  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    Do you have the JDK 1.8.0_144 installed?

    You should see API 26 in properties of the .droid project.

    I don't have an Oreo device to confirm this really works however.

  • centrolutionscentrolutions USMember ✭✭

    I did not have that version of the JDK installed... interesting. I only had jdk1.8.0_131 installed. However, I downloaded the version you mentioned, pointed VS at it and I'm still getting the same result.

    I do see Android 7.99.0 (API Level 26 - O Beta) listed in my drop-down list.

    Thanks for the quick reply. Any other ideas?

    Note: The emulator is working fine and so is an older Samsung Note I borrowed to test with.

  • TimRicciardiTimRicciardi USMember

    I'm having the exact same issue. Been trying for 2 days to resolve it.

  • RobSchoenakerRobSchoenaker NLMember ✭✭
    edited September 2017

    Same issue. Seems to be related to a DLL not found error. I wanted to incude the log, but the forum won't let me... Will attach a file instead.

  • IQUIIDeveloperIQUIIDeveloper ITMember ✭✭

    It's a known issue, not yet resolved...
    https://bugzilla.xamarin.com/show_bug.cgi?id=56740

    It seems that it works fine with VS for Mac.
    I had to downgrade my device back to 7.1.2 to solve the issue on Windows...

  • centrolutionscentrolutions USMember ✭✭
    @IQUIIDeveloper thanks for the link to the bug. I'm glad I'm not the only one having this problem.
    The one time Verizon is on the ball with an update and it comes back to bite me. :#
    Anyway, I guess I'll wait for the bug fix and use the emulator and borrowed phones for a bit.
  • RobSchoenakerRobSchoenaker NLMember ✭✭

    Same issue, even on new 'blank' app. It seems to be related to a permission issue or a dll not found issue. The complete trace here:

    Time Device Name Type PID Tag Message 09-01 08:37:21.263 LGE Nexus 5X Warning 3246 OpenGLRenderer Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer... 09-01 08:37:21.263 LGE Nexus 5X Warning 3246 OpenGLRenderer Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer... 09-01 08:37:20.910 LGE Nexus 5X Error 420 SurfaceFlinger Failed to find layer (Splash Screen App1.App1#0) in layer parent (no-parent). 09-01 08:37:20.898 LGE Nexus 5X Info 3337 MicroDetectionWorker onReady 09-01 08:37:20.847 LGE Nexus 5X Debug 3176 RegisteredNfcFServicesCache Service unchanged, not updating 09-01 08:37:20.841 LGE Nexus 5X Debug 1487 CarrierSvcBindHelper No carrier app for: 0 09-01 08:37:20.834 LGE Nexus 5X Warning 769 ActivityManager Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=3379, uid=10018 that is not exported from uid 10071 09-01 08:37:20.828 LGE Nexus 5X Warning 769 ActivityManager Duplicate finish request for ActivityRecord{e2e85b3 u0 App1.App1/md5579855c995bdb073d8182511e793544c.MainActivity t1499 f} 09-01 08:37:20.825 LGE Nexus 5X Info 769 ActivityManager Killing 30224:App1.App1/u0a167 (adj 900): stop App1.App1 Force finishing activity ActivityRecord{e2e85b3 u0 App1.App1/md5579855c995bdb073d8182511e793544c.MainActivity t1499 f} 09-01 08:37:20.824 LGE Nexus 5X Info 769 ActivityManager Force stopping App1.App1 appid=10167 user=0: from pid 30245 09-01 08:37:20.821 LGE Nexus 5X Debug 551 audio_hw_primary enable_audio_route: usecase(9) apply and update mixer path: audio-record 09-01 08:37:20.816 LGE Nexus 5X Info 3337 MicrophoneInputStream mic_started [email protected] 09-01 08:37:20.816 LGE Nexus 5X Debug 551 sound_trigger_platform platform_stdev_check_and_update_concurrency: concurrency active 0, tx 1, rx 0, concurrency session_allowed 0 09-01 08:37:20.816 LGE Nexus 5X Debug 551 audio_hw_primary enable_snd_device: snd_device(72: voice-rec-mic) 09-01 08:37:20.813 LGE Nexus 5X Info 551 SoundTriggerHwService::Module onCallbackEvent no clients 09-01 08:37:20.807 LGE Nexus 5X Info 551 AudioFlinger AudioFlinger's thread 0xe982a740 tid=30248 ready to run 09-01 08:37:20.801 LGE Nexus 5X Info 3337 MicroDetectionWorker onReady 09-01 08:37:20.800 LGE Nexus 5X Warning 551 DeviceHAL Device 0xed5ad000 open_input_stream: Invalid argument 09-01 08:37:20.798 LGE Nexus 5X Info 3337 MicrophoneInputStream mic_starting [email protected] 09-01 08:37:20.797 LGE Nexus 5X Info 3337 MicroRecognitionRunner Starting detection. 09-01 08:37:20.790 LGE Nexus 5X Info 3337 MicroRecognitionRunner Detection finished 09-01 08:37:20.785 LGE Nexus 5X Info 551 SoundTriggerHwService::Module onCallbackEvent no clients 09-01 08:37:20.783 LGE Nexus 5X Debug 551 sound_trigger_platform platform_stdev_check_and_update_concurrency: concurrency active 0, tx 0, rx 0, concurrency session_allowed 1 09-01 08:37:20.777 LGE Nexus 5X Debug 551 audio_hw_primary disable_snd_device: snd_device(72: voice-rec-mic) 09-01 08:37:20.776 LGE Nexus 5X Debug 551 audio_hw_primary disable_audio_route: usecase(9) reset and update mixer path: audio-record 09-01 08:37:20.748 LGE Nexus 5X Info 3337 MicroDetectionWorker #startMicroDetector [speakerMode: 0] 09-01 08:37:20.748 LGE Nexus 5X Info 3337 MicroDetectionWorker #updateMicroDetector [detectionMode: [mDetectionMode: [1]]] 09-01 08:37:20.723 LGE Nexus 5X Info 3337 MicroRecognitionRunner Stopping hotword detection. 09-01 08:37:20.722 LGE Nexus 5X Info 3337 MicrophoneInputStream mic_close [email protected] 09-01 08:37:20.722 LGE Nexus 5X Info 3337 MicroDetector Keeping mic open: false 09-01 08:37:20.722 LGE Nexus 5X Info 3337 DeviceStateChecker DeviceStateChecker cancelled 09-01 08:37:20.722 LGE Nexus 5X Info 3337 AudioController internalShutdown 09-01 08:37:20.713 LGE Nexus 5X Debug 1487 CarrierSvcBindHelper No carrier app for: 0 09-01 08:37:20.713 LGE Nexus 5X Debug 3176 RegisteredNfcFServicesCache Service unchanged, not updating 09-01 08:37:20.697 LGE Nexus 5X Warning 769 ActivityManager Permission Denial: Accessing service ComponentInfo{com.google.android.music/com.google.android.music.dial.DialMediaRouteProviderService} from pid=3379, uid=10018 that is not exported from uid 10071 09-01 08:37:20.683 LGE Nexus 5X Info 769 OpenGLRenderer Initialized EGL, version 1.4 09-01 08:37:20.683 LGE Nexus 5X Debug 769 OpenGLRenderer Swap behavior 2 09-01 08:37:20.674 LGE Nexus 5X Warning 769 ActivityManager Duplicate finish request for ActivityRecord{e2e85b3 u0 App1.App1/md5579855c995bdb073d8182511e793544c.MainActivity t1499 f} 09-01 08:37:20.645 LGE Nexus 5X Info 30224 zygote64 Late-enabling -Xcheck:jni Force finishing activity ActivityRecord{e2e85b3 u0 App1.App1/md5579855c995bdb073d8182511e793544c.MainActivity t1499} Force finishing activity ActivityRecord{e2e85b3 u0 App1.App1/md5579855c995bdb073d8182511e793544c.MainActivity t1499 f} 09-01 08:37:20.644 LGE Nexus 5X Info 769 ActivityManager Start proc 30224:App1.App1/u0a167 for activity App1.App1/md5579855c995bdb073d8182511e793544c.MainActivity 09-01 08:37:20.623 LGE Nexus 5X Info 769 ActivityManager Killing 30192:App1.App1/u0a167 (adj 0): stop App1.App1 09-01 08:37:20.622 LGE Nexus 5X Info 769 ActivityManager Force stopping App1.App1 appid=10167 user=0: from pid 30222 09-01 08:37:20.611 LGE Nexus 5X Debug 30192 Mono Config attempting to parse: 'Mono.Android.dll.config'. 09-01 08:37:20.611 LGE Nexus 5X Debug 30192 Mono Config attempting to parse: '/usr/local/etc/mono/assemblies/Mono.Android/Mono.Android.config'. 09-01 08:37:20.609 LGE Nexus 5X Debug 30192 Mono AOT: image '/usr/local/lib/mono/aot-cache/arm64/Mono.Android.dll.so' not found: dlopen failed: library "/data/app/App1.App1-ifjQMWpRkcrg1FIWeMTK1w==/lib/arm64/libaot-Mono.Android.dll.so" not found 09-01 08:37:20.608 LGE Nexus 5X Debug 30192 Mono AOT: image 'Mono.Android.dll.so' not found: dlopen failed: library "/data/app/App1.App1-ifjQMWpRkcrg1FIWeMTK1w==/lib/arm64/libaot-Mono.Android.dll.so" not found 09-01 08:37:20.606 LGE Nexus 5X Debug 30192 Mono Prepared to set up assembly 'Mono.Android' (Mono.Android.dll) 09-01 08:37:20.606 LGE Nexus 5X Debug 30192 Mono Assembly Mono.Android[0x756d1aca00] added to domain RootDomain, ref_count=1 09-01 08:37:20.597 LGE Nexus 5X Debug 30192 Mono Image addref Mono.Android[0x756d1aca00] -> Mono.Android.dll[0x7560db1800]: 2 09-01 08:37:20.584 LGE Nexus 5X Warning 30192 monodroid-gc GREF GC Threshold: 46080 09-01 08:37:20.584 LGE Nexus 5X Debug 30192 Mono Config attempting to parse: '/usr/local/etc/mono/assemblies/App1/App1.config'. 09-01 08:37:20.584 LGE Nexus 5X Debug 30192 Mono Config attempting to parse: '/storage/emulated/0/Android/data/App1.App1/files/.__override__/App1.dll.config'. 09-01 08:37:20.583 LGE Nexus 5X Debug 30192 Mono Assembly Loader loaded assembly from location: '/storage/emulated/0/Android/data/App1.App1/files/.__override__/App1.dll'. 09-01 08:37:20.583 LGE Nexus 5X Debug 30192 Mono AOT: image '/usr/local/lib/mono/aot-cache/arm64/App1.dll.so' not found: dlopen failed: library "/data/app/App1.App1-ifjQMWpRkcrg1FIWeMTK1w==/lib/arm64/libaot-App1.dll.so" not found 09-01 08:37:20.581 LGE Nexus 5X Debug 30192 Mono AOT: image '/storage/emulated/0/Android/data/App1.App1/files/.__override__/App1.dll.so' not found: dlopen failed: library "/data/app/App1.App1-ifjQMWpRkcrg1FIWeMTK1w==/lib/arm64/libaot-App1.dll.so" not found 09-01 08:37:20.578 LGE Nexus 5X Debug 30192 Mono Prepared to set up assembly 'App1' (/storage/emulated/0/Android/data/App1.App1/files/.__override__/App1.dll) 09-01 08:37:20.578 LGE Nexus 5X Debug 30192 Mono Image addref App1[0x756d1ac900] -> /storage/emulated/0/Android/data/App1.App1/files/.__override__/App1.dll[0x7560db1000]: 2 09-01 08:37:20.578 LGE Nexus 5X Debug 30192 Mono Assembly App1[0x756d1ac900] added to domain RootDomain, ref_count=1 09-01 08:37:20.577 LGE Nexus 5X Debug 30192 Mono Assembly Loader probing location: '/storage/emulated/0/Android/data/App1.App1/files/.__override__/App1.dll'. 09-01 08:37:20.461 LGE Nexus 5X Debug 30192 Mono Assembly mscorlib[0x756d1ac600] added to domain RootDomain, ref_count=1 09-01 08:37:20.424 LGE Nexus 5X Debug 30192 Mono AOT: image '/usr/local/lib/mono/aot-cache/arm64/mscorlib.dll.so' not found: dlopen failed: library "/data/app/App1.App1-ifjQMWpRkcrg1FIWeMTK1w==/lib/arm64/libaot-mscorlib.dll.so" not found 09-01 08:37:20.424 LGE Nexus 5X Debug 30192 Mono Config attempting to parse: '/usr/local/etc/mono/assemblies/mscorlib/mscorlib.config'. 09-01 08:37:20.424 LGE Nexus 5X Debug 30192 Mono Config attempting to parse: 'mscorlib.dll.config'. 09-01 08:37:20.422 LGE Nexus 5X Debug 30192 Mono AOT: image 'mscorlib.dll.so' not found: dlopen failed: library "/data/app/App1.App1-ifjQMWpRkcrg1FIWeMTK1w==/lib/arm64/libaot-mscorlib.dll.so" not found 09-01 08:37:20.419 LGE Nexus 5X Debug 30192 Mono Prepared to set up assembly 'mscorlib' (mscorlib.dll) 09-01 08:37:20.419 LGE Nexus 5X Debug 30192 Mono Image addref mscorlib[0x756d1ac600] -> mscorlib.dll[0x7560d96000]: 2 09-01 08:37:19.629 LGE Nexus 5X Warning 30192 monodroid-debug Accepted stdout connection: 34 09-01 08:37:19.623 LGE Nexus 5X Warning 30192 monodroid-debug Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:29394,server=y,embedding=1 09-01 08:37:19.615 LGE Nexus 5X Warning 30192 monodroid Trying to load sgen from: /storage/emulated/0/Android/data/App1.App1/files/.__override__/libmonosgen-2.0.so 09-01 08:37:19.615 LGE Nexus 5X Warning 30192 monodroid Trying to load sgen from: /data/app/App1.App1-ifjQMWpRkcrg1FIWeMTK1w==/lib/arm64/libmonosgen-2.0.so 09-01 08:37:19.615 LGE Nexus 5X Warning 30192 monodroid Trying to load sgen from: /data/user/0/App1.App1/files/.__override__/libmonosgen-2.0.so 09-01 08:37:19.615 LGE Nexus 5X Warning 30192 monodroid Trying to load sgen from: /data/user/0/App1.App1/files/.__override__/links/libmonosgen-2.0.so 09-01 08:37:19.614 LGE Nexus 5X Warning 30192 monodroid Using override path: /storage/emulated/0/Android/data/App1.App1/files/.__override__ 09-01 08:37:19.614 LGE Nexus 5X Warning 30192 monodroid Creating public update directory:/data/user/0/App1.App1/files/.__override__09-01 08:37:19.614 LGE Nexus 5X Warning 30192 monodroid Using override path: /data/user/0/App1.App1/files/.__override__ 09-01 08:37:19.564 LGE Nexus 5X Error 8553 adbd failed to connect to socket 'tcp:29395': Connection refused 09-01 08:37:19.508 LGE Nexus 5X Info 8553 chatty uid=2000(shell) /sbin/adbd identical 1 line 09-01 08:37:19.443 LGE Nexus 5X Error 8553 adbd failed to connect to socket 'tcp:29395': Connection refused 09-01 08:37:19.383 LGE Nexus 5X Info 30192 zygote64 Late-enabling -Xcheck:jni 09-01 08:37:19.381 LGE Nexus 5X Error 8553 adbd failed to connect to socket 'tcp:29395': Connection refused 09-01 08:37:19.378 LGE Nexus 5X Info 769 ActivityManager Start proc 30192:App1.App1/u0a167 for activity App1.App1/md5579855c995bdb073d8182511e793544c.MainActivity 09-01 08:37:19.346 LGE Nexus 5X Info 769 ActivityManager START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=App1.App1/md5579855c995bdb073d8182511e793544c.MainActivity} from uid 2000 09-01 08:37:18.328 LGE Nexus 5X Info 30145 AndroidRuntime VM exiting with result code 0. 09-01 08:37:18.327 LGE Nexus 5X Info 30145 app_process System.exit called, status: 0 09-01 08:37:18.316 LGE Nexus 5X Debug 30145 AndroidRuntime Calling main entry com.android.commands.pm.Pm 09-01 08:37:18.163 LGE Nexus 5X Debug 30145 AndroidRuntime >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<

  • Ahmed_SamyAhmed_Samy EGMember

    I downloaded Oreo and the SDK for it is downloaded in
    C:\Program Files (x86)\Android\android-sdk\platforms\android-26
    But Visual Studio is looking for it in
    C:\Program Files (x86)\Android\android-sdk\platforms\android-O
    So I had to copy and rename just to see it running and I did :smile:

  • centrolutionscentrolutions USMember ✭✭

    @AhmedSamy.7854 that didn't fix the problem in the original post for me. I still get the same result: Couldn't connect to logcat

  • MarketAllyMarketAlly USMember ✭✭

    Same issue as well. Please release a fix soon.

  • DanielArayaDanielAraya DEMember ✭✭

    Thank you, @centrolutions , I can confirm this work with VS 2017 (Community).
    Just check **comment 20 AND comment 39 **of the linked thread.

  • JohnWilson.4976JohnWilson.4976 AUMember ✭✭

    And another +1 for @centrolutions (VS 2017 Pro user here), works perfectly.

    Remember to unblock the downloaded zip file tho, as mentioned by @DanielAraya (which is what comment #39 was about)

    Interestingly (for me), it changed my 'Device' from an 'LG Nexus 5X Nougat 7.99' to 'LG Nexus 5X Oreo 8.0' (which is what it is) after doing this too.

    Thanks guys! :+1:

  • centrolutionscentrolutions USMember ✭✭

    Another update: I installed the newly released VS 2017 15.4.1. It appears this issue is fixed in this release. I did have to clean my solution, uninstall everything from the phone, and re-build before I could debug properly, but it does work.

  • LyndonHugheyLyndonHughey USUniversity ✭✭✭

    Thanks @centrolutions
    I had tried multiple solutions, but moving seems to have fixed my problem of not being able to debug on devices. Lets hope it lasts.

Sign In or Register to comment.