Gradle

Gradle required with JMRSDK is Gradle 6.1.1

You can download gradle 6.1.1 from here.

Gradle build failure.

While building if you get Gradle Build failure, you will get multiple error logs in the unity console. There can be multiple reasons why you are getting these errors.

For getting the reason you need to refer to CommandInvocationFailure in Build failed logs

CommandInvocationFailure in unity console

#1 Error: uses-sdk:minSdkVersion 'x' cannot be smaller than version 26 declared in library

JMRSDK has a dependency on SDK version 26 and hence build will fail when the minimum API version specified in project settings will be smaller than version 26.

Fix: Make sure that the minimum API level is set to 26 and the target API level is set to 29 or higher.

#2 Error: Could not get unknown property 'vstsMavenAccessToken' for Credentials [username: tesseractimg].

There are dependencies of the Gradle properties template on the base Gradle template.

Fix: Make sure to select all the publishing build settings correctly as shown in the image below.

#3 Error: Keystore passwords incorrect

Project Keystore incorrect
Project Key password was incorrect

Last updated