Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Commit

Permalink
Add linux based android SDK locations to gradle (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
jobe-m authored Mar 18, 2022
1 parent 86071b8 commit e4ddebd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ fun guessAndroidSdkPath(): String? {
System.getenv("ANDROID_HOME"),
"$userHome/AppData/Local/Android/sdk",
"$userHome/Library/Android/sdk",
"$userHome/Android/Sdk"
"$userHome/Android/Sdk",
"$userHome/AndroidSDK", // location of sdkmanager on linux
"/usr/lib/android-sdk", // location on debian based linux (sudo apt install android-sdk)
"/Library/Android/sdk" // some other flavor of linux
).firstOrNull { File(it).exists() }
}

Expand Down

0 comments on commit e4ddebd

Please sign in to comment.