Unity Tutorial – How to Set up the Android SDK, JDK (Fix Included) ~ 2018!


Hi everyone!
Here is a brand new tutorial on how to setup android SDK 2018 in Unity error fix is included! if you have any other question feel free to comment below! [=

If you still having issues with creating an APK – check the following things:
1. Make sure that JDK & SDK are the correct path in Unity external tools window
2. If the JDK & SDK paths are correct and the build is still not working – download the old sdk like in the video at part 03:59.
3. Restart your computer after…

38 thoughts on “Unity Tutorial – How to Set up the Android SDK, JDK (Fix Included) ~ 2018!

  1. hello my pc is x64 and i install unity 2018 pro with crack when i want build apk error (update sdk ) but my jdk is version 13 from official website and my sdk installed from android studio version 3.5

  2. At Exact 2:28 , You have got one new window saying that "Select Java Development Kit(JDK) Folder". I am facing the same problem.
    What path exactly i supposed to give here ? I've give one path. but it says that " Path you specified does not look like valid JDK Installation."
    I have downloaded JDK 12.0.1 and installed it without any Customization. Need Help. Pleaseeeeeeeee !!!!!!!!!!!!!!!!!!!!!!!

  3. If you are having trouble with Install of SDK and JDK try go to Unity Hub/ go to installs, select recent install (eg: 2019.1.2f1) click on 3 dots next to the version, select ADD COMPONENT And install SDK etc from there.

  4. My background becomes completely white after 5 seconds in my apk game. The player and obstacles still remain. Please help. By the way it is a game about a football which is being chased by others players. You need to dodge them.

  5. your hiding your windows username how lame you idiot. not like anyone can get access to your computer. if your that worried about it make a new temporary user for the video you moron. blacking simple crap like that out makes it difficult for non computer geeks to follow because the AppData folder is hidden and if you don't know how to work around that you can't get to that folder. Serious dude if your gonna make a video make it useful otherwise get off YouTube so searches find useful videos.

  6. I get this error:

    CommandInvokationFailure: Unable to retrieve device properties. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
    G:/AndroidSDKplatform-toolsadb.exe -s "deviceidblablabla" shell getprop

    error: device offline

  7. I have all this errors :
    CommandInvokationFailure: Gradle build failed.
    C:/Program Files/Java/jdk1.8.0_191binjava.exe -classpath "C:Program FilesUnityEditorDataPlaybackEnginesAndroidPlayerToolsgradlelibgradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"


    FAILURE: Build failed with an exception.

    * Where:
    Build file 'G:R�o Bravo 3.0TempgradleOutbuild.gradle' line: 24

    * What went wrong:
    A problem occurred evaluating root project 'gradleOut'.
    > Failed to apply plugin [id 'com.android.application']
    > Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.

    * 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 1s

    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

    Build completed with a result of 'Failed'
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:buildslaveunitybuildEditorMonoBuildPlayerWindowBuildMethods.cs:190
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:buildslaveunitybuildEditorMonoBuildPlayerWindowBuildMethods.cs:96
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

  8. Thanks, it seems all good ! 🙂
    The only error i got is in Unity in the inspector :
    "IndexOutOfRangeException: Array index is out of range.
    UnityEditor.Android.AndroidBuildWindowExtension.GetBuildPlayerWindow ()
    UnityEditor.Android.AndroidBuildWindowExtension.RepaintTargetList ()
    UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:191)"

    But I will check on google if it is really bad, and if it could be fix, else it's perfect ! 😀

  9. i want to build apk for virtual reality app for cardboard i have android studio but it does not build the app it pop up error message like "please use android sdk installation tools to install your target sdk version". what i do now boss..!

Leave a Reply

Your email address will not be published. Required fields are marked *