What I have: An IntelliJ Idea Android project stored on a Git server; TeamCity is configured to have an "IntelliJ Idea project" as a Runner type. The project itself is stored on Git with all project-related iml's and xml's: you can just download it, open and press "run", the project gets compiled, an .apk gets placed in the out/production folder.
What I want: TeamCity to generate an .apk in addition to .class files and place it in the out/production folder
The question: how do I achieve that? Is there a specific setting telling TeamCity that this is an Android project, apart from Idea's project configs?
P.S. Android SDK, dependencies, JDK are all configured correctly, as the project gets compiled successfully. The only issue is that the .apk doesn't get generated.
In case anyone faces the same problem: You have to explicitly declare an artifact (Project Settings -> Artifacts) of an "Android Application" type, and then list its name in TeamCity's Build Step Config.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With