-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error trying to run .NET 9 Android #113
Comments
Were you able to resolve? I've been struggling with a similar output. While I'm learning how much of a challenge the transitive dependencies are.. it's infuriating. Here's my output for comparison and others. Targeting .net9.0 but also couldn't get past this with .net8.0. I've tried tracing and modifying the various dependency builds with no success. Any help if anyone has any thoughts would be greatly appreciated. I've also tried the guidance here.. https://www.mauiexpert.it/admob-for-maui-made-easy/ and added the user-messaging-platform-2.0.0.aar as noted. 1>MSBUILD : java.exe error JAVA0000: Error in obj\Debug\net9.0-android\lp\383\jl\classes.jar:com/google/android/gms/internal/measurement/zzfs.class: |
Please check |
I just install the package and try to run on my emulator, its showing this message, if I remove, the build works!
Error in obj/Debug/net9.0-android/lp/216/jl/classes.jar:androidx/work/CoroutineWorker$getForegroundInfoAsync$1.class:
Type androidx.work.CoroutineWorker$getForegroundInfoAsync$1 is defined multiple times: obj/Debug/net9.0-android/lp/216/jl/classes.jar:androidx/work/CoroutineWorker$getForegroundInfoAsync$1.class, obj/Debug/net9.0-android/lp/235/jl/classes.jar:androidx/work/CoroutineWorker$getForegroundInfoAsync$1.class
Compilation failed
java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: obj/Debug/net9.0-android/lp/216/jl/classes.jar
androidx/work/CoroutineWorker$getForegroundInfoAsync$1.class
at com.android.tools.r8.internal.to.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:131)
at com.android.tools.r8.D8.main(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:5)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: obj/Debug/net9.0-android/lp/216/jl/classes.jar:androidx/work/CoroutineWorker$getForegroundInfoAsync$1.class
at Version.fakeStackEntry(Version_8.5.35.java:0)
at com.android.tools.r8.T.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:5)
at com.android.tools.r8.internal.to.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:82)
at com.android.tools.r8.internal.to.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:32)
at com.android.tools.r8.internal.to.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:31)
at com.android.tools.r8.internal.to.b(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:2)
at com.android.tools.r8.D8.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:41)
at com.android.tools.r8.D8.b(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:13)
at com.android.tools.r8.D8.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:39)
at com.android.tools.r8.internal.to.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:118)
... 1 more
Caused by: com.android.tools.r8.internal.g: Type androidx.work.CoroutineWorker$getForegroundInfoAsync$1 is defined multiple times: obj/Debug/net9.0-android/lp/216/jl/classes.jar:androidx/work/CoroutineWorker$getForegroundInfoAsync$1.class, obj/Debug/net9.0-android/lp/235/jl/classes.jar:androidx/work/CoroutineWorker$getForegroundInfoAsync$1.class
at com.android.tools.r8.internal.x50.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:21)
at com.android.tools.r8.internal.LY.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:54)
at com.android.tools.r8.internal.LY.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:10)
at java.base/java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:2056)
at com.android.tools.r8.internal.LY.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:6)
at com.android.tools.r8.graph.p4$a.d(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:6)
at com.android.tools.r8.dex.c.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:95)
at com.android.tools.r8.dex.c.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:44)
at com.android.tools.r8.dex.c.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:9)
at com.android.tools.r8.D8.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:44)
at com.android.tools.r8.D8.d(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:17)
at com.android.tools.r8.D8.c(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:73)
at com.android.tools.r8.internal.to.a(R8_8.5.35_9c55004e7c41a17b1ed47c4e1952cb6778b3dac6afb6afc113a2737c3cde13e0:28)
... 6 more
O diretório 'obj/Debug/net9.0-android/lp/216' é de 'androidx.work.work-runtime.aar'.
O diretório 'obj/Debug/net9.0-android/lp/235' é de 'androidx.work.work-runtime-ktx.aar'.
The text was updated successfully, but these errors were encountered: