ExoPlayer
ExoPlayer copied to clipboard
Target=31,Android 5.x java.lang.NoClassDefFoundError: com.google.android.exoplayer2.ExoPlayer$Builder$$ExternalSyntheticLambda17
ExoPlayer Version
2.16.0
Devices that reproduce the issue
Oppo a37f Android 5.1.1
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
compileSdkVersion 31
buildToolsVersion '31.0.0'
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
exoPlayer = new ExoPlayer.Builder(MainContext.getInstance()).build();
Expected result
successfully
Actual result
java.lang.NoClassDefFoundError: com.google.android.exoplayer2.ExoPlayer$Builder$$ExternalSyntheticLambda0
at com.google.android.exoplayer2.ExoPlayer$Builder.
Media
offline file
Bug Report
- [X] You will email the zip file produced by
adb bugreportto [email protected] after filing this issue.
Similar issues which turned out to be related to various dependency/build problems:
https://github.com/google/ExoPlayer/issues/10060
https://github.com/google/ExoPlayer/issues/9704
Based on https://github.com/google/ExoPlayer/issues/9704#issuecomment-975390727 I would suggest checking that you're depending only on the Android Guava variant (and not the general JRE one).
I don't believe this is a bug in ExoPlayer - but more a problem related to your build environment.
Closing due to inactivity.