-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Latest Play store service breaks phonegap-plugin-push #909
Comments
+1 |
1 similar comment
+1 |
+1 10+ build crashes with this same error |
+1 |
2 similar comments
+1 |
+1 |
That's solution used by @zimski
Refer to this issue: |
Geez, a guy goes away to the PhoneGap Day conference and Google updates everything on him. I'll look at this ASAP. However, this plugin uses "com.android.support:support-v13:23+" so the "com.android.support:support-v4:+" must be being included from another package. So, if you folks can help me with a reproduction scenario like what version of android, what version of cordova-android and what plugins you have installed that would be best. |
Hi! I was having this issue with Cordova 5.2.0 and Android 4.1.1. Anyways, here's the list of the plugins I'm using: cordova-fabric-plugin 1.0.7 "cordova-fabric-plugin" |
Working through this now. I created a fresh project, no v4 added, then I added this plugin, still no v4 added. So it is an issue with another plugin. Continuing to investigate. |
I get the plugin that introduce the
So the
|
@hiperlouro I went though your list of plugins and added them all to my test project except the Fabric one as I do not have a valid API key. Right now I can't reproduce the issue. @zimski yes thanks, I see that cordova-plugin-mauron85-background-geolocation uses v4 support. In this case I don't think it is cordova that needs to be more smart it is Google. They introduced an incompatibility in their latest Play Services and previous support libraries. Trying to find the right combination that works for everyone. |
Same problem here. "cordovaPlugins": [
"cordova-plugin-appsettings",
"cordova-plugin-compat",
"cordova-plugin-console",
"cordova-plugin-crosswalk-webview",
"cordova-plugin-device",
"cordova-plugin-dialogs",
"cordova-plugin-file",
"cordova-plugin-file-transfer",
"cordova-plugin-network-information",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"cordova-plugin-whitelist",
"ionic-plugin-keyboard",
{
"id": "phonegap-plugin-push",
"locator": "phonegap-plugin-push",
"variables": {
"SENDER_ID": "XXXXXXXXXXXX"
}
},
{
"locator": "https://github.com/mnill/cordova-app-updater.git",
"id": "com.likesmagia.cordova.updater"
}
], project.properties target=android-23
android.library.reference.1=CordovaLib
cordova.gradle.include.1=cordova-plugin-crosswalk-webview/myproject-xwalk.gradle
cordova.gradle.include.2=phonegap-plugin-push/myproject-push.gradle
cordova.system.library.1=com.android.support:support-v13:23+
cordova.system.library.2=com.google.android.gms:play-services-gcm:+ It stops crashing when I stop initializing PushNotification in my JS code. |
Folks are you using the command line to build or Android Studio? I've upgraded everything for my command line builds. Currently running: Android support repository 32 but I cannot duplicate the build error. I'm telling Android Studio to go update everything as well but that may take a while to download so additional information to help figure this out is appreciated. |
Duplicated it. |
Yipes, this seems to be a colossal mistake by Google. Taking out any plugin that depends on v4 support seems to work but that's not a great solution. Still researching, all info and help is appreciated. |
@macdonst
and no references to support-v4 $ grep -r com.android.support plugins
plugins/phonegap-plugin-push/plugin.xml: <framework src="com.android.support:support-v13:23+" /> |
@khamaileon and you are still seeing the crash? If so can you tell me what version of Play Services is installed on your test device? |
|
@khamaileon that's the same crash error for sure. Regarding play services. It should be in your apps section of the settings app. You may need to turn on show system apps in order to see it in the list. |
Google Play services Version 9.0.83 |
@khamaileon same as me, that leads me to believe that crosswalk includes the v4 dependency somewhere. |
|
After downloading Android Api Level updates of name rev. 3 (or something like that) the build has back working. Thanks. |
I got android support repository 32 , but where do i find 1.6.4 plugin is this phonegap push plugin version 1.6.4? Because now i still get this error Error:Failed to resolve: com.android.support:support-v4:23.4.0 |
Upgrading to the latest packages and cleaning up the existing android platform helped me resolved this issue. Google Play Services -> Rev. 30 This is how I did. Open Android SDK Manager and check for any updates required for any of the packages. If so, update all of them. Then in your project's directory, go to /platforms/android/cordova/ and run the command ./clean Recompile the android package and the issue is resolved. |
https://developers.google.com/android/guides/releases Google Play services updated to 9.0.1 The Google Play services version 9.0.1 release is now available. This release fixes the following issues with the version 9.0.0 release: Fixes a class change compilation error with ContextCompat.getNoBackupFilesDir().
https://developers.google.com/android/guides/releases Google Play services updated to 9.0.1 The Google Play services version 9.0.1 release is now available. This release fixes the following issues with the version 9.0.0 release: Fixes a class change compilation error with ContextCompat.getNoBackupFilesDir().
+1 |
App started crashing today after I installed Android library updates. The only thing I could do to fix was to uninstall and reinstall the phonegap-plugin-push plugin and it worked like a charm. |
@nocodedweb see #1591 |
This thread has been automatically locked. |
After Google released the last update to the play store and services 2 days ago, none of my new builds work. They all crash as soon as my app calls the plugin to register.
com.adobe.phonegap.push.PushPlugin$1.run
java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)
PushPlugin.java, line 73
The text was updated successfully, but these errors were encountered: