Unfortunately, ‘common sense’ doesn’t resolve the issue in this case, as it appears to be a reproducible Unity bug. I would appreciate more specific guidance how to fix this after the export into Android Studio.
For your effort, i thank you in advance.
I have now the build.gradle files opened i found, can anyone tell me how i could fix the problem?
in what of all the manifest do i have to edit or mention the wrongly added permission?
Gradle properties says:
unity.minSdkVersion=24
unity.targetSdkVersion=34
unity.compileSdkVersion=34
however in all files android studio marks this as deprecated:
android {
namespace "com.unity3d.player"
ndkPath "C:/Program Files/Unity/Hub/Editor/6000.2.6f2/Editor/Data/PlaybackEngines/AndroidPlayer/NDK"
ndkVersion "27.2.12479018"
compileSdk 34 <----- deprecated
build.gradle
- build.gradle (Project: export)
Show nothing about SDK min versions
- build.gradle (Module: launcher)
defaultConfig {
applicationId "----cant share----"
versionName ".511"
minSdk 24
targetSdk 34
versionCode 1
ndk {
abiFilters "arm64-v8a"
debugSymbolLevel "none"
}
}
- build.gradle (Module: unityLibrary)
defaultConfig {
consumerProguardFiles "proguard-unity.txt"
minSdk 24
targetSdk 34
ndk {
abiFilters "arm64-v8a"
debugSymbolLevel "none"
}
}
- build.gradle (Module: unityLibrary:xrmanifest.androidlib)
namespace "com.UnityTechnologies.XR.Manifest"
compileSdk 34
buildToolsVersion = "34.0.0"
defaultConfig {
minSdk 24
targetSdk 34
}
The manifest from launcher:
<?xml version="1.0" encoding="utf-8"?>
<manifest android:installLocation="preferExternal" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
<application android:icon="@mipmap/app_icon" android:label="@string/app_name" />
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
</manifest>
The Library Manifest : library/xrmanifest.androidlib/manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.UnityTechnologies.XR.Manifest">
<application>
<activity android:name="com.unity3d.player.UnityPlayerGameActivity" android:exported="true">
<meta-data android:name="com.oculus.vr.focusaware" android:value="true" />
</activity>
<meta-data android:name="com.oculus.supportedDevices" android:value="quest|quest2|cambria|eureka|quest3s" />
</application>
<uses-feature android:name="android.hardware.vr.headtracking" android:required="true" android:version="1" />
<uses-feature android:name="oculus.software.eye_tracking" android:required="true" />
<uses-permission android:name="com.oculus.permission.EYE_TRACKING" />
</manifest>
and the unity library/manifest/manifests
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-feature android:glEsVersion="0x00030000" />
<uses-feature android:name="android.hardware.vulkan.version" android:required="false" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />
<uses-feature android:name="android.hardware.microphone" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
<application android:appCategory="game" android:enableOnBackInvokedCallback="true" android:extractNativeLibs="true">
<meta-data android:name="unity.splash-mode" android:value="0" />
<meta-data android:name="unity.splash-enable" android:value="True" />
<meta-data android:name="unity.launch-fullscreen" android:value="True" />
<meta-data android:name="unity.render-outside-safearea" android:value="True" />
<meta-data android:name="notch.config" android:value="portrait|landscape" />
<meta-data android:name="unity.auto-report-fully-drawn" android:value="true" />
<meta-data android:name="unity.strip-engine-code" android:value="true" />
<meta-data android:name="unity.auto-set-game-state" android:value="true" />
<activity android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density" android:enabled="true" android:exported="true" android:hardwareAccelerated="false" android:launchMode="singleTask" android:name="com.unity3d.player.UnityPlayerGameActivity" android:resizeableActivity="true" android:screenOrientation="fullUser" android:theme="@style/BaseUnityGameActivityTheme">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN" />
<category android:name="com.oculus.intent.category.VR" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
<meta-data android:name="android.app.lib_name" android:value="game" />
<meta-data android:name="WindowManagerPreference:FreeformWindowSize" android:value="@string/FreeformWindowSize_maximize" />
<meta-data android:name="WindowManagerPreference:FreeformWindowOrientation" android:value="@string/FreeformWindowOrientation_landscape" />
<meta-data android:name="notch_support" android:value="true" />
<layout android:minHeight="300px" android:minWidth="400px" />
<intent-filter xmlns:android="http://schemas.android.com/apk/res/android">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="unitydl" android:host="com.unityplayeraccounts.489e4636-792f-424e-99bc-b948efa12f6e" />
</intent-filter>
</activity>
</application>
</manifest>