Skip to content

Issues with older dlls on CoreCLR #10633

@aw3-1337

Description

@aw3-1337

Android framework version

net10.0-android (Preview)

Affected platform version

.NET 10.0.100

Description

When adding reference to an assembly built on older version of MonoAndroid (in my example it is v4.3) during runtime classes built on top of this assembly are not being created, usually with java.lang.ClassNotFoundException while all classes are present within classes.dex files.

I have created a sample project withing which there are 2 dll files with different MonoAndroid versions, the app will run fine with both files if built using Mono and ScannerManager class will not be created if DeviceAPI_Android_old is referenced while building with CoreCLR.

sample.zip

Steps to Reproduce

1.Open attached project
2.Rename DeviceAPI_Android_old.dll to DeviceAPI_Android.dll and reference it inside solution
3.Build and run the project
4.Check logcat for the console message of nullability of ScannerManager class

Did you find any workaround?

Using newer version of dll resolved the issue

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: App RuntimeIssues in `libmonodroid.so`.needs-triageIssues that need to be assigned.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions