Hey, trying to build to Android device (Oculus Quest 2) which is using API level 32
When Im trying to set minimum and target API to 33, or 34, im getting this error :
Software of device ‘Oculus Quest 2 (…)’ is not supported: Device: … [Quest 2]
The connected device is running Android with API level 32, while minimum API level of the project is set to 34. Please change the project settings or connect a device with Android version not lower than the one set in the project settings.
When i set my minimum and target API to 32 or lower im getting this error :
[CXX1405] error when building with cmake using C:\Users.…\Desktop.…\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\cpp\CMakeLists.txt: – Android: Targeting API ‘31’ with architecture ‘arm64’, ABI ‘arm64-v8a’, and processor ‘aarch64’ See the Console for details.
That was the building pop up error, this is the console error:
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2023.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath “C:\Program Files\Unity\Hub\Editor\2023.2.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.6.jar” org.gradle.launcher.GradleMain “-Dorg.gradle.jvmargs=-Xmx4096m” “assembleRelease”
when i paste it in terminal, im getting:
At line:1 char:133
- … e\lib\gradle-launcher-7.6.jar" org.gradle.launcher.GradleMain "-Dorg. …
-
Unexpected token ‘org.gradle.launcher.GradleMain’ in expression or statement.
- CategoryInfo : ParserError: (
[ ], ParentContainsErrorRecordException
- FullyQualifiedErrorId : UnexpectedToken
Ive tried every minimum / target API level out there, including both 32. Inside CMakeLists.txt, ive added the following
# Set the target API level
set(CMAKE_ANDROID_API 32)
Also tried rebuilding the Library folder, using version 2023.2.18f1
I have the required SDK and NDK versions, any help would be greatly appreciated
Any help is greatly appreciated