Unable to detect Android sdk in selected folder?,Invalid android SDK directory with android studio?
I installed the following sdk platforms to the directory shown using the sdk manager in android studio but when I try to link unity to that path it gives me an invalid SDK error? any ideas?
Answer by Ericroy · Mar 29, 2020 at 10:16 PM
I was able to make a successful Android build, as follows:
Download and install jdk-14_windows-x64_bin.exe from https://www.oracle.com/java/technologies/javase-jdk14-downloads.html,
Download and install android-studio-ide-192.6241897-windows.exe from https://developer.android.com/studio/index.html,
Download android-ndk-r19-windows-x86_64.zip from https://dl.google.com/android/repository/android-ndk-r19-windows-x86_64.zip and extract to C:/Program Files/Android/. (Unity wouldn't accept android-ndk-r19c-windows-x86.zip from https://developer.android.com/ndk/downloads/older_releases.)
In Unity, under Edit>Preferences>External Tools, add the following paths: C:/Program Files/Java/jdk1.8.0_241 C:\Users\Ericroy\AppData\Local\Android\sdk C:/Program Files/Android/android-ndk-r19 C:/Program Files/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/gradle
I hope this helps.
Your answer
Follow this Question
Related Questions
Unable to package Android app resources, even when blank app. 100 following. 0 Answers
Problems in Android build when running game 1 Answer
How can I open a fragment view from inside Unity Android? 0 Answers
unable to merge android manifests 0 Answers
Android Platform Installation is failing on 5.5.1f1 for OS X 1 Answer