Skip to content

Commit 1b4ebcc

Browse files
Explicitly set JniAddNativeMethodRegistrationAttributePresent=true
1 parent eb2df96 commit 1b4ebcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Microsoft.Android.Runtime.NativeAOT/Android.Runtime.NativeAOT/JavaInteropRuntime.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ static void init (IntPtr jnienv, IntPtr klass, IntPtr classLoader)
4747
UseMarshalMemberBuilder = false,
4848
JniGlobalReferenceLogWriter = settings.GrefLog,
4949
JniLocalReferenceLogWriter = settings.LrefLog,
50+
JniAddNativeMethodRegistrationAttributePresent = true,
5051
};
5152
runtime = options.CreateJreVM ();
5253

0 commit comments

Comments
 (0)