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

Bump to xamarin/Java.Interop/main@445ee6cd #8524

Merged
merged 5 commits into from
Nov 22, 2023

Conversation

jonpryor
Copy link
Member

@jonpryor jonpryor commented Nov 20, 2023

@jonpryor
Copy link
Member Author

On-device tests fail with e.g.:

F mono-rt : [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Java.Interop.ManagedPeer' threw an exception.
F mono-rt :  ---> Java.Lang.ClassNotFoundException: Didn't find class "net.dot.jni.ManagedPeer" on path: DexPathList[[zip file "/data/app/~~0BzWoNR4L0rV-9uYaZtkTg==/Mono.Android.NET_Tests-ozio21c69juhGq_1k1Dd_Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~0BzWoNR4L0rV-9uYaZtkTg==/Mono.Android.NET_Tests-ozio21c69juhGq_1k1Dd_Q==/lib/arm64, /system/fake-libs64, /data/app/~~0BzWoNR4L0rV-9uYaZtkTg==/Mono.Android.NET_Tests-ozio21c69juhGq_1k1Dd_Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
F mono-rt :    at Java.Interop.JniEnvironment.Types.TryFindClass(String classname, Boolean throwOnError)
F mono-rt :    at Java.Interop.JniEnvironment.Types.FindClass(String classname)
F mono-rt :    at Java.Interop.JniType..ctor(String classname)
F mono-rt :    at Java.Interop.JniType.GetCachedJniType(JniType& cachedType, String classname)
F mono-rt :    at Java.Interop.JniPeerMembers.get_JniPeerType()
F mono-rt :    at Java.Interop.ManagedPeer..cctor()
F mono-rt :    --- End of inner exception stack trace ---
F mono-rt :    at Java.Interop.JniRuntime..ctor(CreationOptions options)
F mono-rt :    at Android.Runtime.AndroidRuntime..ctor(IntPtr jnienv, IntPtr vm, Boolean allocNewObjectSupported, IntPtr classLoader, IntPtr classLoader_loadClass, Boolean jniAddNativeMethodRegistrationAttributePresent)
F mono-rt :    at Android.Runtime.JNIEnvInit.Initialize(JnienvInitializeArgs* args)

Not sure yet why that's happening…

@jonpryor jonpryor marked this pull request as ready for review November 22, 2023 14:24
@jonpryor jonpryor changed the title Try xamarin/java.interop#1166! Bump to xamarin/Java.Interop/main@445ee6cd Nov 22, 2023
@jonpryor jonpryor merged commit 8a5730a into dotnet:main Nov 22, 2023
45 of 47 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants