-
Notifications
You must be signed in to change notification settings - Fork 147
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 java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete #648
Comments
@jpobst do we own The error is:
I think it's redistributing things it shouldn't be. Similar to some of the issues we had with AndroidX/GPS. |
Yes, we bind it out of the GPS repository. These lines need to be updated to the latest Kotlin versions: The <AndroidJavaLibrary Condition=" '$(AndroidApplication)' == 'true' " Include="$(MSBuildThisFileDirectory)..\..\jar\org.jetbrains.kotlin.kotlin-stdlib-1.6.21.jar" /> |
Thank you for your answers. Is there a workaround to this issue?
|
@adydecki the workaround would be to delete the above |
@jonathanpeppers Do we still need to do the workaround by far? |
No, this was fixed in #649. You might update all NuGet packages and see if that is the problem. |
@jonathanpeppers Can you advise which packages in particular? |
@jonathanpeppers After upgrading Square.OkHttp3 to the latest version, it seems to be ok. I will revert if I face any other issues. |
Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
.NET 6.0.301
Description
When two packages
Square.OkHttp3
andXamarin.Kotlin.StdLib
are added to the .net6-android application then compile time error (as shown in the repro steps) occurs during the application build.Steps to Reproduce
dotnet new android -n AndroidApp
dotnet add package Xamarin.Kotlin.StdLib
dotnet add package Square.OkHttp3
dotnet build
/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/32.0.415/tools/Xamarin.Android.D8.targets(79,5): error : java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /Users/adrian/.nuget/packages/xamarin.kotlin.stdlib/1.6.21.1/buildTransitive/net6.0-android31.0/../../jar/org.jetbrains.kotlin.kotlin-stdlib-1.6.21.jar : kotlin/collections/ArraysUtilJVM.class [/Users/adrian/Dev/projects/github/net6-maui-test/AndroidApp/AndroidApp.csproj]
Above steps can be found in the repository https://github.com/adydecki/net6-maui-test/tree/main/AndroidApp
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: