mono / Embeddinator-4000

Tools to turn .NET libraries into native libraries that can be consumed on Android, iOS, Mac, Linux and other platforms.
MIT License
758 stars 95 forks source link

Unable to generate .aar file when we refer AndroidX Libraries #792

Open sunil-pp opened 3 years ago

sunil-pp commented 3 years ago

Steps to Reproduce

  1. Create an Android Library Project in Visual Studio 2019 add Xamarin.AndroidX.AppCompat 12.0.6 from Nuget Packages
  2. Add an Android activity that needs to called from Native App to this Library project
  3. Set the Activity Class attributes as [Activity(Label = "LibActivity"), Register("com.company.droidxlib.LibActivity")], to make this visible in Java Android.
  4. Build the Library Project to generate your assembly (.dll) file
  5. To build .aar file use Embeddinator script in Terminal as shown below. mono /Users/myname/.nuget/packages/Embeddinator-4000/0.4.0/tools/Embeddinator-4000.exe '/Users/myname/Projects/DroidXApp/DroidXLib/bin/debug/com.company.droidxlib.dll' --gen=Java --platform=Android --outdir='/Users/myname/Projects/DroidXApp/DroidXLib/output_Android' -c

Expected Behavior

  1. It works fine and Embeddinator generated .aar file, when I use Xamarin.Android.Support.v7.AppCompat 28.0.0.3 with Android Library Project.
  2. I have used the following command to generate .aar file

My-MacBook-Air:~ myname$ mono /Users/myname/.nuget/packages/Embeddinator-4000/0.4.0/tools/Embeddinator-4000.exe '/Users/myname/Projects/DroidXApp/DroidLib/bin/debug/com.company.droidlib.dll' --gen=Java --platform=Android --outdir='/Users/myname/Projects/DroidXApp/DroidLib/output_Android' -c Parsing assemblies... Parsed 'com.company.droidlib.dll' Processing assemblies... Generating binding code... Generated: com.company.droidlib.h Generated: com.company.droidlib.c Generated: Mono.Android.h Generated: Mono.Android.c Generated: Java.Interop.h Generated: Java.Interop.c Generated: mscorlib.h Generated: mscorlib.c Generated: mono_embeddinator.h Generated: glib.h Generated: mono-support.h Generated: c-support.h Generated: mono_embeddinator.c Generated: embeddinator.h Generated: mono-support.c Generated: glib.c Generated: c-support.c Compiling binding code... Parsing assemblies... Parsed 'com.company.droidlib.dll' Parsed 'com.company.droidlib.dll' Processing assemblies... Generating binding code... Generated: mscorlib/system/IDisposableImpl.java Generated: com_company_droidlib/com/company/droidlib/Resource.java Generated: com_company_droidlib/com/company/droidlib/Attribute.java Generated: com_company_droidlib/com/company/droidlib/Id.java Generated: com_company_droidlib/com/company/droidlib/Layout.java Generated: com_company_droidlib/com/company/droidlib/String.java Generated: com_company_droidlib/Native_com_company_droidlib.java Generated: mscorlib/system/IDisposable.java Generated: mscorlib/Native_mscorlib.java Generating Java stubs... Compiling binding code... /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home

    Note: /Users/myname/Projects/DroidXApp/DroidLib/output_Android/src/com/company/droidlib/LibActivity.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

Linking assemblies...
    added manifest

