Closed coolgong2002 closed 9 months ago
Its a Unity 2022.x issue (Unity 2021.x is fine)
In your gradles (main and launcher Templates), try this:
minSdkVersion 22 targetSDKversion 32 compileSDKversion 33
You then need to check Editor/Data/PlaybackEngines/AndroidPlayer/SDK/platforms to see if it has an android-33 folder. If it doesn't you need to copy one across from another version of Unity (I found one in 2023.1.0b17). I have no idea why 2022 doesn't have android 33 included as standard.
Thanks! [Chris-RH]
Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE
Describe the issue A clear and concise description of what the issue is.
Your Setup (please complete the following information):
To Reproduce Attempt to build project for android with AVProVideo 2.9.0 installed Gradle error occurs
A dialog box is displayed: A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction See the Console for details.
1: Starting a Gradle Daemon, 1 incompatible and 6 stopped Daemons could not be reused, use --status for details Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
2: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':launcher:checkReleaseAarMetadata'.
Dependency ':exoplayer-datasource:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-container:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-extractor:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-core:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-database:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':extension-rtmp:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-rtsp:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-hls:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-common:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-smoothstreaming:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-dash:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-decoder:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
3: CommandInvokationFailure: Gradle build failed. C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
Environment Variables: NDKROOT = C:\Users\knightgong\AppData\Local\Android\Sdk\ndk\25.1.8937393 RegionCode = APJ USERDOMAIN = coolgong platformcode = M5 ProgramFiles = C:\Program Files TMP = C:\Users\KNIGHT~1\AppData\Local\Temp GTK_BASEPATH = C:\Program Files (x86)\GtkSharp\2.12\ PROCESSOR_REVISION = b701 ANDROID_HOME = C:\Users\knightgong\AppData\Local\Android\Sdk OS = Windows_NT CHROME_CRASHPAD_PIPE_NAME = \.\pipe\crashpad_11840_ZZJHEYJLNNKDKCTO NDK_ROOT = C:\Users\knightgong\AppData\Local\Android\Sdk\ndk\25.1.8937393 PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 183 Stepping 1, GenuineIntel EFC_41700 = 1 ProgramW6432 = C:\Program Files USERPROFILE = C:\Users\knightgong JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK CommonProgramFiles = C:\Program Files\Common Files DriverData = C:\Windows\System32\Drivers\DriverData ComSpec = C:\windows\system32\cmd.exe PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC = C:\Users\Public SystemRoot = C:\windows IGCCSVC_DB = AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAS7DHJiLVkkCUXU4cR80UOgQAAAACAAAAAAAQZgAAAAEAACAAAAA6W8fDKRwRRANWgr5+I/oUZr8ihUTc7FS2JhkmkW7WTwAAAAAOgAAAAAIAACAAAACP7EqfnlzQ1xOqL5KOMsb4ykbiE8AgODICQW8iEbs5PWAAAACKGvvSBfQG2W6GffI6dWVpy98KUGqQx/u3fg6ip9SjSXnt1tem5d+bS6TM/sKMhN5qk4Wrs2VjMUQvkTNS0+F0TKlZQvTvllstm5wOT239qcJdL5AWWWsNdJzm4abRlTFAAAAAdUfjMjLDq5M8i15AYMt0xl3f7IjCl735GZ7f7bznB/zy6P0QO06WiPw6fPzN7HmDbuXJ2zcB7kVn5B9VOZTqwA== NUMBER_OF_PROCESSORS = 24 JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8 FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer HOMEDRIVE = C: TEMP = C:\Users\KNIGHT~1\AppData\Local\Temp Path = C:\Program Files (x86)\VMware\VMware Player\bin\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\Incredibuild;C:\Program Files\Perforce\;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files\CMake\bin;C:\Users\knightgong\AppData\Local\Microsoft\WindowsApps;C:\Users\knightgong.dotnet\tools;C:\Users\knightgong\AppData\Local\Android\Sdk\platform-tools;C:\Users\knightgong\AppData\Local\Android\Sdk\tools;C:\Users\knightgong\AppData\Local\Android\Sdk;C:\Users\knightgong\AppData\Local\Android\Sdk\cmdline-tools\latest\bin; USERNAME = knightgong COMPUTERNAME = COOLGONG PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC ALLUSERSPROFILE = C:\ProgramData SystemDrive = C: OnlineServices = Online Services windir = C:\windows PROCESSOR_ARCHITECTURE = AMD64 FPS_BROWSER_USER_PROFILE_STRING = Default ZES_ENABLE_SYSMAN = 1 CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files APPDATA = C:\Users\knightgong\AppData\Roaming OneDrive = C:\Users\knightgong\OneDrive PROCESSOR_LEVEL = 6 CommonProgramW6432 = C:\Program Files\Common Files ProgramFiles(x86) = C:\Program Files (x86) SESSIONNAME = Console LOGONSERVER = \COOLGONG LOCALAPPDATA = C:\Users\knightgong\AppData\Local HOMEPATH = \Users\knightgong __COMPAT_LAYER = DetectorsAppHealth USERDOMAIN_ROAMINGPROFILE = coolgong ProgramData = C:\ProgramData ORIGINAL_XDG_CURRENT_DESKTOP = undefined
stderr[ Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':launcher:checkReleaseAarMetadata'.
Dependency ':exoplayer-datasource:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-container:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-extractor:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-core:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-database:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':extension-rtmp:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-rtsp:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-hls:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-common:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-smoothstreaming:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-dash:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Dependency ':exoplayer-decoder:' requires 'compileSdkVersion' to be set to 33 or higher. Compilation target for module ':launcher' is 'android-32'
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 5s ] stdout[ Starting a Gradle Daemon, 1 incompatible and 6 stopped Daemons could not be reused, use --status for details Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-32\package.xml. Probably the SDK is read-only Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.13f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 5s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Logs If applicable, add error logs to help explain your problem.
Screenshots If applicable, add screenshots to help explain your problem.
Videos If applicable, add a copy of your video or the URL
Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE
Instead email the link to us unitysupport@renderheads.com