Regardless of the method you choose, make sure to select the correct Android SDK folder for Unity in the Edit > Preferences > External Tools window. In this case, to update the Android SDK Target API, you must use the Android sdkmanager from either Android Studio or the command line tool. If you select an older version of the Target API, the Unity Android SDK Updater won’t be able to perform the update and gives an error message. In the NDK field, enter the path to the NDK installation folder, or use the Browse button to locate it.Įach version of Unity requires a specific version of the Android NDK: Unity バージョン.Android NDK Installed with Unity (recommended) のチェックを外します。.Note: Unity works with the most recent version of the Android SDK available at the time of the Unity version release. In the SDK field, enter the path to the SDK installation folder, or use the Browse button to locate it.Disable the Android SDK Tools Installed with Unity (recommended) setting.In the JDK field, enter the path to the JDK installation folder, or use the Browse button to locate it.Disable the JDK Installed with Unity (recommended) setting.In the left navigation column, select External Tools. Open the Preferences window (Windows and Linux: Edit > Preferences macOS: Unity > Preferences). Warning: Unity doesn’t support versions of the OpenJDK, SDK, or NDK other than the ones it supplies. To do this, go to Preferences > External tools and enter the directory paths in the SDK and NDK fields: Android の外部ツール設定を示す Preferences ウィンドウ If you have multiple versions of Unity with the same required dependencies (check System requirements for the latest) and you want to avoid duplicating the installation of Android SDK & NDK Tools and OpenJDK, you can specify a shared location in the Unity Preferences window. Unity installs Android SDK & NDK Tools and OpenJDK respectively in the SDK, NDK and folders under /Unity/Hub/Editor//Editor/Data/PlaybackEngines/AndroidPlayer/. You should use the Unity Hub to install Android SDK & NDK tools, to ensure that you receive the correct versions and configuration. And adb devices should verify that the device is connected. If the connection was successful you will see a message such as connected to 192.168.0.65:5555. For more information on connecting your Android device to the SDK, refer to the Run Your App section of the Android Developer documentation. The setup process differs for Windows and macOS. See the manufacturer website for your device for additional information. If you are developing on a Windows computer, you might need to install a device-specific USB driver. Use a USB cable to connect your device to your computer. To do this, see Android’s Configure developer options documentation. To enable USB debugging, you must enable Developer options on your device. You can install Android Build Support, the Android SDK & NDK tools, and OpenJDK when you install the Unity Editor, or add them at a later time.įor information on how to add the Android modules: Use the Unity Hub to install Android Build Support and the required dependencies: Android SDK & NDK tools, and OpenJDK. Install Android Build Support and the Android SDK & NDK tools Note: Unity supports Android 5.1 “Lollipop” (API 22) and above.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |