I'm trying out the Oculus Mobile SDK V1.0.4, following the instructions at Android Studio Basics.
I imported the build.gradle
file for VrCubeWorld_Framework
and when switching to the Project view, all dependencies are shown in bold, including VrAppFramework
.
When I try to build it though, I don't get very far. The first error I get is:
error: package com.oculus.vrappframework does not exist
in vrcubeworld\MainActivity.java
.
It seems pretty obvious what's going on, it doesn't know about the activity in the framework, but how do I make that connection? Do I need to add it as an external library / project or something? Since it's already bold, I thought that would have been taken care of.
For reference, here is the build.gradle
:
apply plugin: 'com.android.application'
apply from: "${rootProject.projectDir}/VrApp.gradle"
dependencies {
compile project(':VrAppFramework:Projects:AndroidPrebuilt')
compile project(':VrAppSupport:VrGUI:Projects:AndroidPrebuilt')
compile project(':VrAppSupport:VrLocale:Projects:AndroidPrebuilt')
compile project(':VrAppSupport:VrSound:Projects:AndroidPrebuilt')
}
android {
project.archivesBaseName = "vrcubeworldfw"
defaultConfig {
applicationId "com.oculus.vrcubeworldfw"
}
compileSdkVersion 19
buildToolsVersion '23.0.1'
buildTypes {
debug {
jniDebuggable true
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['../../java']
jniLibs.srcDir 'libs'
res.srcDirs = ['../../res']
assets.srcDirs = ['../../assets']
}
}
}