Search code examples
androidapkandroid-gradle-plugin

Android Studio : install Release App by command line


I want to export apk file "release apk" from command line when I run this command : gradlew installRelease

and I found this

Android Studio Task 'install Release' not found in root project ''. Some candidates are: 'uninstall Release'.

How can I solve it?


Solution

  • So there is no such task. You can see all available tasks calling gradlew tasks. To assemble release version of apk call gradlew assembleRelease and then using adb install it.