Skip to content

Invoke-customs are only supported starting with Android O (--min-api 26) warnings #9922

@jpobst

Description

@jpobst

Our main build produces the following warnings:

_GenerateRuntimeDex16:
"/Users/builder/android-toolchain/jdk-21/bin/java" -classpath "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/r8.jar" com.android.tools.r8.D8 --release --no-desugaring --output "obj/Release/release" "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime.jar"
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime.jar:mono/MonoPackageManager.class at Lmono/MonoPackageManager;LoadApplication(Landroid/content/Context;)V:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev.jar:mono/android/incrementaldeployment/IncrementalClassLoader.class at Lmono/android/incrementaldeployment/IncrementalClassLoader;createDelegateClassLoader(Ljava/io/File;Ljava/lang/String;Ljava/util/List;Ljava/lang/ClassLoader;)Lmono/android/incrementaldeployment/IncrementalClassLoader$DelegateClassLoader;:
Invoke-customs are only supported starting with Android O (--min-api 26)
"/Users/builder/android-toolchain/jdk-21/bin/java" -classpath "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/r8.jar" com.android.tools.r8.D8 --release --no-desugaring --output "obj/Release/release-net6" "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_net6.jar"
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_net6.jar:mono/MonoPackageManager.class at Lmono/MonoPackageManager;LoadApplication(Landroid/content/Context;)V:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_net6.jar:mono/MonoPackageManager.class at Lmono/MonoPackageManager;getNativeLibraryPath(Landroid/content/pm/ApplicationInfo;)Ljava/lang/String;:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_net6.jar:mono/android/incrementaldeployment/IncrementalClassLoader.class at Lmono/android/incrementaldeployment/IncrementalClassLoader;createDelegateClassLoader(Ljava/io/File;Ljava/lang/String;Ljava/util/List;Ljava/lang/ClassLoader;)Lmono/android/incrementaldeployment/IncrementalClassLoader$DelegateClassLoader;:
Invoke-customs are only supported starting with Android O (--min-api 26)
"/Users/builder/android-toolchain/jdk-21/bin/java" -classpath "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/r8.jar" com.android.tools.r8.D8 --release --no-desugaring --output "obj/Release/fastdev-net6" "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_net6.jar"
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_net6.jar:mono/android/MultiDexLoader.class at Lmono/android/MultiDexLoader;getDexList(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_net6.jar:mono/MonoPackageManager.class at Lmono/MonoPackageManager;LoadApplication(Landroid/content/Context;)V:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_net6.jar:mono/android/MultiDexLoader.class at Lmono/android/MultiDexLoader;attachInfo(Landroid/content/Context;Landroid/content/pm/ProviderInfo;)V:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_net6.jar:mono/MonoPackageManager.class at Lmono/MonoPackageManager;getNativeLibraryPath(Landroid/content/pm/ApplicationInfo;)Ljava/lang/String;:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_net6.jar:mono/android/incrementaldeployment/IncrementalClassLoader.class at Lmono/android/incrementaldeployment/IncrementalClassLoader;createDelegateClassLoader(Ljava/io/File;Ljava/lang/String;Ljava/util/List;Ljava/lang/ClassLoader;)Lmono/android/incrementaldeployment/IncrementalClassLoader$DelegateClassLoader;:
Invoke-customs are only supported starting with Android O (--min-api 26)
"/Users/builder/android-toolchain/jdk-21/bin/java" -classpath "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/r8.jar" com.android.tools.r8.D8 --release --no-desugaring --output "obj/Release/release-clr" "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_clr.jar"
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_clr.jar:mono/MonoPackageManager.class at Lmono/MonoPackageManager;LoadApplication(Landroid/content/Context;)V:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_clr.jar:mono/android/incrementaldeployment/IncrementalClassLoader.class at Lmono/android/incrementaldeployment/IncrementalClassLoader;createDelegateClassLoader(Ljava/io/File;Ljava/lang/String;Ljava/util/List;Ljava/lang/ClassLoader;)Lmono/android/incrementaldeployment/IncrementalClassLoader$DelegateClassLoader;:
Invoke-customs are only supported starting with Android O (--min-api 26)
"/Users/builder/android-toolchain/jdk-21/bin/java" -classpath "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/r8.jar" com.android.tools.r8.D8 --release --no-desugaring --output "obj/Release/fastdev-clr" "/Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_clr.jar"
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_clr.jar:mono/android/MultiDexLoader.class at Lmono/android/MultiDexLoader;getDexList(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List;:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_clr.jar:mono/MonoPackageManager.class at Lmono/MonoPackageManager;LoadApplication(Landroid/content/Context;)V:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_clr.jar:mono/android/MultiDexLoader.class at Lmono/android/MultiDexLoader;attachInfo(Landroid/content/Context;Landroid/content/pm/ProviderInfo;)V:
Invoke-customs are only supported starting with Android O (--min-api 26)
Warning in /Users/builder/azdo/_work/11/s/xamarin-android/bin/Release/lib/packs/Microsoft.Android.Sdk.Darwin/35.99.0/tools/java_runtime_fastdev_clr.jar:mono/android/incrementaldeployment/IncrementalClassLoader.class at Lmono/android/incrementaldeployment/IncrementalClassLoader;createDelegateClassLoader(Ljava/io/File;Ljava/lang/String;Ljava/util/List;Ljava/lang/ClassLoader;)Lmono/android/incrementaldeployment/IncrementalClassLoader$DelegateClassLoader;:
Invoke-customs are only supported starting with Android O (--min-api 26)

These warning appear to be ~new, as they do not happen on our release/9.0.1xx branch.

They began happening sometime before Jan 13 (our CI build logs only go back 2 months.)

We need to ensure that our .NET 10 version still works on API levels prior to 26.

Metadata

Metadata

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions