Dedicated gradle run command for android studio

I would like the APK installed on the device to be generated using a custom command:

./gradlew clean assemble -PdisablePreDex

      

But I don't want to go to the command line and then use adb install name.apk. I am using Android Studio and I want to customize the launch configuration to run with this command?

+3


source to share


1 answer


  • Click on the dropdown to the left of the Run button.
  • Click "Change Configurations ..."
  • Click "Gradle", then the "+" button.
  • Customize your own "Run" script


screenshot

+3


source







All Articles