adding: res/(in = 0) (out= 0)(stored 0%) adding: res/layout/(in = 0) (out= 0)(stored 0%) adding: res/layout/liblayout.xml(in = 560) (out= 229)(deflated 59%) adding: res/values/(in = 0) (out= 0)(stored 0%) adding: res/values/strings.xml(in = 234) (out= 144)(deflated 38%) adding: AndroidManifest.xml(in = 859) (out= 413)(deflated 51%) adding: classes.jar(in = 467507) (out= 401876)(deflated 14%) adding: R.txt(in = 215) (out= 114)(deflated 46%) adding: jni/(in = 0) (out= 0)(stored 0%) adding: jni/armeabi-v7a/(in = 0) (out= 0)(stored 0%) adding: jni/armeabi-v7a/libcom.company.droidlib.so(in = 41156) (out= 11748)(deflated 71%) adding: jni/armeabi-v7a/libmonosgen-2.0.so(in = 3432180) (out= 1438598)(deflated 58%) adding: jni/armeabi-v7a/libmonodroid.so(in = 124668) (out= 54244)(deflated 56%) adding: jni/armeabi-v7a/libjnidispatch.so(in = 101596) (out= 42273)(deflated 58%) adding: jni/x86/(in = 0) (out= 0)(stored 0%) adding: jni/x86/libcom.company.droidlib.so(in = 39508) (out= 13330)(deflated 66%) adding: jni/x86/libmonosgen-2.0.so(in = 3462540) (out= 1395846)(deflated 59%) adding: jni/x86/libmonodroid.so(in = 157376) (out= 54545)(deflated 65%) adding: jni/x86/libjnidispatch.so(in = 99392) (out= 41165)(deflated 58%) adding: jni/arm64-v8a/(in = 0) (out= 0)(stored 0%) adding: jni/arm64-v8a/libcom.company.droidlib.so(in = 42632) (out= 11505)(deflated 73%) adding: jni/arm64-v8a/libmonosgen-2.0.so(in = 3101112) (out= 1291105)(deflated 58%) adding: jni/arm64-v8a/libmonodroid.so(in = 153928) (out= 54134)(deflated 64%) adding: jni/arm64-v8a/libjnidispatch.so(in = 101976) (out= 38986)(deflated 61%) adding: jni/armeabi/(in = 0) (out= 0)(stored 0%) adding: jni/armeabi/libcom.company.droidlib.so(in = 41148) (out= 11733)(deflated 71%) adding: jni/armeabi/libmonosgen-2.0.so(in = 3477544) (out= 1455659)(deflated 58%) adding: jni/armeabi/libmonodroid.so(in = 141048) (out= 57428)(deflated 59%) adding: jni/armeabi/libjnidispatch.so(in = 102080) (out= 43951)(deflated 56%) adding: jni/x86_64/(in = 0) (out= 0)(stored 0%) adding: jni/x86_64/libcom.company.droidlib.so(in = 41744) (out= 13153)(deflated 68%) adding: jni/x86_64/libmonosgen-2.0.so(in = 3634312) (out= 1534729)(deflated 57%) adding: jni/x86_64/libmonodroid.so(in = 154200) (out= 55739)(deflated 63%) adding: jni/x86_64/libjnidispatch.so(in = 97688) (out= 39913)(deflated 59%) adding: assets/(in = 0) (out= 0)(stored 0%) adding: assets/assemblies/(in = 0) (out= 0)(stored 0%) adding: assets/assemblies/Java.Interop.dll(in = 81920) (out= 25368)(deflated 69%) adding: assets/assemblies/System.Runtime.Serialization.dll(in = 5120) (out= 1914)(deflated 62%) adding: assets/assemblies/com.company.droidlib.dll(in = 5632) (out= 2230)(deflated 60%) adding: assets/assemblies/mscorlib.dll(in = 1891840) (out= 665420)(deflated 64%) adding: assets/assemblies/Mono.Android.dll(in = 705024) (out= 184727)(deflated 73%) adding: assets/assemblies/Mono.Android.Export.dll(in = 76344) (out= 31994)(deflated 58%) adding: assets/assemblies/Mono.Security.dll(in = 173056) (out= 73875)(deflated 57%) adding: assets/assemblies/System.dll(in = 595456) (out= 246668)(deflated 58%) adding: assets/assemblies/Resource.designer.dll(in = 4608) (out= 1658)(deflated 64%) adding: assets/assemblies/System.Xml.dll(in = 849408) (out= 311569)(deflated 63%) adding: assets/assemblies/System.Core.dll(in = 52736) (out= 25942)(deflated 50%)

Actual Behavior

However, when I tried the same by adding Xamarin.AndroidX.AppCompat 12.0.6 it gives the following error.

My-MacBook-Air:~ myname$ mono /Users/myname/.nuget/packages/Embeddinator-4000/0.4.0/tools/Embeddinator-4000.exe '/Users/myname/Projects/DroidXApp/DroidXLib/bin/debug/com.company.droidxlib.dll' --gen=Java --platform=Android --outdir='/Users/myname/Projects/DroidXApp/DroidXLib/output_Android' -c Parsing assemblies... Parsed 'com.company.droidxlib.dll' Processing assemblies... Generating binding code... Generated: com.company.droidxlib.h Generated: com.company.droidxlib.c Generated: Mono.Android.h Generated: Mono.Android.c Generated: Java.Interop.h Generated: Java.Interop.c Generated: mscorlib.h Generated: mscorlib.c Generated: mono_embeddinator.h Generated: glib.h Generated: mono-support.h Generated: c-support.h Generated: mono_embeddinator.c Generated: embeddinator.h Generated: mono-support.c Generated: glib.c Generated: c-support.c Compiling binding code... Parsing assemblies... Parsed 'com.company.droidxlib.dll' Parsed 'com.company.droidxlib.dll' Processing assemblies... Generating binding code... Generated: mscorlib/system/IDisposableImpl.java Generated: com_company_droidxlib/com/company/droidxlib/Resource.java Generated: com_company_droidxlib/com/company/droidxlib/Animation.java Generated: com_company_droidxlib/com/company/droidxlib/Attribute.java Generated: com_company_droidxlib/com/company/droidxlib/Boolean.java Generated: com_company_droidxlib/com/company/droidxlib/Color.java Generated: com_company_droidxlib/com/company/droidxlib/Dimension.java Generated: com_company_droidxlib/com/company/droidxlib/Drawable.java Generated: com_company_droidxlib/com/company/droidxlib/Id.java Generated: com_company_droidxlib/com/company/droidxlib/Integer.java Generated: com_company_droidxlib/com/company/droidxlib/Interpolator.java Generated: com_company_droidxlib/com/company/droidxlib/Layout.java Generated: com_company_droidxlib/com/company/droidxlib/String.java Generated: com_company_droidxlib/com/company/droidxlib/Style.java Generated: com_company_droidxlib/com/company/droidxlib/Styleable.java Generated: com_company_droidxlib/Native_com_company_droidxlib.java Generated: mscorlib/system/IDisposable.java Generated: mscorlib/Native_mscorlib.java Generating Java stubs... Compiling binding code... /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home

    /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/app/SharedElementCallback_OnSharedElementsReadyListenerImplementor.java:8: error: package androidx.core.app.SharedElementCallback does not exist
    androidx.core.app.SharedElementCallback.OnSharedElementsReadyListener
                                          ^

/Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/widget/NestedScrollView_OnScrollChangeListenerImplementor.java:8: error: package androidx.core.widget.NestedScrollView does not exist androidx.core.widget.NestedScrollView.OnScrollChangeListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/widget/NestedScrollView_OnScrollChangeListenerImplementor.java:28: error: package androidx.core.widget does not exist public void onScrollChange (androidx.core.widget.NestedScrollView p0, int p1, int p2, int p3, int p4) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/widget/NestedScrollView_OnScrollChangeListenerImplementor.java:33: error: package androidx.core.widget does not exist private native void n_onScrollChange (androidx.core.widget.NestedScrollView p0, int p1, int p2, int p3, int p4); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/ActionProvider_VisibilityListenerImplementor.java:8: error: package androidx.core.view.ActionProvider does not exist androidx.core.view.ActionProvider.VisibilityListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/ActionProvider_SubUiVisibilityListenerImplementor.java:8: error: package androidx.core.view.ActionProvider does not exist androidx.core.view.ActionProvider.SubUiVisibilityListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/DragStartHelper_OnDragStartListenerImplementor.java:8: error: package androidx.core.view.DragStartHelper does not exist androidx.core.view.DragStartHelper.OnDragStartListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/DragStartHelper_OnDragStartListenerImplementor.java:28: error: package androidx.core.view does not exist public boolean onDragStart (android.view.View p0, androidx.core.view.DragStartHelper p1) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/DragStartHelper_OnDragStartListenerImplementor.java:33: error: package androidx.core.view does not exist private native boolean n_onDragStart (android.view.View p0, androidx.core.view.DragStartHelper p1); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/ViewPropertyAnimatorUpdateListenerImplementor.java:8: error: package androidx.core.view does not exist androidx.core.view.ViewPropertyAnimatorUpdateListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:8: error: package androidx.core.view does not exist androidx.core.view.OnApplyWindowInsetsListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:28: error: package androidx.core.view does not exist public androidx.core.view.WindowInsetsCompat onApplyWindowInsets (android.view.View p0, androidx.core.view.WindowInsetsCompat p1) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:28: error: package androidx.core.view does not exist public androidx.core.view.WindowInsetsCompat onApplyWindowInsets (android.view.View p0, androidx.core.view.WindowInsetsCompat p1) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:33: error: package androidx.core.view does not exist private native androidx.core.view.WindowInsetsCompat n_onApplyWindowInsets (android.view.View p0, androidx.core.view.WindowInsetsCompat p1); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:33: error: package androidx.core.view does not exist private native androidx.core.view.WindowInsetsCompat n_onApplyWindowInsets (android.view.View p0, androidx.core.view.WindowInsetsCompat p1); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/ViewPropertyAnimatorListenerImplementor.java:8: error: package androidx.core.view does not exist androidx.core.view.ViewPropertyAnimatorListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/MenuItemCompat_OnActionExpandListenerImplementor.java:8: error: package androidx.core.view.MenuItemCompat does not exist androidx.core.view.MenuItemCompat.OnActionExpandListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/os/CancellationSignal_OnCancelListenerImplementor.java:8: error: package androidx.core.os.CancellationSignal does not exist androidx.core.os.CancellationSignal.OnCancelListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/inputmethod/InputConnectionCompat_OnCommitContentListenerImplementor.java:8: error: package androidx.core.view.inputmethod.InputConnectionCompat does not exist androidx.core.view.inputmethod.InputConnectionCompat.OnCommitContentListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/inputmethod/InputConnectionCompat_OnCommitContentListenerImplementor.java:28: error: package androidx.core.view.inputmethod does not exist public boolean onCommitContent (androidx.core.view.inputmethod.InputContentInfoCompat p0, int p1, android.os.Bundle p2) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/inputmethod/InputConnectionCompat_OnCommitContentListenerImplementor.java:33: error: package androidx.core.view.inputmethod does not exist private native boolean n_onCommitContent (androidx.core.view.inputmethod.InputContentInfoCompat p0, int p1, android.os.Bundle p2); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/accessibility/AccessibilityManagerCompat_TouchExplorationStateChangeListenerImplementor.java:8: error: package androidx.core.view.accessibility.AccessibilityManagerCompat does not exist androidx.core.view.accessibility.AccessibilityManagerCompat.TouchExplorationStateChangeListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/accessibility/AccessibilityManagerCompat_AccessibilityStateChangeListenerImplementor.java:8: error: package androidx.core.view.accessibility.AccessibilityManagerCompat does not exist androidx.core.view.accessibility.AccessibilityManagerCompat.AccessibilityStateChangeListener ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 23 errors

Failed to compile generated code.

Environment

  1. Mac OS Catalina 10.15.7
  2. Visual Studio 2019 for Mac v8.8.4 (build 30)
  3. Embeddinator v4000.0.4.0
