JMRSDK Development
v4.57
v4.57
  • Jio Mixed Reality SDK Documentation
    • Changelog
      • Upgrade Guide
    • Application Requirements
  • Device Information
    • JioGlass
    • JioDive
  • Supported Smartphones
  • Controller Specifications
    • Physical Controllers
    • External Gamepad
    • Virtual Controller
  • Getting Started
    • Development Platform
    • Setting Up Jio Mixed Reality Project in Unity
    • Video Tutorials
    • URP Support
      • Setting Up Your Project With URP
  • JMRSDK
    • JMRSDK Content
    • JMRMixedReality Prefab
    • System Dock
    • JMRRig
      • Local Rig
      • Setting Homepage (Quit functionality)
    • Webcast
  • Develop
    • Editor Emulator
    • JioGlass Controller Interactions
    • Cameras
    • Tesseract Mixed Reality UI Toolkits
    • In-app purchase
    • Examples
  • 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
      • IManipulationHandler
    • Controller Input Actions
      • Touchpad - Touch
      • Touchpad - Swipe
      • Source Buttons
      • Manipulation
    • Actions
    • Device State
      • JioDive Device State
      • JioGlass Device State
      • Controller Device State
  • 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
      • IPD Calibration
    • Licensing Journey In Android JioImmerse
    • Licensing Journey in iOS JioImmerse
  • Publish
    • Branding Guidelines
    • Signing your App
    • Publishing to Google Play Store
      • Play Store Upload Journey
    • Publishing to JioImmerse Developer Console
    • Publishing to Apple Store
    • 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 28 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

Last updated 5 months ago

Gradle Compatability

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

Unity version
Gradle version
Android Gradle plug-in version

2021.3.41f1+

7.5.1

7.4.2

2021.3.37f1 - 2021.3.40f1

6.7.1

4.2.2

2021.2.0b4 - 2021.3.36f1 2021.1.16f1+

6.1.1

4.0.1

2021.1 up to 2021.1.15f1

5.6.4

4.0.1

Unity version
Gradle version
Android Gradle plug-in version

2020.3.15f1+

6.1.1

4.0.1

2020.3 up to 2020.3.14f1 2020.1, 2020.2

5.6.4

4.0.1

Unity version
Gradle version
Android Gradle plug-in version

2019.4

5.1.1

3.4.3

Unity version
Gradle version
Android Gradle plug-in version

2022.3.38f1+

7.5.1

7.4.2

2022.2.0a18 - 2022.3.37f1

7.2

7.1.2 7.1.0

2022.2.0a1 - 2022.2.0a17 2022.1

6.1.1

4.0.1

Unity version
Gradle version
Android Gradle plug-in version

2023.1, 2023.2

7.6

7.3.1

For more details, refer:

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.

To get the reason you need to refer to CommandInvocationFailure in Build failed logs

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

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

Fix: Make sure that the minimum API level is set to 28 and the target API level is set to 34.

#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.

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