-7

I've updated my android studio to 2.2.1 and now I'm receiving error message in message section of android studio

Error:

java.lang.NullPointerException (no error message)

Here is a screen shot of my android studio:

Help me regarding this what to do now.

Ekta Padaliya
  • 5,743
  • 3
  • 39
  • 51
Vipin Saini
  • 39
  • 1
  • 2
  • 9

5 Answers5

4

In the root folder of your project, delete the .gradle folder.

C:\Users\VipinSaini\AndroidStudioProjects\MyProject\.gradle

then reboot Android Studio

Prad
  • 515
  • 7
  • 15
2

Go to your project, there's ".gradle" folder. Delete it and restart Android Studio and immediately rebuild the project. or Go to your project, there's ".idea" folder in this folder delete libraries folder and restart Android Studio and immediately rebuild the project.

jakir hussain
  • 316
  • 2
  • 18
1

@aznelite89,

Just delete the .gradle folder from the project directory. It is hidden in MacOS. Restart the Android Studio. Fixed, continue your work :)

OMi Shah
  • 5,768
  • 3
  • 25
  • 34
1

Go to your Project Location and removed .gradle folder.

Akshay Sharma
  • 157
  • 2
  • 6
1

Iv'e ran into this problem and deleting the gradle folder didn't work for me. I was getting NullPointerException: null with no further explanation in Event log whenever I tried to debug.

After looking at the call stack of the exception, what eventually worked was pressing the Sync project with gradle files button:

enter image description here

Maor Veitsman
  • 1,544
  • 9
  • 21