Skip to content Skip to sidebar Skip to footer

Android: Set Sdk.dir In Local.properties To Android_home Environment Variable

So the local.properties file holds the reference to the Android SDK directory in sdk.dir variable. For me it is sdk.dir=/Users/rajkiran/Library/Android/sdk. On my CI machine, the s

Solution 1:

local.properties should not be part of the versioned code. It's used as your local project configuration and Android Studio will create it based on on ANDROID_HOME if it doesn't exist yet.

If local.properties is not available, Gradle will use ANDROID_HOME automatically.

If local.properties is available, Gradle will use this file having a wrong sdk.dir set and fail.

Post a Comment for "Android: Set Sdk.dir In Local.properties To Android_home Environment Variable"