Gradle Build Failed Error SDK API Level 35 in Unity | 100% Solve After Update Target API Level 2024

preview_player
Показать описание
Are you struggling with Gradle Build Failed errors when targeting API level 35 in Unity? In this video, I'll guide you through the process of solving this issue in 2024.

👍 If you found this video helpful, please give it a thumbs up and subscribe for more Unity tips and tutorials!

🔔 Stay Connected:
Subscribe to ytcodemaster for more updates and tutorials!

❤️ Support My Work :

#Unity #GradleBuildError #APILabel35 #UnityTutorial #Unity3D #FixGradleError #UnityTips #ytcodemaster #ytcodemaster #GooglePlayConsole #androidgames #GameDevelopment #MobileAppDevelopment #sdk #api #solved
Рекомендации по теме
Комментарии
Автор

thank you dear you always solves those problems what others dont talk about!

raoahmed
Автор

Installed Unity 6 and fixed the issue. Thanks anyway, it was nice to watch your video!

IMFLearning
Автор

Didn't work for me, but I switched to unity 6 and it fixed my problem

MefMM
Автор

Hi, i am trying to submit a game to them, but i can't able to build the project due to gradle failure, I tried all the steps and instructions i got from their help team. Still can't able to do that. Could u help please ....

YTHealthandFitness
Автор

In my folder aapt2 fill present but aapt2.exe file not

JyotiVerma-km
Автор

I did not using Android studio, I am using visual studio what about that, can you fix it ?

rfindiangamer
Автор

unityde şöyle bir durm yaşıyorum reklam oyun açılınca 2 defa rahatça izleyebiliyorum ama 3. klez izletmiyor

bycengaver
Автор

it save by file apk and stuck on compilling cpp for libil2cpp (arm64)

real_alonewolF
Автор

If there's some problem how is it getting build in development build but if i uncheck development build i get gradle error.

Tried everything still same error in every unity version i tried 2020, 2022, unity 6

anshulsingh
Автор

Hello. My unity version 2022.3.16 . I followed all step same problem face ? Not solve my problem. Please help

mpmax
Автор

It's don't works for me! Please help me! I spent more than 2 months to try to fix the "gradle issue", but I don't successfully. My Unity version is : 2021.3.36f1 / My Gradle version is : 6.1.1 / My Android build-tools is 35.0.0 / My Android SDK is 35.0.0. I have theses errors : 1 incompatable and 2 stopped Daemons could not be reused / FAILURE: Build failed with an exception / CommandInvokationFailure: Gradle build failed / Build completed with a result of 'Failed' / Thanks you if you solve my issue!

phonedragons
Автор

Hi how are you i hope you doing well i need your help please
I made a unity ad from an Indian friend
But I am from Pakistan, I am changing the country but it is not happening, and not changing currency change its showing INR
Please tell me how to solve this problem, i cant add payout method

saraikibaloch
Автор

didnt work. Where can I get more help?

s_katz
Автор

Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details
Exception while marshalling C:\Program Probably the SDK is read-only this

and

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8


and

CommandInvokationFailure: Gradle build failed.
C:\Program -classpath "C:\Program

After i set admob than this error show me
please give me a solution

avi-ydub
Автор

This is the error I'm running into right now, I already tried a lot of solutions but nothing seems to work 🫠

CommandInvokationFailure: Gradle build failed.
C:\Program -classpath "C:\Program "bundleRelease"

