How to enable Android build for Docker TeamCity Build Agent?
I installed it with `docker run -it -e SERVER_URL="<url to TeamCity server>" \
-v <path to agent config folder>:/data/teamcity_agent/conf \
jetbrains/teamcity-agent`. Android build fails with `com.android.builder.errors.EvalIssueException: SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/opt/buildagent/work/../local.properties'.` But how to do that? Is there a guide page for this
Please sign in to leave a comment.
You need to use a proper build runner for that. By default teamcity-agent image does not support ndk (android SDK) and you need to find a proper runner somewhere in the wilds (like this one here - https://github.com/elpassion/docker-teamcity-android or any other you might find working for you by searching "teamcity agent android docker").
Also, if you're up for some latest version to work against, you may try the one I built today for latest version of Android SDK. It's quite raw, but may be enough for local testing: https://hub.docker.com/r/quilin/teamcity-agent-android