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.gradleonly importsrajawalipackage into your project.The other sub-packages like
VR,Vuforiaare not imported, so you need to do it manually.Follow the steps below:
Rajawali-master\vr\src\main\java\org\rajawali3d. Copy thevrfolder into your project.Rajawali-master\vr\libs. Copyaudio.jarandcardboard.jartoapp\libsin your project.Note that you still have to add
rajawalidependency inbuild.gradlefirst.