Skip to main content
bossleoio
Participant
October 12, 2024

Hello World (Issue with Gradle Properties)

  • October 12, 2024
  • 2 replies
  • 768 views

I am a first time developer and looking at the Meta Spatial SDK for the first time. I am already experiencing issue with simple getting started with the Starter Sample project. 

Following the instructions, I have installed Android Studio and made all the necessary updates, but not able to run the project due to a gradle properties issue. 

When I try to run the Starter Sample, I would get the below build errors:

 

    This topic has been closed for replies.

    2 replies

    MetaStoreHelp
    Community Manager
    October 17, 2024

    From the screenshot, the error is "Unknown Kotlin JVM target: 21". This indicates an incompatibility between your Kotlin, Java, or Gradle version. You can see a full compatibility matrix here (https://docs.gradle.org/current/userguide/compatibility.html). Please make sure your configured setup has some valid combination of these.

    If you're the author of a thread, remember to mark a reply as the Accepted Solution to help others find answers!
    Meta Employee
    October 29, 2024

    We have also released version 0.5.1 now which aims to fix some of these setup issues with the sample projects. Could you try downloading the newest version of our samples from https://github.com/meta-quest/Meta-Spatial-SDK-Samples and see if they open and compile in Android Studio?