-
Notifications
You must be signed in to change notification settings - Fork 1.9k
App crashes with the latest updates of Android SDK with plugin v-1.9.2 #1591
Comments
@razam217 what version of Google Play Services and Support Library are you building with? I have the latest Android SDK, etc and my app does not crash. |
Google Play Services: 39 |
Node Version 6.9.5 |
I confirm its happening to me too after updating to the sdk. It crashes saying: java.lang.NoSuchMethodError: No static method getNoBackupFilesDir(Landroid/content/Context;)Ljava/io/File; in class Lcom/google/android/gms/common/util/zzw; or its super classes (declaration of 'com.google.android.gms.common.util.zzw' I there anyway to downgrade the sdk until this gets fixed? I've searched high and low but could not find a proper way to do it. Just downgrading the tools will not fix it. It like you need the entire previous sdk. |
That change seems to cause Phone Gap Build to fail with the following error:
Of course, I have no way to accept the license agreement on behalf of PGB. |
My issue is fixed, before I was using sdk dowloaded manually. When I used the SDK downloaded by Android SDK, the issue fixed, I guess my SDK had something un-necessary packages installed or something like that. |
I would suggest uninstall Android studio and install it once again, and then try to build your project again. It will download the latest SDK with the minimal required dependencies. |
Its not this that causing the problem, I've tracked it down. Its the google analytics plugin. Somehow that plugin causes conflicts between the google play services version. Changing: P.S: |
@pitAlex can you link to the analytics plugin so I can take a look?
…--
Simon Mac Donald
http://simonmacdonald.com
|
I use this one : https://github.com/danwilson/google-analytics-plugin |
Ah this explains why my app wouldn't run anymore? Can you publish a new version on NPM please? |
I can confirm the issue using 1.9.3 and latest android sdk stuff. This |
@kaynz but how can I use this fix without a new version of phonegap-plugin-push? If I change the plugin.xml I won't see the changes reflected with cordova build or cordova run? |
If you want to use/test what's been commited without having to wait for an official release, you can always install directly from github: cordova plugin add https://github.com/phonegap/phonegap-plugin-push --variable SENDER_ID="XXXXXXX" |
I bumped the plugin to 1.9.4 for folks running into this issue. |
Is there any solution to Phonegap Build users? I'm currently using PhoneGap Build CLI-6.3.0 for android and phonegap-plugin-push version 1.8.4. |
Phonegap Build works fine with 1.9.3, I use it myself. Just don't use 1.9.4 yet until PhoneGap Build has Google Play Services 10+ support. |
Actually i just tested my application with push plugin version 1.9.4, cli-6.5.0 and push notifications are working, so what is this Google Play Services 10+ support? |
If it builds successfully in Phonegap Build with 1.9.4, then that means Adobe has added Play Services 10 support to their system. It wasn't available there a few days ago, so if you say that it built without errors in PGB, then they probably recently updated it. |
This thread has been automatically locked. |
Expected Behaviour
Actual Behaviour
I just updated my sdk packages, cordova and cordova-platforms, and updated phonegap-plugin-push to 1.9.2 and now I can't run my app. It is crashing. Also I can see a exception in my logs:
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Just install latest updates of sdk and try to run on android.
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 5.0.1
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Samsung Galaxy Note III
Cordova CLI version and cordova platform version
Plugin version
The text was updated successfully, but these errors were encountered: