Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do an assembleRelease for a single module in android

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.

like image 244
Juan Antonio Sánchez Jiménez Avatar asked Oct 17 '22 14:10

Juan Antonio Sánchez Jiménez


1 Answers

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.

enter image description here

like image 54
Oleg Sokolov Avatar answered Oct 20 '22 16:10

Oleg Sokolov