By default IDE genarate a apk like app-debug.apk
or app-release.apk
file but I need to generate specific name of the Apk of the App.
For Example:
My application name is iPlanter so i need to generate iPlanter-debug.apk
or iPlanter-release.apk
instead of app-debug.apk
or app-release.apk
respectively.
Thanks,
Step 1: Go to root of the main project, under app , right click on app and refactor the app into specific name (example iPlanter) and press ok
Step 2:
Go to Project Setting file which is setting.gradle
file
setting.gradle
file contains
include ':app'
Now need to replace app by specific name.
For Example app replace by iPlanter in include ':app' it looks like below
include ':iPlanter'
then Sync project, after that run your application.
Finally, App generate an apk like iPlanter-debug.apk
or iPlanter-release.apk
file.