I want to run "set ANDROID_HOME = $(bamboo.ANDROID_HOME) gradlew writeProjectInfo" script in a task bu I got "SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable." error. I write "sdk.dir = C=\\Users\\myName\\AppData\\Local\\Android\\Sdk" in my local.properties file in my project bu it does not worked. What is the reason if this error? How can I fix?
set ANDROID_HOME = $(bamboo.ANDROID_HOME) gradlew writeProjectInfoI'm asking that because there is a mix between Windows and Linux way of treating variables. Windows variables should be evaluated like:
%BAMBOO_<MY_VAR>%so on a windows agents it would be:
set ANDROID_HOME = %BAMBOO_ANDROID_HOME% gradlew writeProjectInfo
sdk.dir = C:/Users/myName/AppData/Local/Android/SdkJava applications usually interpret forward slashes as path separators too and this will save you from using extra characters. It was also strange to me that you had a an equal sign "=" instead of a colon ":", maybe just a typo.
Please notice that I'm not an expert on gradle, but I'm trying to give you some tips so you can move on.
I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events