I am trying to do an assembleRelease for a single module. I have already red this Gradle build only one module, where the approach is to put on a terminal
./gradlew :nameOfModule:action
(assembleRelease on this case). I need to know if I am doing it right, because it should be generating an apk but instead what I get is a .dex
document.
Android studio provides an ability to do Gradle tasks via a user interface.
Push a "Gradle" button in a top right corner of the Android Studio, in a pinned window select a moduleName -> Tasks - > build -> assembleRelease
You can find a generated .apk file in %PROJECT_ROOT%/Module/name/build/outputs/apk
directory.
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