ExoPlayerXamarin: Upgrade to 2.9.0 causes Android build failure: COMPILETODALVIK PARSE error

Steps to reproduce πŸ“œ

  1. Upgrade via NuGet to 2.9.0

  2. 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)

Most upvoted 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.

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.