![]() 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(), Here's my C# attempt at detecting where the SDK is installed, based on the most common installation paths. ![]() The question doesn't seem to require a programmatic solution, but my Google search brought me here anyway.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |