JMRSDK Development
v4.38
v4.38
  • Jio Mixed Reality SDK Documentation
    • Changelog 4.38
      • Upgrade Guide 4.38
    • Application Requirements
  • Device Information
    • JioGlass
    • JioDive
  • Supported Smartphones
  • Controller Specifications
    • Physical Controllers
    • External Gamepad
    • Virtual Controller / Virtual Keyboard for JioGlass
  • Getting Started
    • Development Platform
    • Setting Up Jio Mixed Reality Project in Unity
    • URP Support
      • Setting Up Your Project With URP
      • Reverting Back to Built-In Render Pipeline
  • JMRSDK
    • JMRSDK Content
    • JMRMixedReality Prefab
    • System Dock
    • JMRRig
      • Local Rig
      • Setting Homepage (Quit functionality)
      • Recenter Application on Resume
  • Develop
    • Editor Emulator
    • JioGlass Controller Interactions
    • Cameras
    • Tesseract Mixed Reality UI Toolkits
    • Examples
    • Video Tutorials
  • Interaction
    • Gaze Interaction
      • Gaze and Click
      • Gaze and Dwell
    • Interaction
      • Pointer Manager
        • Examples
      • Active Input Source
    • Interfaces
      • IFocusable
      • ISelectHandler
      • ISelectClickHandler
      • IBackHandler
      • IHomeHandler
      • IMenuHandler
      • IFn1Handler
      • IFn2Handler
      • ITouchHandler
      • ISwipeHandler
      • IVoiceHandler
      • IManipulationHandler
    • Controller Input Actions
      • Touchpad - Touch
      • Touchpad - Swipe
      • Source Buttons
      • Manipulation
    • Actions
    • Device State
      • JioDive Device State
      • JioGlass Device State
      • Controller Device State
  • Voice
    • Voice
      • Speech Events
      • Speech Result
      • Speech Error
      • Speech Session End
      • Speech Cancel
    • Listening
  • Tracking
    • Tracking
      • Coordinate System
    • Tracking Framework
      • TrackerManager Actions
        • Get Head Position
        • Get Head Rotation
        • Get Head Transform
      • TrackerManager Methods
        • Get Head Position
        • Get Head Rotation
        • Get Head Transform
    • Recenter
  • Building and Testing
    • Building to Target Device
      • Merging AndroidManifest
      • Performance Optimization
      • App optimization
    • Running your application
      • JioImmerse App For Jio Mixed Reality (JMR) Devices
      • Running the application on Prism (Holoboard)
    • IPD Calibration
  • Publish
    • Branding Guidelines
    • Licensing Journey In Android JioImmerse
    • Signing your App
    • Publishing to Google Play Store
      • Play Store Upload Journey
    • Publishing to JioImmerse Developer Console
    • Publishing to Apple Store
    • Licensing Journey in iOS JioImmerse
    • iOS Deep linking
  • Capturing and Recording
    • Capture Videos and Screenshots
      • Capturing Screenshot/Videos using scrcpy
      • Capturing Screenshot/Videos using Vysor
  • Troubleshooting
    • FAQs - Develop
    • FAQs - Building to device
      • Gradle
      • FAQs - iOS
    • FAQs - Running and Publishing
    • Laser Point Not Visible
Powered by GitBook
On this page
  • Gradle Compatability
  • Setting the correct Android Gradle Plugin version.
  • Gradle build failure.
  • #1 Error: uses-sdk:minSdkVersion 'x' cannot be smaller than version 26 declared in library
  • #2 Error: Could not get unknown property 'vstsMavenAccessToken' for Credentials [username: tesseractimg].
  • #3 Error: Keystore passwords incorrect
  1. Troubleshooting
  2. FAQs - Building to device

Gradle

PreviousFAQs - Building to deviceNextFAQs - iOS

Gradle Compatability

The following table shows the compatibility between Gradle version and Unity version.

Unity version
Gradle version
Android Gradle Plugin version

2023.1, 2023.2

7.6

7.3.1

2022.2, 2022.3

7.2

7.1.0

2022.1 2021.2, 2021.3 2021.1 starting from 2021.1.16f1 2020.3 starting from 2020.3.15f1

6.1.1

4.0.1

2021.1 up to and including 2021.1.15f1 2020.1, 2020.2 2020.3 up to and including 2020.3.14f1

5.6.4

4.0.1

2019.4

5.1.1

3.4.3

Setting the correct Android Gradle Plugin version.

To setup the correct version of the Android Gradle plugin version -

  1. Open baseProjectTemplate.gradle

  2. Change the version of 'com.android.tools.build.gradle'

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

#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

This document does not cover manifest merger failure due to multiple manifest files injected due to third-party plugins.

CommandInvocationFailure in unity console
Project Keystore incorrect
Project Key password was incorrect
LogoUnity - Manual: Gradle for Android