Jeremy D
Jeremy D

Reputation: 4855

NullPointerException from gradle when running react-native run-android

When trying to run react-native run-android I am getting this error:

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.NullPointerException (no error message)

I just updated my OS to El Capitan 10.11.6. It was working fine this morning so I am just wondering what could be wrong.

Modifying the client.js to add the --stacktrace flag to the gradle command doesn't help.

Upvotes: 2

Views: 582

Answers (1)

Jeremy D
Jeremy D

Reputation: 4855

It looks like the package I was requiring as a dependency was trying to also include firebase that is really big. By narrowing down to the exact packages I needed and only those, I was able to have the build to pass successfully.

Upvotes: 1

Related Questions