Hi, I’m new to oculus develop. I’m trying to run samples without luck. Android Studio 3.3.2 Build #AI-182.5107.16.33.5314842, built on February 16, 2019 JRE: 1.8.0_152-release-1248-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.13.6 I followed steps in: https://developer.oculus.com/documentation/mobilesdk/latest/concepts/mobile-studio-basics/ opened: ovr_sdk_mobile_1.22 copia/VrSamples/VrCubeWorld_NativeActivity/Projects/Android/build.gradle copie local.properties to “ovr_sdk_mobile_1.22 copia” the message in step 3: When asked if you would like the project to use the Gradle wrapper, click OK. is different, it not find wrapper and ask me to download it, it download 4.10.1 the error now is: ERROR: Unsupported method: AndroidProject.getVariantNames() so I changed gradle-wrapper.properties distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip and build.gradle apply plugin: 'com.android.application' apply from: "${rootProject.projectDir}/VrApp.gradle"
android { buildToolsVersion "27.0.3" . . . } now the error ERROR: Could not find method classpath() for arguments [com.android.tools.build:gradle:4.4.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. truedepth with different distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
now I have updated to gradle 5.1 and give me this error:
ERROR: Could not find method leftShift() for arguments [VrAppPlugin$_apply_closure4@76b9159b] on task ':VrSamples:VrCubeWorld_SurfaceView:Projects:Android:cleanWorkAround' of type org.gradle.api.DefaultTask.