When I start a new Android project in Eclipse (Helios), the strings.xml has 2 strings, app_name
and hello
(which is normal, of course), but they're not shown in the resources view. They seem blank and on clicking anywhere or typing in either views brings up an error dialog, saying "An error occured.. java.lang.NullPointerException
. I'm able to add more attributes, but this dialog keeps on coming. And no programs have failed to run yet.
What is really the problem and how can I solve it?
Thanks
views:
21answers:
2If you go to the Android SDK site (ADT Plugin page) they say that their plugin for Eclipse is only supported for Ganymede(3.5) and Galileo(3.6). If you're trying to use the ADT plugin in Helios your problem could be that you're trying too new of a version of Eclipse. EDIT:There also seems to be a problem with the plugin in 3.6 right now so you should be using 3.5
I've had a similar problem, on both my Windows 7 PC and Ubuntu PC, I was not able to run a simple "Hello World" application, or one of the samples. Each time I tried to run I got the "An error has occured" popup, along with a NullPointer exception in the logs.
Does your nullPointer exception refer to eclipse.jobs
or something similar? (Sorry don't have access to mine to check exact name right now)
I had the issue on 3.6, so downgraded to 3.5.2, that seemed to solve the nullPointer for me, on both my environments
Since you don't mention your eclipse version, I will assume you are on 3.6. What I would suggest :
- Backup your source code
- Remove eclipse
- Download 3.5.2
- Install ADT
- Configure ADT to point to your Android SDK
- Create new project to verify you can run OK