-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Xamarin.Android Version (eg: 6.0):
Xamarin.Android SDK 9.1.7.0 (HEAD/ba9da7a76)
Xamarin.Android Reference Assemblies and MSBuild support.
Operating System & Version (eg: Mac OSX 10.11):
Windows 10
Microsoft Visual Studio Professional 2017
Version 15.9.16
VisualStudio.15.Release/15.9.16+28307.858
Microsoft .NET Framework
Version 4.8.03752
Support Libraries Version (eg: 23.3.0):
Xamarin.AndroidX.Lifecycle.Common v2.0.0-preview02
Describe your Issue:
Trying to create an AAR binding library that migrated to AndroidX (written in Java, using class androidx.lifecycle.LifecycleOwner), previously using support library and compiling correctly.
Xamarin.AndroidX.Lifecycle.Common dependency is added to the binding project, however still encountering the following error log:
https://pdftron.s3.amazonaws.com/custom/external/xamarin/androidx/androidx-error.txt
4>JARTOXML : warning J2XA006: missing class error was raised while reflecting com.pdftron.pdf.controls.AnnotationToolbar : androidx/lifecycle/LifecycleOwner
4> java.lang.NoClassDefFoundError: androidx/lifecycle/LifecycleOwner (TaskId:138)
4> at java.lang.ClassLoader.defineClass1(Native Method) (TaskId:138)
4> at java.lang.ClassLoader.defineClass(ClassLoader.java:760) (TaskId:138)
4> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) (TaskId:138)
Steps to Reproduce (with link to sample solution if possible):
Download the sample project, open solution "\projectSrc\PDFNetAndroidXamarin\PDFNetAndroidXamarin.sln"
Clean and build "PDFViewCtrlTools" project.
Link to sample:
http://pdftron.s3.amazonaws.com/custom/external/xamarin/androidx/to-Xamarin.zip
Include any relevant Exception Stack traces, build logs, adb logs:
https://pdftron.s3.amazonaws.com/custom/external/xamarin/androidx/androidx-error.txt