Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running an Android App in Eclipse Causes NullPointerException

Tags:

android

I have been following the Android getting started docs and when I try to run the project I get:

!MESSAGE An internal error occurred during: "Launching HelloAndroid".
!STACK 0
java.lang.NullPointerException
        at com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.launch(Unknown Source)

The application doesn't launch.

like image 642
James Ward Avatar asked Feb 09 '10 05:02

James Ward


2 Answers

On Top Menu go to "Run" then "Run Configurations" and select your target virtual device. Click apply, and then run the project.

like image 115
kamal_tech_view Avatar answered Oct 04 '22 21:10

kamal_tech_view


Unplugging my Nexus One and restarting Eclipse fixed the problem. Not sure why.

like image 40
James Ward Avatar answered Oct 04 '22 19:10

James Ward