How to start application in command line with Maven

后端 未结 3 749
被撕碎了的回忆
被撕碎了的回忆 2021-01-15 14:23

I want to run Android application in command line after execution android:deploy maven goal

Does Maven have some command which can run application after

3条回答
  •  爱一瞬间的悲伤
    2021-01-15 14:35

    It doesn't look like: http://maven-android-plugin-m2site.googlecode.com/svn/plugin-info.html

    You can do it with adb instead. But you have to know the Activity name.

    adb shell am start -a android.intent.action.MAIN -n your.app.package/.YourMainActivity
    

提交回复
热议问题