dotnet / dotnet/android

Not able to attach debugger for aemeabi-v7a devices - Android 10 version

Open
#10,091 11 comments 0 reactions 1 assignee Claimed by @jonathanpeppers View on GitHub
Area: App+Library Build need-attention
Dominant language
C#
Stars
2.1k
Forks
579
Avg merge
1d 21h
Merged PRs (30d)
257

Description

### Android framework version

net9.0-android

### Affected platform version

Android - Visual Studio Code - Using in Mac

### Description

Hi,

we are not able to attach debugger for older devices in both .net 8 and .net 9 in visual studio code for Mac

The program 'Restaurant_Maui.dll' has exited with code 0 (0x0).
[restaurant_mau] Late-enabling -Xcheck:jni
[restaurant_mau] Unknown bits set in runtime_flags: 0x8000
[Perf] Connecting to perf service.
[DOTNET] AndroidCryptoNative_InitLibraryOnLoad: jint AndroidCryptoNative_InitLibraryOnLoad(JavaVM *, void *) in /__w/1/s/src/native/libs/System.Security.Cryptography.Native.Android/pal_jni.c
[DOTNET] GetOptionalClassGRef: optional class com/android/org/conscrypt/OpenSSLEngineImpl was not found
[monodroid] Failed to create directory '/data/user/0/com.companyname.restaurant_maui/files/.__override__/armeabi-v7a'. File exists
[monodroid] Creating public update directory: `/data/user/0/com.companyname.restaurant_maui/files/.__override__/armeabi-v7a`
[restaurant_mau] Attempt to remove non-JNI local reference, dumping thread
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:61868,server=y,embedding=1,timeout=30000

I have also added below lines in .cs project file

android-arm;android-arm64;android-x86;android-x64
armeabi-v7a;x86;x86_64;arm64-v8a

I am using .net 9.0.203

### Steps to Reproduce

Hi,

After moving to .net 9 we are not able to attach debugger for older devices

The program 'Restaurant_Maui.dll' has exited with code 0 (0x0).
[restaurant_mau] Late-enabling -Xcheck:jni
[restaurant_mau] Unknown bits set in runtime_flags: 0x8000
[Perf] Connecting to perf service.
[DOTNET] AndroidCryptoNative_InitLibraryOnLoad: jint AndroidCryptoNative_InitLibraryOnLoad(JavaVM *, void *) in /__w/1/s/src/native/libs/System.Security.Cryptography.Native.Android/pal_jni.c
[DOTNET] GetOptionalClassGRef: optional class com/android/org/conscrypt/OpenSSLEngineImpl was not found
[monodroid] Failed to create directory '/data/user/0/com.companyname.restaurant_maui/files/.__override__/armeabi-v7a'. File exists
[monodroid] Creating public update directory: `/data/user/0/com.companyname.restaurant_maui/files/.__override__/armeabi-v7a`
[restaurant_mau] Attempt to remove non-JNI local reference, dumping thread
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:61868,server=y,embedding=1,timeout=30000

I have also added below lines in .cs project file

android-arm;android-arm64;android-x86;android-x64
armeabi-v7a;x86;x86_64;arm64-v8a

I am using .net 9.0.203

### Did you find any workaround?

### Relevant log output

```shell

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.