ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Target=31,Android 5.x java.lang.NoClassDefFoundError: com.google.android.exoplayer2.ExoPlayer$Builder$$ExternalSyntheticLambda17

Open viyarda opened this issue 3 years ago • 1 comments

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.(ExoPlayer.java:440)

Media

offline file

Bug Report

  • [X] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

viyarda avatar Sep 09 '22 02:09 viyarda

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.

icbaker avatar Sep 09 '22 15:09 icbaker

Closing due to inactivity.

icbaker avatar Oct 06 '22 09:10 icbaker