Hello guys I am receiving the following exception when I run my unity project on my Android Phone:

  05-01 17:07:26.636: I/Unity(28091): AndroidJavaException: java.lang.NullPointerException

  05-01 17:07:26.636: I/Unity(28091):   at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown>:0 
05-01 17:07:26.636: I/Unity(28091):   at UnityEngine.AndroidJNISafe.CallVoidMethod (IntPtr obj, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <filename unknown>:0 
05-01 17:07:26.636: I/Unity(28091):   at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in <filename unknown>:0 
05-01 17:07:26.636: I/Unity(28091):   at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.Object[] args) [0x00000] in <filename unknown>:0 
05-01 17:07:26.636: I/Unity(28091):   at PushNotificationsAndroid.registerForPushNotifications () [0x00000] in <filename unknown>:0 
05-01 17:07:26.636: I/Unity(28091):   at PushNotificationsAndroid.Start () [0x00000] in <filename unknown>:0

I checked the pushwoosh JavaObject and its valid. Can somebody guide me to fix this? Thank you.

asked 01 May '15, 13:07
kashif789us's gravatar image

kashif789us
314

I had C2D_MESSAGE permissions inside application tag. When I moved it out of application, it starting working again.

permanent link
answered 07 May '15, 14:09
kashif789us's gravatar image

kashif789us
314

I have some issues like that with Android plugin, I remember that I had to check the AndroidManifest, check you have changed all the "PACKAGE_NAME" to you Unity bundle identifier when making the build.

permanent link
answered 07 May '15, 12:38
emora's gravatar image

emora
4115

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×88
×30

question asked: 01 May '15, 13:07

question was seen: 1,557 times

last updated: 07 May '15, 14:09