Select the root folder of your SDK installation. The first time you make a Project for Android (or if Unity later fails to locate the SDK), you will be asked to locate the folder where you installed the Android SDK. If you are developing on a Windows computer, you need to install the appropriate USB driver for your device.įor more information on connecting your Android device to the SDK, refer to the Running Your App section of the Android Developer documentation. Connect your Android device to the SDKĬonnect your Android device to your computer using a USB cable. Developer options as displayed in Android 5.0 (Lollipop) - Samsung Galaxy Note 3 4. Go to Settings > Developer options, and check the USB debugging checkbox to enable debug mode when the device is connected to a computer via USB. On the seventh tap, Developer options are unlocked. A pop-up notification saying “You are now X steps away from being a developer” appears, with “X” being a number that counts down with every additional tap. Go to Settings > Developer options, then enable USB debugging.Īfter you have navigated to the build number using the instructions above, tap on the build number seven times. Note: On operating systems older than Android 4.2 (Jelly Bean), the Developer options aren’t hidden. Build number as displayed in Android 5.0 (Lollipop) on a Samsung Galaxy Note 3 For different devices and Android versions, refer to your hardware manufacturer. The stock Android setting can be found by navigating to Settings > About phone > Build number. The location of the build number varies between devices. To do this, find the build number in your device’s Settings menu. To enable USB debugging, you need to enable Developer options. After installing, open the Android SDK Manager and add at least one Android SDK Platform, the Platform Tools, the Build Tools, and the USB drivers if you’re using Windows. You can either use an Android Studio and SDK bundle, or only download the SDK command line tools. Download the Android SDKĭownload the Android SDK from the Android Studio and SDK Tools download page. If the path specified for sdk directory in ' Project Structure' is entirely different and the sdk directory is present at the specified location,Īdd the line: sdk.Whether you’re building an Android application in Unity or programming it from scratch, you need to set up the Android Software Development Kit (SDK) before you can build and run any code on your Android device. If sdk is not there at /home/USERNAME/Android/:Īdd the line: sdk.dir = /home/tanya/Android/ If sdk is there at /home/USERNAME/Android/:Īdd the line: sdk.dir = /home/tanya/Android/sdk Then add the following line depending on where you find the sdk directory. PROJECT_DIRECTORY needs to be replaced by your project name. PROJECT_DIRECTORY/android/local.properties The sdk directory should be present in the specified path. If there is none, check the specified sdk path for the project in android studio. USERNAME is to be replaced by your username If there is an SDK file present, it should be most likely found at /home/USERNAME/Android/sdk System: Ubuntu 16.04 LTS, yet you can try these steps in accordance to your respective systems. The SDK location may vary (from my experience), however (assuming the default configuration) you will most likely find it in C:\Program Files\Android or C:\Users\%USERNAME% If you have retrieved the standalone SDK by some other means: The reason is that those directories might be deleted after installing a newer version of Android Studio and you would have to re-install the SDK as well. Note #2: you will never find the SDK in the Android Studio directory unless you have explicitly put it in there. If you have a standard Windows configuration, the C:\ path above should work "as is" (hit Win + R -> paste the path -> Enter). Note #1: the AppData directory is hidden by default. If it is missing at this location, one of the following reasons apply: you have chosen a custom location, you missed to install the SDK at all, or (unlikely) they have changed the default install location. If you have downloaded the AS + SDK bundle:Īssuming the defaults were left unchanged, you will find the SDK inĬ:\Users\%USERNAME%\AppData\Local\Android
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |