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
When I start a new Android project in Eclipse (Helios), the strings.xml has 2
Share
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.jobsor 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 :