-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building a exoplayer library for Unity and having issues applying documentation #11217
Comments
Thanks for your report. I think this is a problem with your build and it looks like the Java classes are not visible or some of them are not. You need to make sure that the ExoPlayer classes are accessible from Unity/native. I'm not an expert in this matter, but probably someone from the community who has experience with Unity can help. |
I added a baseProjectTemplate.gradle file to the plugins folder and added this in the dependencies I am using Unity 2021.3.16, is there anything else required for Unity to have access to Exoplayer? |
Still need help with the same issue. |
Hi @Gurwar, are you find the solution. i also face the exact error. i don't what to do. i include all the dependencies in build.gradle, still facing these issue |
No I was not able to find the solution and used AV Pro Video Player instead for my project. |
Oh ok. Thanks @Gurwar |
Hello exoplayer community. I am coming from a Unity and c# background and am completely new to Android Studio. I am building a custom exoplayer library and am using available exoplayer resources to do so. Unfortunately they don't apply to building plugins for external use and a lot of the related community discussions are outdated. Here is my code for initializing the player in Java.
Here is the Unity side.
Unfortunately I hit an error when trying to use the unityPlayer as the context for building the player. Error Unity AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/media3/exoplayer/ExoPlayer$Builder;
Any guidance would be appreciated.
The text was updated successfully, but these errors were encountered: