My settings
OS: Windows 10
Unity Version: 2017.1.1f1
JDK Verison: Jdk-9
Android Studio: Version 2.3.3
Androi SDK:
1. Set Java Path for computer. (Computer->Properties->Advanced system settings->Environment Variables)
* System Variable
Variable Name : PATH
Variable Value : C:\Program Files\Java\jdk-9\bin
EXTRA:
But the best practice is to set JAVA_HOME and PATH as follow.
* User Variable
Variable Name : JAVA_HOME
Variable Value : C:\Program Files\Java\jdk-9
* System Variable
Variable Name : PATH
Variable Value : %JAVA_HOME%\bin
Possible Error Solution:
2. Download Android Stuio or SDK from https://developer.android.com/studio/index.html
3. Install it, make sure that you select tools and SDK (if you are installing Androi Studio.)
4. Then launch Android Studio and finish installation by downloading sdk.
5. From Android Studio, Install services and NDK. And make SDK udates.
6. Your sdk path : C:\Users\UserName\AppData\Local\Android\sdk
5. irst I tried installing Android SDK and an older Version of JDK into folders with only three letters in the folder name directly on the desktop. But this was not the solution.
Then I fixed it by downgrading the android sdk tool version. Obviously the most current version (SDK Tools, Revision 25.3.0 (March 2017)) causes the trouble.
This is how you do it:
Go to your Android SDK Folder. (If you did not change the path during Android Studio installation you will find the SDK folder here: C:\Users\YourUsername\AppData\Local\Android\sdk )
Rename the old Android sdk "Tool" folder : [Your Android SDK root]/tools -> toolsXXXX
Download Android SDK Tools, Revision 25.2.5 (January 2017): http://dl-ssl.google.com/android/repository/tools_r25.2.5-windows.zip
Extract that to Android SDK root folder.
In Unity go to Edit>Preferences>External Tools and check again, that the path for Android SDK points to the correct folder. (The correct path is the SDK root folder, not the tools folder which is inside the root folder!)
Build your project.
if debugging is the art of removing bugs, then programming must be the art of inserting them..
Subscribe to:
Post Comments (Atom)
Visual Studio Keyboard Shortcuts
Playing with keyboard shortcuts is very interesting and reduce the headache of using the mouse again and again while programming with visu...
-
Delete: /YOUR PATH TO WORKSPACE/.metadata/.plugins/org.eclipse.core.resources
-
Playing with keyboard shortcuts is very interesting and reduce the headache of using the mouse again and again while programming with visu...
-
Unity NavMesh vs Apex Path vs A* Pathfinding Project Update June 2017: Unity 5.6 comes with improved NavMeshes! They are now component-b...
No comments:
Post a Comment