ExoPlayerXamarin: Upgrade to 2.9.0 causes Android build failure: COMPILETODALVIK PARSE error
Steps 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
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 24 (6 by maintainers)
Thanks for the reply. Unfortunately, I get a class not defined error with the βdesugaringβ enabled:
java.lang.NoClassDefFoundError : com/google/android/exoplayer2/source/BaseMediaSourceI 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.
It seems to work with that fix! Iβve updated 2.9.1 to support this. Only problem left is that Java 1.8 features are not taken in account in the bindings. So some methods are missing.