![]() ![]() We are going to be using the Android 8.0 (API level 26) SDK. The SDK Manager will open up, and you will see a list of different Android SDKs. Hopefully someone else will find this approach useful. To get the Android SDK, you will need to click on the SDK Manager button on the Android Studio toolbar. I need this because I'm writing an extension to a C# program to work with Android Studio/Gradle. String path = Path.Combine(subDir, uniqueFile) String subDirs = Directory.GetDirectories(androidDir, "*sdk*", SearchOption.TopDirectoryOnly) String androidDir = Path.Combine(searchDir, "Android") Program Files (x86) (it's okay if we're on 32-bit, we check if this folder exists first)Įnvironment.GetFolderPath() + " (x86)",Įnvironment.GetFolderPath() String uniqueFile = Path.Combine("platform-tools", "adb.exe") // look for adb in Android foldersĮnvironment.GetFolderPath(),Įnvironment.GetFolderPath(), ANDROIDSDKHOME E:Android To override the user preferences location for those older tools, set ANDROIDSDKHOME to the parent directory you would like the. Here's my C# attempt at detecting where the SDK is installed, based on the most common installation paths. If you have android studio with a lower version (4.3 or earlier), you have to use ANDROIDSDKHOME instead of ANDROIDUSERHOME. The question doesn't seem to require a programmatic solution, but my Google search brought me here anyway. On another PC I let the Android Studio install the Android SDK for me, and the SDK ended up in C:\Users\MyUsername\AppData\Local\Android\Sdk. Thanks, the problem was that in step 4, my screen was missing the Android SDK tools.Between Android SDK Platform-Tools and Documentation for Android SDK, there was nothing.Perhaps you have an earlier download than todays, for version 3.6 dated 12 February 2020. Installed Location: c:\spool\Android\build-tools\27.0.3 Installed packages:=] 100% Computing updates.ĭescription: Android SDK Build-Tools 27.0.3 Info: Parsing c:\spool\Android\tools\package.xml Info: Parsing c:\spool\Android\platforms\android-27\package.xml Info: Parsing c:\spool\Android\platform-tools\package.xml Info: Parsing c:\spool\Android\patcher\v4\package.xml Info: Parsing c:\spool\Android\extras\intel\Hardware_Accelerated_Execution_Manager\package.xml Info: Parsing c:\spool\Android\extras\android\m2repository\package.xml Info: Parsing c:\spool\Android\emulator\package.xml On the Get the Android SDK page, you can. Info: Parsing c:\spool\Android\build-tools\27.0.3\package.xml In your browser on the PC, open the Android SDK download page and click Download the SDK Tools ADT Bundle for Windows. If you can run the "sdkmanager" from the command line, then running sdkmanager -verbose -list will reveal the paths it checks.įor example, I have installed the SDK in c:\spool\Android and for me running the sdkmanager -verbose -list looks like: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |