-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Including Google Analytics crashes the app #4172
Comments
Extracting the APK reveals that it contains the following inside lib,
While when building without Google Analytics, it contains following,
|
Don't understand why adding Google analytics would remove the native libraries from the APK. Can you debug what part of the Google analytics setup does that? Can you try again to double check / try unzipping the APK and adding them back? |
Could this be related to #2814 ? |
Sorry for late reply. Was busy with other stuff. Will try to reproduce this with a new project and post the results. |
For what it's worth, I've been trying to use google sign in, not google analytics, but I have a very similar issue. Here is that documentation: Oddly enough, when I build with 1.5.0-beta3 as that page instructs at the time of writing, my apk contains NO libs directory, and hence crashes with the issue listed at #2814 Building with 1.5.0 (not beta) does include a libs folder, though that build fails with error, 'won't run unless you update google play services'. I realize that is perhaps not the most helpful, but perhaps 1.5.0 will be compatible? |
hi, This instantly seems to remedy the issue (as @calflegal mentioned) |
Excellent. @scgough are you running on the emulator or on a device? Would you mind sharing your Google Play services version as listed on the device in Settings > Apps > Google Play services? I'm running in the emulator, Google Play services version 8.1.85 (2247395-470) My language in my comment was a little incorrect...my build doesn't fail, I get an error message of 'APPNAME won't run unless you update Google Play services' when I run the app on the emulator... |
Sure @calflegal I'm running on a device (well, 2) and they both have: v8.3.01 (2385995-036) |
@scgough Thanks. Going to try it now. |
@scgough Seems to be working. Thanks a lot. |
great. glad that helped @satya164 |
Not sure if I should close this issue or not. This seems like a GA issue, but need to do more investigation on why it was even happening. |
Google Analytics integration in android apps causes Android Not Responding in some android devices,why? |
When I try to include the Google analytics library in an React Native app, it crashes.
Here are the intsructions I followed - https://developers.google.com/analytics/devguides/collection/android/v4/
Here is the log,
Any ideas?
The text was updated successfully, but these errors were encountered: