Upgrade to 2.9.0 causes Android build failure: COMPILETODALVIK PARSE error
See original GitHub issueSteps to reproduce 📜
-
Upgrade via NuGet to 2.9.0
-
Rebuild Android project
Expected behavior 🤔
Successful build
Actual behavior 🐛
This causes a build failure in the Android project with several of these error lines in the output:
2>COMPILETODALVIK : PARSE error :
Note there are no error details displayed. If I return to the previous version I was using (2.8.5), it builds successfully.
Configuration 🔧
Version: 2.9.0
Platform:
- 📱 iOS
- 🤖 Android
- 🏁 WPF
- 🌎 UWP
- 🍎 MacOS
- 📺 tvOS
- 🐒 Xamarin.Forms
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:24 (6 by maintainers)
Top Results From Across the Web
Upgrade to 2.9.0 causes Android build failure ...
This causes a build failure in the Android project with several of these error lines in the output: 2>COMPILETODALVIK : PARSE error :...
Read more >Parse Error: What It Is and How to Fix It
A parse error is an error message you sometimes get on Android devices when an app fails to install. The message itself is...
Read more >Build fail with the COMPILETODALVIK error in TFS but it ...
Select the latest JDK version (JDK 8), and select X64 as the JDK Architecture. Reference : Xamarin Android Out of Memory Build Failure...
Read more >Parsing Package Error from Unity? - Meta Community Forums
Failed to install C:\Users\Tyler\Desktop\UnicornVR2.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: ...
Read more >Strange build errors after upgrading to kotlin plugin 3.0.0+
In one of them I get errors while trying to do the build: Execution failed for task ':app:compileDebugKotlin'. e: C:\dev\myapp\app\src\main\ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the reply. Unfortunately, I get a class not defined error with the “desugaring” enabled:
java.lang.NoClassDefFoundError : com/google/android/exoplayer2/source/BaseMediaSource
I will wait for Microsoft to hopefully fix this soon.
2.9.4 is committed and works in VS2019 preview2. We have to wait for that to release a stable new version.