Skip to content
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

Plugin Not Working on Android Device. #2

Open
yavuzgunay opened this issue Nov 11, 2023 · 1 comment
Open

Plugin Not Working on Android Device. #2

yavuzgunay opened this issue Nov 11, 2023 · 1 comment

Comments

@yavuzgunay
Copy link

Hi @sxudan,

It does not work after installing the plugin on your Android device. What can I do to make it work?

Thanks

Simulator Device : Pixel API 34

Android Studio Error

Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.google.vr:sdk-videowidget:1.170.0.
     Searched in the following locations:
       - https://oss.sonatype.org/content/repositories/snapshots/com/google/vr/sdk-videowidget/1.170.0/sdk-videowidget-1.170.0.pom
       - https://repo.maven.apache.org/maven2/com/google/vr/sdk-videowidget/1.170.0/sdk-videowidget-1.170.0.pom
       - file:/Volumes/External/Projects/VRReactNativeApp/node_modules/jsc-android/dist/com/google/vr/sdk-videowidget/1.170.0/sdk-videowidget-1.170.0.pom
       - https://dl.google.com/dl/android/maven2/com/google/vr/sdk-videowidget/1.170.0/sdk-videowidget-1.170.0.pom
       - https://www.jitpack.io/com/google/vr/sdk-videowidget/1.170.0/sdk-videowidget-1.170.0.pom
     Required by:
         project :app > project :react-native-video360

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

@yavuzgunay
Copy link
Author

Hi @sxudan ,

Today I did research to solve the problem in Android. I couldn't test it because I don't have much Java knowledge. In a project 4 years ago, jar file implementation could be done. Additionally, the Google VR library is disabled. Instead, the Google Cardboard library can be used via Android NDK. The repository is constantly kept up to date.

//Google Cardboard Links
https://developers.google.com/cardboard/develop/c/quickstart
https://github.com/googlevr/cardboard

//Jar Implement

GoogleVr.jar Resource : https://github.com/ktaeyang/react-native-video360/tree/master/android/libs

// From node_modulesimplementation files('libs/GoogleVr.jar')
implementation files('libs/GoogleVr.jar')

GoogleVr.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant