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

后端 未结 10 2195
野趣味
野趣味 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:31

    This is a cause of AVD is not picked because you might delete it or it is not picked up correctly ... in other words deployment target is not specified or it has some problem in picking up a device.

    To Resolve this:

    • Right click your project and choose "Properties"
    • From "Run/Debug" Settings, Highlight over your application name then hit "Edit..."
    • In "Target" tab, you have to choose a virtual device to be picked automatically under option named "Automatically pick compatible device..."
      • to avoid such prompt you could choose the first option "Always prompt to pick device" that will ask you everytime to choose or pick a device inside which you want to run your app.

    If it still not working restart Eclipse

    0 讨论(0)
  • 2021-01-18 05:32

    Got the similar issue after update the project able to procced.

    Right click on the project -->Maven --> Update Project

    0 讨论(0)
  • 2021-01-18 05:33

    I had the same issue all of a sudden. This only happened when I ran in Debug mode, and for me what fixed it was... Run -> Remove All Breakpoints. Then I could add them back, and it ran in debug mode fine.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题