Started getting this error in the production version of my app.
java.lang.NullPointerException: Attempt to invoke virtual method \'boolean android.content.In
This question is a bit old, but I just wanted to share an update on it. According to this Github issue on the GCM project the issue should be solved in Google Play Services version 9.4.0. The accepted answer should work as well (as an intermediate patch), but if you update your Google Play Services library this issue should be solved.