I tried some of the solutions posted here without success, and I really did not want to delve into node_modules , but this is what I did, as my project is time sensitive. At least until a permanent solution is found.
At my build.gradle application build.gradle I updated all Google dependencies to version 11.8.0, for example. compile "com.google.android.gms:play-services-base:11.8.0" . Then in react-native-onesignal build.gradle :
I changed these lines:
compile 'com.google.android.gms:play-services-gcm:+' compile 'com.google.android.gms:play-services-analytics:+' compile 'com.google.android.gms:play-services-location:+'
to the same specific version:
compile 'com.google.android.gms:play-services-gcm:11.8.0' compile 'com.google.android.gms:play-services-analytics:11.8.0' compile 'com.google.android.gms:play-services-location:11.8.0'
The bug seems to be fixed. If someone has a better solution, I will gladly implement this in the project. In the meantime, I hope this helps someone else too.
source share