Onesignal-android-sdk: Gradle Plugin com.google.gms:google-services:3.3.x Bug - java.lang.NumberFormatException: For input string: " 12"

Created on 13 May 2018  路  2Comments  路  Source: OneSignal/OneSignal-Android-SDK

Description:

i'm importing the onesignal in mt project and im getting this error :

Caused by: java.lang.NumberFormatException: For input string: " 12"

i'm using the last version

implementation 'com.onesignal:OneSignal:3.9.0'

and i'm also using :

classpath 'com.google.gms:google-services:3.3.1'

implementation 'com.google.android.gms:play-services-analytics:15.0.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.1'

screenshot 51

Compatibility Issue

Most helpful comment

@mjalijani com.google.gms:google-services:3.3.1 has a bug where it is not compatible with some projects.

This is noted in this open Google Issue
https://issuetracker.google.com/u/1/issues/79230924

OneSignal does not need this Gradle plugin so you can remove it if you don't need it for anything else. Or downgrade to 3.2.1.

Update (2018-05-29): Google released com.google.gms:google-services:4.0.1, updating to this version may also fix this issue but we have yet to confirm this

All 2 comments

@mjalijani com.google.gms:google-services:3.3.1 has a bug where it is not compatible with some projects.

This is noted in this open Google Issue
https://issuetracker.google.com/u/1/issues/79230924

OneSignal does not need this Gradle plugin so you can remove it if you don't need it for anything else. Or downgrade to 3.2.1.

Update (2018-05-29): Google released com.google.gms:google-services:4.0.1, updating to this version may also fix this issue but we have yet to confirm this

@mjalijani I am no long able to reproduce this issue with com.google.gms:google-services:4.0.1 so closing this issue.

Was this page helpful?
0 / 5 - 0 ratings