Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

[SOLVED] Cannot load Android Project. java.lang.NullPointerException

I updated Android Studio to 2.2.3 with JRE 1.8.3 over the course of yesterday and this morning. I also updated all the packages and dependencies required for the updated.

Then I rebooted the laptop and attempted to open the project again and got the above error.

Cannot load project. java.lang.NullPointerException

Help!!

Now I've popped over to StackOverflow to check the error and it seems the best solution I've found has been to copy the code from all the Android Projects I've started so far into new projects.

Anyone have any better ideas?

And how can I protect myself against this happening again?

I

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Solved by simply closing the instance of Android Studio and reopening! Must have been an instance conflict in Android processes .