Reputation: 2767
The question is basically what are the arguments that I need to pass in the command line in order to specify the target device (or emulator) with android maven plugin.
Upvotes: 1
Views: 1325
Reputation: 2767
You basically just need to pass the argument -Dandroid.device=
For the device argument, you can use:
By the way, if you have more than one target that matches the argument (like 2 emulators running and you use "emulator", it will target all the running emulators). That's pretty handy if you want to deploy in multiple emulators =D
Just in case, here is an example of the usage of the argument:
mvn android:deploy android:run -Dandroid.device=emulator
Upvotes: 4