Hi, We recently integrated pushwoosh Unity package into our game. However the game crash loading the game:

Caused by: java.lang.NoClassDefFoundError: com.google.android.gms.iid.InstanceID

Does anybody know a workaround for this issue, we are currently using google play plugin 11.0.4 and require this ?

Regards, Matt

asked 07 Sep, 10:59
mattr's gravatar image

mattr
111

Matt,

As far as I can see, my colleague Vitaly have already answered your question in the support ticket.

Just in case, I will copy his answer in order for other visitors to see it:

Pushwoosh Android SDK and Pushwoosh Unity plugin, in particular, do support Play Services v11. I have checked the plugin you reference and it seems that it does not support GCM at all. The plugin does not contain com.google.android.gms.gcm package and it should be manually added. Please refer to the following issue in this plugin's repo:

https://github.com/playgameservices/play-games-plugin-for-unity/issues/883

You can always find .aar of Play Services packages in the following directory:

$ANDROID_HOME/extras/google/m2repository/com/google/android/gms/play-services-gcm/11.0.4/play-services-gcm-11.0.4.aar

For example, on my Mac it is located in /Users/pushwoosh/Library/Android/sdk/extras/google/android/gms/play-services-gcm/11.0.4/play-services-gcm-11.0.4.aar

Please make sure that you have a required version of the lib installed via Android SDK Manager.

You will also have to include some other Google Play Services packages. You can find it listed here:

https://github.com/Pushwoosh/pushwoosh-unity/tree/master/PushwooshUnitySample/Assets/Plugins/Android

Just replace 9.6.1 versions with 11.0.4. Also, the plugin you currently use might have some of these packages included. In this case, you will catch a dexer exception (already added). Then remove one of the instances and you should be fine.

Regards, Ivan

permanent link
answered 29 Sep, 03:18
iskoritzky's gravatar image

iskoritzky
3528

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:

×434
×318
×29

question asked: 07 Sep, 10:59

question was seen: 587 times

last updated: 29 Sep, 03:18