An internal error occurred during: “Launching Project”. java.lang.NullPointerException

后端 未结 10 2179
野趣味
野趣味 2021-01-18 04:38

My android project was compiling well but suddenly it stopped launching. Then I tried to launch other projects from Project Explorer and all project threw same exception:

10条回答
  •  借酒劲吻你
    2021-01-18 05:37

    In my case, it was because I was running it with Debug As -> Android Native Application, while the emulator was closed (I debugging on the emulator, not on a real phone).

    I needed to first start the emulator using Debug As -> Android Application, after which Debug As -> Android Native Application will work.

    Close the emulator and the error re-appears. My conclusion is that Debug As -> Android Native Application won't work unless the emulator is already started.

提交回复
热议问题