Unity was confused JDK 9 as well, I solved that in (the main Unity menu, next to "File") Unity->Preferences->External Tools->JDK->Browse and used /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home which was already installed and that (finally!) worked. I went to Build->Edit Libraries & Dependencies->SDK Location-> then I checked the box. The three modules to install are: Android Build Support Android SDK & NDK Tools OpenJDK Unity Hub displaying the three dependency modules. Then I upgraded Java to 9, but that confused Android Studio. I kept getting "major version 52 is newer than 51, the highest major version supported by this compiler." Make sure you place the folder in desktop Sometimes it will not work if you place in other folders or drives When you build the game, Unity asks for the android location, Just navigate the desktop folder Android folder Build the game. Which is amazingly cool and was know to be a JakeWharton project. Then Appearance & Behavior->System Settings->Android SDK-> (tab) From there, check the boxes for 7.0 and/or 7.1, click "Apply" or OK and wait for them to install. Once downloaded open the folder and install the versions you needed. Gradle will attempt to download missing SDK packages that a project depends on. You open the SDK manager, but this is a tiny little button on the toolbar (not menu bar) that has a blue arrow pointing down on top of a tiny Android character. But it's not obvious that you do this by installing Android version 7.0 or 7.1 within Android Studio. I had to install the level 24 SDK packages within Android Studio before building them in Unity. Other issues I've had with Unity/Android (trying to get ARCore working): I read somewhere else how to make the hidden Library folder visible:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |