Cannot Debug an Android App

I have been struggling for days now trying to figure out how to resolve this issue. I have scoured the web, with no solutions that work and have posted a question and received a couple of good responses, but to no avail. I believe this issue can be resolved if someone can assist. Here is what I have done:

  1. I created a 'blank' Android Application (no code changes at all - simply the bare bones app the will show 'Hello World.'
  2. When I tried to Start Without Debugging, Start Debugging or Upload to Device the deployment always ends with an Unhandled exception: System.ComponentModel.Win32Exception... I have provided a link to an image of the Exception (since there seems to be no way to copy the text from the window that pops up). https://us.v-cdn.net/5019960/uploads/editor/5q/stxru8ieff9x.png
  3. If I uncheck in Project Options->Android Buid the Use Shared Mono Runtime, I can successfully get all three choices to upload and run. However, the debugger does not activate. And I couldn't find any error related to why the debugger doesn't run. When using Start Without Debugging, Visual Studio will allow me to Stop the app, therefore there is real time communication between VS and the running app.

I have never had an issue with my IOS apps and debugging, but this issue is thwarting my Android development. I have updated my Visual Studio for Mac to the latest build and am running on a MacBook Pro on Mojave version 10.14.4, 16 GB Memory. I sincerely hope there is someone who can provide me some assistance.

Here is my Xamarin environment:

Visual Studio Community 2019 for Mac
Version 8.2.6 (build 26)
Installation UUID: 1fc6bfac-a399-4041-b142-c40c053d5655
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.14.0.85 (d16-2-fix-mac-updates / 86973979)
Package version: 600000334

Mono Framework MDK
Runtime:
Mono 6.0.0.334 (2019-02/6256b82d62f) (64-bit)
Package version: 600000334

NuGet
Version: 5.1.0.6013

.NET Core
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
2.1.12
2.1.11
2.1.9
2.1.8
2.1.2
2.1.1
2.0.5
2.0.0
SDK: /usr/local/share/dotnet/sdk/2.1.701/Sdks
SDK Versions:
2.1.701
2.1.700
2.1.505
2.1.504
2.1.302
2.1.301
2.1.4
2.0.0
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.0.0/lib/mono/msbuild/Current/bin/Sdks

Xamarin.Profiler
Version: 1.6.11
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Updater
Version: 11

Apple Developer Tools
Xcode 10.3 (14492.2)
Build 10G8

Xamarin.Mac
Version: 5.14.0.114 (Visual Studio Community)
Hash: c6691164
Branch: d16-2
Build date: 2019-07-29 15:54:06-0400

Xamarin.iOS
Version: 12.14.0.114 (Visual Studio Community)
Hash: c6691164
Branch: d16-2
Build date: 2019-07-29 15:54:05-0400

Xamarin.Android
Version: 9.4.1.0 (Visual Studio Community)
Commit: xamarin-android/d16-2/ebd65c9
Android SDK: /Users/robertdaly/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
4.4 (API level 19)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
7.1 (API level 25)
8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 29.0.3
SDK Build Tools Version: 23.0.1

Build Information:
Mono: mono/mono/[email protected]
Java.Interop: xamarin/java.interop/[email protected]
LibZipSharp: grendello/LibZipSharp/[email protected]
LibZip: nih-at/libzip/[email protected]
ProGuard: xamarin/proguard/[email protected]
SQLite: xamarin/sqlite/[email protected]
Xamarin.Android Tools: xamarin/xamarin-android-tools/[email protected]

Microsoft Mobile OpenJDK
Java SDK: /Users/robertdaly/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Android Device Manager
Version: 1.2.0.60
Hash: 686c817
Branch: remotes/origin/d16-2
Build date: 2019-08-07 15:49:58 UTC

Xamarin Inspector
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

Xamarin Designer
Version: 16.2.0.379
Hash: 3f0652957
Branch: remotes/origin/d16-2
Build date: 2019-08-01 17:32:50 UTC

Build Information
Release ID: 802060026
Git revision: a4ea4d00345f4d98a95bd2322b1d04935eb553e1
Build date: 2019-09-05 18:24:25+00
Build branch: release-8.2
Xamarin extensions: 366997b587d63360705507e281ae75025762cadf

Operating System
Mac OS X 10.14.4
Darwin 18.5.0 Darwin Kernel Version 18.5.0
Mon Mar 11 20:40:32 PDT 2019
root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64

Sign In or Register to comment.