Home > other >  Why gradle unity compile time error
Why gradle unity compile time error

Time:09-19

CommandInvokationFailure: Gradle build failed.
/Library/Java/JavaVirtualMachines jdk1.8.0 _144. JDK/Contents/Home/bin/Java classpath - "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle - the launcher - 4.0.1. Jar" org. Gradle. The launcher. GradleMain "- Dorg. Gradle. Jvmargs=- Xmx2048m" "assembleRelease
"Stderr [

FAILURE: the Build failed with an exception.

* What went wrong:
A problem occurred you root project 'gradleOut.
Always add a task ': prepareUnityAdsLibrary' as a task with that name already exists.

* Try:
Run with -- stacktrace option to get the stack trace. Run with -- the info or -- debug option to get more the log output.

The BUILD FAILED in 1 s
]
Stdout [
The NDK is missing a "platforms" directory.
. If you are using the NDK, verify the the NDK dir is set to a valid the NDK directory. It is currently set to/Users/JasonXu/Downloads/android SDK - macosx/the NDK - bundle.
If you are not using the NDK, unset the the NDK variable from ANDROID_NDK_HOME or local. The properties to remove this warning.

]
The exit code: 1
UnityEditor.Android.Com mand. WaitForProgramToRun (UnityEditor. Utils. The Program p, UnityEditor. Android. WaitingForProcessToExit WaitingForProcessToExit, System. String errorMsg)
UnityEditor.Android.Com mand. Run (System. Diagnostics. ProcessStartInfo psi, UnityEditor. Android. WaitingForProcessToExit WaitingForProcessToExit, System. String errorMsg)
UnityEditor. Android. AndroidJavaTools. RunJava (System. String args, System. String workingdir, System. The Action 1 ` progress, System. String error)
UnityEditor. Android. GradleWrapper. Run (System. String workingdir, System. A String of task, System. The Action ` 1 progress)
Rethrow the as GradleInvokationException: Gradle build failed
UnityEditor. Android. GradleWrapper. Run (System. String workingdir, System. A String of task, System. The Action ` 1 progress)
UnityEditor. Android. The PostProcessor. Tasks. BuildGradleProject. Execute (UnityEditor. Android. The PostProcessor. PostProcessorContext context)
UnityEditor. Android. PostProcessor. PostProcessRunner. RunAllTasks (UnityEditor. Android. The PostProcessor. PostProcessorContext context)
UnityEngine. GUIUtility: the ProcessEvent (Int32, InPtr)
What reason is this?
Big trouble explain
There are the following this error
UnityEditor. BuildPlayerWindow + BuildMethodException: 3 errors
At UnityEditor. BuildPlayerWindow + DefaultBuildMethods. BuildPlayer (BuildPlayerOptions options) x0020e [0] in/Users/builduser buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods cs: 181
At UnityEditor. BuildPlayerWindow. CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) x00065 [0] in/Users/builduser buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods cs: 88
UnityEngine. GUIUtility: the ProcessEvent (Int32, IntPtr)
What are these??

CodePudding user response:

If your personal edition in a Pro version a try, is likely to be useful,

CodePudding user response:

I guess you are in the right package path

CodePudding user response:

refer to the second floor small gyro _coder reply:
I guess is you in the right package path

I tried, the results not line,

CodePudding user response:

refer to the second floor Scopperil response:
I guess you are in the right package path
has been solved, AndroidMainfest problem, changed the packageName
  • Related