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

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

    I had the same issue.

    Non of my project in the workspace would run and I would get the same message "An internal error occurred..." and details would just say something about a Nullpointer. This happend after I did some updates and all projects in the workspace started giving the same issue.

    It took me some time to find the problem:

    When I go to configuration of the project (Run Configuration...) I could see that "Project" in the configuration settings was empty. So my update removed the projects from the configurations. Once I put back the project in the configuration again problem was gone.

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

    I had this error with an NDK project (eclipse mars, loaded an ant project) everytime i tried to lauch on the device (google tango yellowstone) using Debug As -> Android Native Application. Note, that i switched the device and changed a dependent library since the last successful build.

    When i tried Debug As -> Android Application i got this message:

    Re-installation failed due to different application signatures. You must perform a full uninstall of the application. WARNING: This will remove the application data!

    Do you want to uninstall?

    clicking OK here solved the issue, so Debug As -> Android Native Application also worked again.

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

    If anyone face this problem, first keep in mind that error is not in your code but due to some internal issue in eclipse ADT. I don't know exact problem but luckily found way to solve it. If you ever encounter this error follow steps below:

    1. Exit Eclipse.
    2. Go to Android workspace.
    3. Locate .metadata folder(make sure you set hidden folder visibility on).
    4. Delete .metedata folder.
    5. Start Eclipse(you will notice project explorer is empty, don't panic) and import all your projects.
    0 讨论(0)
  • 2021-01-18 05:17

    One cause of this issue for me was that I had been updating my Android Tools with the installer. It was running in the background doing all its updates. I had forgotten about it since I had told it to do the work in the background. Then realized it had finished its work and needed a restart after the installation.

    Once the upgrade / installation was done and the IDE was restarted, the Eclipse environment went back to behaving as normal.

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

    Removing Gen/R.java and restarting eclipse, worked for me.

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

    To resolve this issue, I just remove the old JRE System Library and point to the new JRE System Library.

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