react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.12k stars 876 forks source link

java.lang.ClassNotFoundException: com.google.android.gms.auth.api.signin.internal.SignInConfiguration #1206

Closed muhammadashfaq closed 8 months ago

muhammadashfaq commented 9 months ago

Hey Maintainers

I am using Google signin in one of my app in Production. The issue is that it worked perfect on debug and release build (apk.)

But when i build aab file to Google play internal test or Play store. I got the following error in the Android studion after errors of deugging

Class not found when unmarshalling: com.google.android.gms.auth.api.signin.internal.SignInConfiguration
                                                                                                    java.lang.ClassNotFoundException: com.google.android.gms.auth.api.signin.internal.SignInConfiguration

Using following version

"@react-native-google-signin/google-signin": "^9.0.2",

react-native info repsonse

System:
  OS: macOS 13.6
  CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Memory: 506.38 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 16.20.2
    path: ~/.nvm/versions/node/v16.20.2/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 8.19.4
    path: ~/.nvm/versions/node/v16.20.2/bin/npm
  Watchman:
    version: 2023.09.04.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.13.0
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK:
    API Levels:
      - "30"
      - "33"
      - "34"
    Build Tools:
      - 30.0.2
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-30 | Google APIs Intel x86 Atom
      - android-30 | Google Play Intel x86 Atom
      - android-31 | Google Play Intel x86_64 Atom
      - android-34 | Google APIs Intel x86_64 Atom
    Android NDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10671973
  Xcode:
    version: 15.0/15A240d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.6
    path: /usr/bin/javac
  Ruby:
    version: 3.2.2
    path: /usr/local/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.71.5
    wanted: 0.71.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Does anyone have solution or face same kind of issue ?

Logs are from Play store published build attached device with Android device.

vonovak commented 9 months ago

Hello and thanks for reporting, What device are you using? Thank you 🙂

muhammadashfaq commented 9 months ago

@vonovak It's on any android device. Issue is after app publish on play store, google throws this error.

Strange, this error is not thrown in the release apk

vonovak commented 9 months ago

Hello, It's hard to tell without a repro. My guess was that maybe that was some Huawei device without GMS. Another guess would be that you're using proguard or some optimizing tool that mistakenly removes code from your app.

Hope this helps, thank you.