I'm using Android Studio. I want to use Rajawali library, especially the vr package. I add the following line to build.gradle as described in GitHub.
compile 'org.rajawali3d:rajawali:1.0.325@aar'
Then I am able to use some classes in Rajawali library, such as RajawaliRenderer
. But when I import package org.rajawali3d.vr
, Android Studio says " Cannot resolve symbol 'vr' ". What am I doing wrong? How to fix it?
I finally solve it. Adding the line below into
build.gradle
only importsrajawali
package into your project.The other sub-packages like
VR
,Vuforia
are not imported, so you need to do it manually.Follow the steps below:
Rajawali-master\vr\src\main\java\org\rajawali3d
. Copy thevr
folder into your project.Rajawali-master\vr\libs
. Copyaudio.jar
andcardboard.jar
toapp\libs
in your project.Note that you still have to add
rajawali
dependency inbuild.gradle
first.