Skip to content Skip to sidebar Skip to footer

Android Studio 2.2.1 Gradle Sync Nullpointerexception

I have installed android studio 2.2 and created new project but gradle sync failed every time and getting following exception. Error:Cause: java.lang.NullPointerException at java.u

Solution 1:

Thanks @keddy 1201 his comment saved my life. I have tried uninstalling studio and java sdk and then reinstalled again couple of times with previous version and with also new versions.

Tried running studio as administrator solved the problem

Solution 2:

Though the question has an accepted answer, but in my case with opening Android Studio 2.2.1 (though not actually only Gradle Sync), I opened the bin/idea.properties file inside the android-studio installation folder and had inserted the following line as suggested in this video:

disable.android.first.run=true

Then restarting Android-Studio has solved the NullPointerException.

Post a Comment for "Android Studio 2.2.1 Gradle Sync Nullpointerexception"