Hi everyone, I'm starting with KMM to build apps for our company. I'm currently using Azure DevOps for CI/CD with the azure native task Gradle@2 to build the android app. When I look at the documentation, it's written that it is like to build android app since it is Kotlin. The problem when I'm executing the command ./gradle assembleRelease nothing happen. I google it and every example they are using Android Studio and it works like a charm but in the context of CI/CD I can't use the tool 🙂. Can someone help me to understand how in command line ( with gradlew) I can generate a APK please. It's probably a very simple question so thank you in advance !
m
Matti MK
10/19/2022, 3:23 PM
I imagine this is not really different from any other Android APK build.
I can’t help you with any code, as I’m building AABs, but your
./gradlew assembleRelease
seems correct. If you add the
--info
flag to the end you’ll be able to see more output and perhaps derive what went wrong.
f
Francois Desrosiers
10/19/2022, 3:35 PM
Ok good idea, i will try it right away ! thanks for your idea
m
Matti MK
10/19/2022, 4:37 PM
You might want to look into AABs also
f
Francois Desrosiers
10/19/2022, 7:37 PM
Just to make a follow-up, the --info help me find where the apk and aab file where on the build server. Thanks again @Matti MK!