googlevr / gvr-android-sdk

Google VR SDK for Android
http://developers.google.com/vr/android/
Other
3.28k stars 1.28k forks source link

gvr-android-sdk for eclipse? #317

Closed Spider100 closed 7 years ago

Spider100 commented 7 years ago

Is there any possibility to run this libs in eclipse? My engine is integrated with this IDE so it's realy hard to move on Android Studio.

I've tried to use unpacked * .aar and prepare external libs and after all I've stuck on:

E / AndroidRuntime (3777): Caused by: java.lang.NoClassDefFoundError: com.google.vrtoolkit.cardboard.proto.nano.Phone $ PhoneParams

For now it looks that I will have to use 3 yers old cardboard.jar in my project :(

sigmaxipi commented 7 years ago

There are no plans to support Eclipse since Gradle is the build system that Android apps should use going forward. You should migrate your project to Gradle.

Your specific issue is caused by not having the required dependencies in your project. If you look at the SDK dependencies for the sdk-common library, it says it requires the protobug-javanano library. You'll need to get those libraries and add them to your project. You will need to do this for all the gvr libraries and these dependencies might change in the future. You will also need to make sure you are using the resources and .so files from the .aars or you will get runtime errors.

You'll need to look at the .pom files for all the libraries and their dependencies with each new SDK release.