Android - Could not find com.google.android.exoplayer:exoplayer:2.11.4.
See original GitHub issueHi, I am recently using this library in my RN project. It works fine in iOS devices, but when comes to android, I can’t build success. Here is the error log.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.google.android.exoplayer:exoplayer:2.11.4.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/google/android/exoplayer/exoplayer/2.11.4/exoplayer-2.11.4.pom
- file:/Users/teowenlong/.m2/repository/com/google/android/exoplayer/exoplayer/2.11.4/exoplayer-2.11.4.pom
- file:/Users/teowenlong/rn-visitor-app/node_modules/react-native/android/com/google/android/exoplayer/exoplayer/2.11.4/exoplayer-2.11.4.pom
- file:/Users/teowenlong/rn-visitor-app/node_modules/jsc-android/dist/com/google/android/exoplayer/exoplayer/2.11.4/exoplayer-2.11.4.pom
- https://dl.google.com/dl/android/maven2/com/google/android/exoplayer/exoplayer/2.11.4/exoplayer-2.11.4.pom
- https://www.jitpack.io/com/google/android/exoplayer/exoplayer/2.11.4/exoplayer-2.11.4.pom
Required by:
project :app
project :app > project :react-native-video
> Could not find com.google.android.exoplayer:extension-okhttp:2.11.4.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/google/android/exoplayer/extension-okhttp/2.11.4/extension-okhttp-2.11.4.pom
- file:/Users/teowenlong/.m2/repository/com/google/android/exoplayer/extension-okhttp/2.11.4/extension-okhttp-2.11.4.pom
- file:/Users/teowenlong/rn-visitor-app/node_modules/react-native/android/com/google/android/exoplayer/extension-okhttp/2.11.4/extension-okhttp-2.11.4.pom
- file:/Users/teowenlong/rn-visitor-app/node_modules/jsc-android/dist/com/google/android/exoplayer/extension-okhttp/2.11.4/extension-okhttp-2.11.4.pom
- https://dl.google.com/dl/android/maven2/com/google/android/exoplayer/extension-okhttp/2.11.4/extension-okhttp-2.11.4.pom
- https://www.jitpack.io/com/google/android/exoplayer/extension-okhttp/2.11.4/extension-okhttp-2.11.4.pom
Required by:
project :app > project :react-native-video
It keeps saying that exoplayer is not found. but I had follow exactly the installation steps stated in main page. What had I done wrongly?
Issue Analytics
- State:
- Created 2 years ago
- Comments:11
Top Results From Across the Web
Could not find com.google.android.exoplayer ... - Stack Overflow
Exoplayer library version 2.4.2 isn't found on Google's Maven Repo anymore. Change the implementation to this
Read more >Bug - Applovin ad module crashes. - Unity Forum
I am trying Unity Mediation, and added some ad modules under it. Among those ad modules, I have been facing issue in Applovin...
Read more >unable to load deps - React Native - Zoom Developer Forum
Could not find com.google.android.exoplayer:exoplayer-core:2.12.3. Searched in the following locations: - https://repo.maven.apache ...
Read more >ExoPlayer in Android with Example - GeeksforGeeks
ExoPlayer is released in API level 16 and it will not work on the device below API ... import com.google.android.exoplayer2.trackselection.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Worked for me with RN 0.67.2.
I was able to fix this by adding the line
jcenter()to android/build.gradle (rather than android/app/build.gradle). Here is the context:To prevent this from conflicting with marvenCentral it’s better to add the following to
android/app/build.gradleunder