Q:

How to regenerate an apk? 

This morning I generated an apk via this command:
./gradlew bundleRelease
which generated the following:

However, now I need to generate a newer version of the apk as I made some changes to the application. 
I tried just running the above command again, but that did not seem to work.  The files are all the same ones.  How do I regenerate an apk?  Do I need to delete the old ones first? 

A:

Clean your older build first using 
./gradlew clean

Then build your apk using 
# for debug
./gradlew assembleDebug

# for release
./gradlew assembleRelease

# if you want all the build variants, just using below command
./gradlew assemble

Your apks can be found inside output/apk directory