using Android.App;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace com.company.droidxlib
{
    [Activity(Label = "LibActivity"), Register("com.company.droidxlib.LibActivity")]
    public class LibActivity : Activity, Android.Views.View.IOnClickListener
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.LibLayout);

            TextView txtView = FindViewById<TextView>(Resource.Id.textViewID);
            txtView.Text = this.Intent.GetStringExtra("MyInput");

            Button myButton = FindViewById<Button>(Resource.Id.buttonID);
            myButton.SetOnClickListener(this);
        }
        public void OnClick(View v)
        {

        }
    }
}

Build Logs

Parsing assemblies... Parsed 'com.company.droidxlib.dll' Processing assemblies... Generating binding code... Generated: com.company.droidxlib.h Generated: com.company.droidxlib.c Generated: Mono.Android.h Generated: Mono.Android.c Generated: Java.Interop.h Generated: Java.Interop.c Generated: mscorlib.h Generated: mscorlib.c Generated: mono_embeddinator.h Generated: glib.h Generated: mono-support.h Generated: c-support.h Generated: mono_embeddinator.c Generated: embeddinator.h Generated: mono-support.c Generated: glib.c Generated: c-support.c Compiling binding code... Parsing assemblies... Parsed 'com.company.droidxlib.dll' Parsed 'com.company.droidxlib.dll' Processing assemblies... Generating binding code... Generated: mscorlib/system/IDisposableImpl.java Generated: com_company_droidxlib/com/company/droidxlib/Resource.java Generated: com_company_droidxlib/com/company/droidxlib/Animation.java Generated: com_company_droidxlib/com/company/droidxlib/Attribute.java Generated: com_company_droidxlib/com/company/droidxlib/Boolean.java Generated: com_company_droidxlib/com/company/droidxlib/Color.java Generated: com_company_droidxlib/com/company/droidxlib/Dimension.java Generated: com_company_droidxlib/com/company/droidxlib/Drawable.java Generated: com_company_droidxlib/com/company/droidxlib/Id.java Generated: com_company_droidxlib/com/company/droidxlib/Integer.java Generated: com_company_droidxlib/com/company/droidxlib/Interpolator.java Generated: com_company_droidxlib/com/company/droidxlib/Layout.java Generated: com_company_droidxlib/com/company/droidxlib/String.java Generated: com_company_droidxlib/com/company/droidxlib/Style.java Generated: com_company_droidxlib/com/company/droidxlib/Styleable.java Generated: com_company_droidxlib/Native_com_company_droidxlib.java Generated: mscorlib/system/IDisposable.java Generated: mscorlib/Native_mscorlib.java Generating Java stubs... Compiling binding code... /Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home

    /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/app/SharedElementCallback_OnSharedElementsReadyListenerImplementor.java:8: error: package androidx.core.app.SharedElementCallback does not exist
        androidx.core.app.SharedElementCallback.OnSharedElementsReadyListener
                                              ^

/Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/widget/NestedScrollView_OnScrollChangeListenerImplementor.java:8: error: package androidx.core.widget.NestedScrollView does not exist androidx.core.widget.NestedScrollView.OnScrollChangeListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/widget/NestedScrollView_OnScrollChangeListenerImplementor.java:28: error: package androidx.core.widget does not exist public void onScrollChange (androidx.core.widget.NestedScrollView p0, int p1, int p2, int p3, int p4) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/widget/NestedScrollView_OnScrollChangeListenerImplementor.java:33: error: package androidx.core.widget does not exist private native void n_onScrollChange (androidx.core.widget.NestedScrollView p0, int p1, int p2, int p3, int p4); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/ActionProvider_VisibilityListenerImplementor.java:8: error: package androidx.core.view.ActionProvider does not exist androidx.core.view.ActionProvider.VisibilityListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/ActionProvider_SubUiVisibilityListenerImplementor.java:8: error: package androidx.core.view.ActionProvider does not exist androidx.core.view.ActionProvider.SubUiVisibilityListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/DragStartHelper_OnDragStartListenerImplementor.java:8: error: package androidx.core.view.DragStartHelper does not exist androidx.core.view.DragStartHelper.OnDragStartListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/DragStartHelper_OnDragStartListenerImplementor.java:28: error: package androidx.core.view does not exist public boolean onDragStart (android.view.View p0, androidx.core.view.DragStartHelper p1) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/DragStartHelper_OnDragStartListenerImplementor.java:33: error: package androidx.core.view does not exist private native boolean n_onDragStart (android.view.View p0, androidx.core.view.DragStartHelper p1); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/ViewPropertyAnimatorUpdateListenerImplementor.java:8: error: package androidx.core.view does not exist androidx.core.view.ViewPropertyAnimatorUpdateListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:8: error: package androidx.core.view does not exist androidx.core.view.OnApplyWindowInsetsListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:28: error: package androidx.core.view does not exist public androidx.core.view.WindowInsetsCompat onApplyWindowInsets (android.view.View p0, androidx.core.view.WindowInsetsCompat p1) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:28: error: package androidx.core.view does not exist public androidx.core.view.WindowInsetsCompat onApplyWindowInsets (android.view.View p0, androidx.core.view.WindowInsetsCompat p1) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:33: error: package androidx.core.view does not exist private native androidx.core.view.WindowInsetsCompat n_onApplyWindowInsets (android.view.View p0, androidx.core.view.WindowInsetsCompat p1); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/OnApplyWindowInsetsListenerImplementor.java:33: error: package androidx.core.view does not exist private native androidx.core.view.WindowInsetsCompat n_onApplyWindowInsets (android.view.View p0, androidx.core.view.WindowInsetsCompat p1); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/ViewPropertyAnimatorListenerImplementor.java:8: error: package androidx.core.view does not exist androidx.core.view.ViewPropertyAnimatorListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/MenuItemCompat_OnActionExpandListenerImplementor.java:8: error: package androidx.core.view.MenuItemCompat does not exist androidx.core.view.MenuItemCompat.OnActionExpandListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/os/CancellationSignal_OnCancelListenerImplementor.java:8: error: package androidx.core.os.CancellationSignal does not exist androidx.core.os.CancellationSignal.OnCancelListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/inputmethod/InputConnectionCompat_OnCommitContentListenerImplementor.java:8: error: package androidx.core.view.inputmethod.InputConnectionCompat does not exist androidx.core.view.inputmethod.InputConnectionCompat.OnCommitContentListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/inputmethod/InputConnectionCompat_OnCommitContentListenerImplementor.java:28: error: package androidx.core.view.inputmethod does not exist public boolean onCommitContent (androidx.core.view.inputmethod.InputContentInfoCompat p0, int p1, android.os.Bundle p2) ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/inputmethod/InputConnectionCompat_OnCommitContentListenerImplementor.java:33: error: package androidx.core.view.inputmethod does not exist private native boolean n_onCommitContent (androidx.core.view.inputmethod.InputContentInfoCompat p0, int p1, android.os.Bundle p2); ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/accessibility/AccessibilityManagerCompat_TouchExplorationStateChangeListenerImplementor.java:8: error: package androidx.core.view.accessibility.AccessibilityManagerCompat does not exist androidx.core.view.accessibility.AccessibilityManagerCompat.TouchExplorationStateChangeListener ^ /Users/myname/Projects/DroidXApp/DroidXLib/output_Android/src/mono/androidx/core/view/accessibility/AccessibilityManagerCompat_AccessibilityStateChangeListenerImplementor.java:8: error: package androidx.core.view.accessibility.AccessibilityManagerCompat does not exist androidx.core.view.accessibility.AccessibilityManagerCompat.AccessibilityStateChangeListener ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 23 errors

Failed to compile generated code.

Example Project (If Possible)

sunil-pp commented 3 years ago

Thanks to @mandel-macaque for your response. It would be great if you could treat this on priority, as our AndroidX release got stuck up due to this. I would appreciate your effort and if possible let me know approx timeline for this release.