Android Maven not starting emulator

后端 未结 2 1695
别跟我提以往
别跟我提以往 2021-02-04 11:14

When i right-click my Android Project and Select Run->Android Application. The emulator gets launched and the changes do reflect.

But when i do the foll

2条回答
  •  半阙折子戏
    2021-02-04 11:47

    You can either launch the emulator manually (like Deepak mentioned in his answer) before running mvn android:deploy, or using the following configuration and run mvn android:deploy directly, it will automatically start emulator and wait for it before doing the deploy:

    
        com.jayway.maven.plugins.android.generation2
        android-maven-plugin
        3.3.2
        
            ... ...
            
                21
                
                180000
                -no-skin
            
            ... ...
        
        true
    
    

提交回复
热议问题