-
Notifications
You must be signed in to change notification settings - Fork 544
Java invocation failure with master/15.6 #1187
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
Comments
@alanmcgovern: Could you provide more output? That's an exception being thrown from Java. |
There is no more output unfortunately |
@alanmcgovern: normally a Java-side exception will contain the Java-side stack trace, but there isn't one being shown here. There also aren't any repro instructions, I don't know how to recreate this behavior. Without the Java-side exception, it's hard to reason about what could be going wrong. :-( |
@alanmcgovern: Please try the following code in a codepath "somewhere before" var g = Type.GetType("Xamarin.Forms.Platform.Android.PlatformRenderer, Xamarin.Forms.Platform.Android")
var m = (JniPeerMembers) g.GetField("_members", BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy).GetValue (null);
var ctors = (JniPeerMembers.JniInstanceMethods) m.InstanceMethods.GetType().GetMethod ("GetConstructorsForType", BindingFlags.NonPublic | BindingFlags.Instance).Invoke (m.InstanceMethods, new[]{g});
var dt = (Type) ctors.GetType().GetField("DeclaringType", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(ctors);
Console.WriteLine($"# jonp: ctors.DeclaringType={dt.FullName}");
var pt = (JniType) ctors.GetType().GetProperty("JniPeerType", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(ctors);
Console.WriteLine($"# jonp: ctors.JniPeerType={pt.Name}"); |
We believe that this is a duplicate of Issue #1149. Please try with d15-6 Preview 4 installers, Xamarin.Android 8.2.0.9 or later. |
Changes: xamarin/monodroid@3a05726...78f6279 * xamarin/monodroid@78f627984: Bump to xamarin/androidtools@3ea133bf (dotnet#1187) * xamarin/monodroid@6a3d5ad32: Add VSCode workspace and build Task. (dotnet#1184)
Changes: xamarin/monodroid@3a05726...78f6279 * xamarin/monodroid@78f627984: Bump to xamarin/androidtools@3ea133bf (#1187) * xamarin/monodroid@6a3d5ad32: Add VSCode workspace and build Task. (#1184)
With the latest master/15.6 builds of X.A i am triggering this issue inside the forms previewer:
The code in question is the chaining to the base constructor here https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.Android/PlatformRenderer.cs#L16
The latest stable release of X.A works fine, so this looks like a regression between then and now.
The text was updated successfully, but these errors were encountered: