-
Notifications
You must be signed in to change notification settings - Fork 35
Update troubleshooting.md #16
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,3 +19,18 @@ You recently downloaded or updated XCode. | |
| 2. Choose `Legacy Build System` | ||
| 3. Remove `node_modules/react-native/third-party` and | ||
| `node_modules/react-native/third-party-podspecs` | ||
|
|
||
| ## I get Android crashes when using the Reader SDK | ||
|
|
||
| ### The problem | ||
|
|
||
| When there are different versions of Google Play Services, crashes can occur like | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @goblinhorde , can you please take a final check?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The problem description is frustratingly nondescript. Can we be more specific about when the crash occurs and why having different versions of the Play Service causes a conflict? Also, "like" implies there are other possible errors that could occur? If that's true, we should provide a list of known errors that occur with this issue. If that's not true, rephrase to make the problem description definitive. For example: "When there are different versions of Google Play Services on the same device, , and Android will crash with an error." |
||
| `java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/api/Api$zzf;` | ||
|
|
||
| ### Likely cause | ||
|
|
||
| You are using other libraries that use `googlePlayServicesVersion` at something other than "12.0.1" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This plugin take "googlePlayServiceVersion" (no 's' after 'Service'), do you have other dependencies are actually overridden by 'googlePlayServicesVersion' ? How about you try to override the 'googlePlayServiceVersion'(no 's') to a newer version and see if that works? I'm asking to do this because I don't think we should introduce another build variable that this plug doesn't depend on. Alternatively, can you just list your dependencies that conflict with reader sdk, and provide a solution based on that?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 to providing specific details about the environment in which the conflict occurs so it's easier for folks to tell if the possible solution applies to their environment as well. |
||
|
|
||
| ### Solution | ||
|
|
||
| Set `googlePlayServicesVersion = "12.0.1"` in your `android/build.gradle` file. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be more specific about when the crash occurs (when the crash is triggered, it crashes with a specific error, etc.) as there are likely other reasons why Android may crash when building with Reader SDK and we want folks to be able to distinguish which use case matches the problem they are seeing.