cancel
Showing results for 
Search instead for 
Did you mean: 

Build error Android 34 exoplayer

rex.gatling.963
Explorer

I am receiving this error for exoplayer.  

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
 
FAILURE: Build failed with an exception.
 
* What went wrong:
Execution failed for task ':launcher:checkReleaseAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > One or more issues found when checking AAR metadata values:
     
     Dependency 'androidx.media3:media3-exoplayer-dash:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-exoplayer-hls:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-exoplayer-rtsp:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-exoplayer-smoothstreaming:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-exoplayer-workmanager:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-exoplayer:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-extractor:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-container:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-datasource-cronet:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-datasource-okhttp:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-datasource-rtmp:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-datasource:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-database:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-decoder:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.media3:media3-common:1.4.1' requires 'compileSdkVersion' to be set to 34 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.work:work-runtime:2.8.1' requires 'compileSdkVersion' to be set to 33 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.room:room-runtime:2.5.0' requires 'compileSdkVersion' to be set to 33 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.sqlite:sqlite-framework:2.3.0' requires 'compileSdkVersion' to be set to 33 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.sqlite:sqlite:2.3.0' requires 'compileSdkVersion' to be set to 33 or higher.
     Compilation target for module ':launcher' is 'android-32'
     
     Dependency 'androidx.annotation:annotation-experimental:1.3.1' requires 'compileSdkVersion' to be set to 33 or higher.
     Compilation target for module ':launcher' is 'android-32'
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
 
* Get more help at https://help.gradle.org
 
BUILD FAILED in 2s
 
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 
I really need exoplayer for my app. Can anybody help?
1 REPLY 1

devan.wolf.7
Honored Guest

Use an older version of ExoPlayer that is last compatible with Android 12L or wait for a new Meta Horizon OS update to Android 15.