0

I was programming in Android Studio, on MAC OS X macOS Sierra.

I was debugging code on one emulator, then I started next emulator with different phone. Then accidentally laptop restarted (with the grey screen https://i.kinja-img.com/gawker-media/image/upload/s--HPvl05ih--/c_scale,f_auto,fl_progressive,q_80,w_800/18mfougmh04injpg.jpg).

After boot everything come back, Android Studio too. But I can't debug my apps. I have

Error:java.lang.NullPointerException (no error message)

This happening everytime I try to run my app. It is on my company project, from git. I tried different versions of code.

I tried also (with chronology):

I don't know what I can do next besides reinstalling OS.

Thanks

Community
  • 1
  • 1
Jakub Anioła
  • 310
  • 3
  • 16

3 Answers3

1

Okay.

After that post I also tried cleaning cache, logs and again reinstall Java JDK. Nothing helped.

Unfortunately the only solution which helped - format and reinstall system.

Jakub Anioła
  • 310
  • 3
  • 16
0

Try File -> Invalidate caches / Restart... in android studio.

Ivan Šimović
  • 497
  • 4
  • 17
0

you must remove ".gradle" folder into your root project and restart your android studio.