Environment Variables:
PROCESSOR_ARCHITECTURE = AMD64
JAVA_HOME = C:\Program
=
DriverData =
USERDOMAIN = DESKTOP-E6C27B3
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
COMPUTERNAME = DESKTOP-E6C27B3
DEBUG_ENV_VAR = UnityHub
LOGONSERVER = \\DESKTOP-E6C27B3
=
=
ProgramData = C:\ProgramData
SESSIONNAME = Console
=
ALLUSERSPROFILE = C:\ProgramData
SystemRoot = C:\WINDOWS
windir = C:\WINDOWS
=
ProgramFiles(x86) = C:\Program Files (x86)
ProgramW6432 = C:\Program Files
OS = Windows_NT
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
HOMEPATH = \Users\Usuario
GIT_LFS_PATH = C:\Program Files\Git LFS
CHROME_CRASHPAD_PIPE_NAME =
PROCESSOR_LEVEL = 6
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
CommonProgramFiles = C:\Program Files\Common Files
ZES_ENABLE_SYSMAN = 1
PUBLIC = C:\Users\Public
USERDOMAIN_ROAMINGPROFILE = DESKTOP-E6C27B3
TEMP =
ProgramFiles = C:\Program Files
CommonProgramW6432 = C:\Program Files\Common Files
=
=
=
HOMEDRIVE = C:
AMPLITUDE_API_KEY_STAGING =
USERNAME = Usuario
OneDrive = C:\Users\Usuario\OneDrive
=
PATHEXT =
=
__PSLockDownPolicy = 0
NVM_HOME =
NUMBER_OF_PROCESSORS = 6
=
=
ComSpec = C:\WINDOWS\system32\cmd.exe
TMP =
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
NVM_SYMLINK = C:\Program Files\nodejs
PROCESSOR_REVISION = 9e0d
=
AMPLITUDE_TOKEN_REDBUCKET_DEV =
SystemDrive = C:
AMPLITUDE_API_KEY =
OneDriveConsumer = C:\Users\Usuario\OneDrive
SENTRY_ACCESS_TOKEN =
APPDATA =
Path = C:\Program Files\Common Files (x86)\Common Files (x86)\Common Files\Git LFS;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program VS Files\nodejs;C:\Program
PSModulePath = C:\Program
LOCALAPPDATA =
USERPROFILE = C:\Users\Usuario
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3


stderr[

FAILURE: Build failed with an exception.

* Where:
Script line: 93

* What went wrong:
A problem occurred evaluating script.
> Project with path could not be found in project ':unityLibrary'.

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


BUILD FAILED in 10s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
]
exit code: 1
(UnityEditor.Utils.Program p, waitingForProcessToExit, System.String errorMsg) (at
psi, waitingForProcessToExit, System.String errorMsg) (at
(System.String command, System.String args, System.String workingdir, waitingForProcessToExit, System.String errorMsg) (at
(System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at
javaTools, androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at
Rethrow as GradleInvokationException: Gradle build failed
javaTools, androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at
context) (at
context) (at
Rethrow as BuildFailedException: Exception of type was thrown.
(System.String title, System.String message, System.Exception ex) (at
context) (at
args, buildProgramOutput) (at
args, UnityEditor.BuildProperties& outProperties) (at
(UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, usedClassRegistry, report) (at
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

loanaromero
Автор

for testing purposes i tried on unity 6 and an empty project. i get the following gradle error even after doing everything in the video. Thanks in advance for any help!

Gradle initialization failed.
(System.String command, System.String args, System.String workingdir, System.String errorMsg) (at
(System.String args, System.String workingdir, System.String error) (at
javaTools, System.String workingDir, System.String baseCommand) (at
Rethrow as GradleInvokationException: Gradle initialization failed.
javaTools, System.String workingDir, System.String baseCommand) (at
() (at
(System.Object state) (at
executionContext, callback, System.Object state, System.Boolean preserveSyncCtx) (at
executionContext, callback, System.Object state, System.Boolean preserveSyncCtx) (at
executionContext, callback, System.Object state) (at
() (at
UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs)


FAILURE: Build failed with an exception.

* What went wrong:
Gradle could not start your build.
> Could not initialize native services.
> Failed to load native library 'native-platform.dll' for Windows 10 amd64.

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

()

kylestan
Автор

Still ran into an error after this then did another few step after implementing the video fix

1. Changed min API to 34 and obviously target to 35
2. Added 34.0.0 folder to build tool along the with 35.0.0 as instructed by the video
3. Added/Replaced this line in gradle.properties file : org.gradle.jvmargs=-Xmx4608m

Worked for me! Thankyou to the YT code master!

EastWestInfinitiGameStudio
welcome to shbcf.ru