You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Invalid [Register] for nested default interface method invokers #661
System.TypeLoadException: 'Could not load type 'Android.App.Application.IActivityLifecycleCallbacks' from assembly 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.'
The issue is that when we [Register] the invoker for a default method in a nested class, we are using . to denote a nested class, when it should be a /.
A new Preview version of Xamarin.Android has now been published that includes the fix for this item. The fix is not yet included in a Release version. I will update this again when a Release version is available that includes the fix.
Fix included on macOS in Visual Studio 2019 for Mac version 8.7 Preview 4. To try the Preview version that includes the fix, check for the latest updates on the Previewupdater channel.
Fix included on macOS in Visual Studio 2019 for Mac version 8.7. To get the new version that includes the fix, check for the latest updates on the Stableupdater channel.
Activity
jpobst commentedon Jun 11, 2020
Thanks for the report! We were just in the middle of trying to track this down. Turns out it's a
generatorbug, so moving this to Java.Interop repo.jpobst commentedon Jun 11, 2020
The issue is that when we
[Register]the invoker for adefaultmethod in a nested class, we are using.to denote a nested class, when it should be a/.For example, in:
Android.App.Application.IActivityLifecycleCallbacksshould beAndroid.App.Application/IActivityLifecycleCallbacks.This is causing the nested type to not be found.
[-]Android SDK 30 runtime issue[/-][+]Invalid [Register] for nested default interface method invokers[/+][generator] Use proper syntax for nested classes for DIM invokers (#662)
[generator] Use proper syntax for nested classes for DIM invokers (#662)
jpobst commentedon Jun 11, 2020
The fix for this should be in VS2019 16.7 Preview 4.
brendanzagaeski commentedon Jul 14, 2020
Release status update
A new Preview version of Xamarin.Android has now been published that includes the fix for this item. The fix is not yet included in a Release version. I will update this again when a Release version is available that includes the fix.
Fix included in Xamarin.Android 11.0.0.3.
Fix included on Windows in Visual Studio 2019 version 16.7 Preview 4. To try the Preview version that includes the fix, check for the latest updates in Visual Studio Preview.
Fix included on macOS in Visual Studio 2019 for Mac version 8.7 Preview 4. To try the Preview version that includes the fix, check for the latest updates on the Preview updater channel.
brendanzagaeski commentedon Aug 5, 2020
Release status update
A new Release version of Xamarin.Android has now been published that includes the fix for this issue.
Fix included in Xamarin.Android SDK version 11.0.0.3.
Fix included on Windows in Visual Studio 2019 version 16.7. To get the new version that includes the fix, check for the latest updates or install the most recent release from https://visualstudio.microsoft.com/downloads/.
Fix included on macOS in Visual Studio 2019 for Mac version 8.7. To get the new version that includes the fix, check for the latest updates on the Stable updater channel.
[generator] Use proper syntax for nested classes for DIM invokers (#662)