Phonegap pushwoosh plugin registerDevice App Crash

I have this problem since the last few days I have tried a lot. I found many solutions, but none of this works.

I also tried reinstalling Android Studio and SDK. I also updated the SDK.

Still the same error. Here is the error I received when the application crashed.

ATAL EXCEPTION: IntentService[GCMRegistrationService] Process: sample.tinfo.main, PID: 14194 java.lang.NoSuchMethodError: No virtual method getNoBackupFilesDir(Landroid/content/Context;)Ljava/io/File; in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of 'android.support.v4.content.ContextCompat' appears in /data/app/sample.tinfo.main-1/base.apk) at com.google.android.gms.iid.zzd.zzeb(Unknown Source) at com.google.android.gms.iid.zzd.<init>(Unknown Source) at com.google.android.gms.iid.zzd.<init>(Unknown Source) at com.google.android.gms.iid.InstanceID.zza(Unknown Source) at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source) at com.pushwoosh.GCMRegistrationService.register(Unknown Source) at com.pushwoosh.GCMRegistrationService.onHandleIntent(Unknown Source) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.os.HandlerThread.run(HandlerThread.java:61) 

I am using Mac OS with the latest android studio 1.5.0.

Here are some screenshots of My Gradle File.

enter image description here

Here are some screenshots of My project.properties

enter image description here

Here are some screenshots of My SDK

enter image description here enter image description here

Please help me. Thanks at Advance.

+7
cordova cordova-plugins phonegap-plugins pushwoosh
source share
2 answers

There should be a problem with your SDK, completely remove the current SDK and reinstall it and upgrade the version of node-js and phoneGap.

+1
source share

Finally, after a long study, I found a solution.

The problem arose because of the Facebook Plugin. Since using old jar files created problems for him. Here are the steps that I am following. Hope this helps someone else.

  • Update all Sdk.
  • Add Push Plugin. And remove the existing Facebook plugin (if any)
  • Now install this plugin for Facebook. (cordova-plugin-facebook4)
  • now run the command (android ion collector)

Then his working fine :)

Note: after adding the facebook plugin, do not go into android studio, just run the android ion collector, and then try to run the project from android studio.

0
source share

All Articles