Skip to content
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

bug(authentication): NoClassDefFoundError #800

Closed
5 of 17 tasks
merbin2012 opened this issue Jan 18, 2025 · 6 comments
Closed
5 of 17 tasks

bug(authentication): NoClassDefFoundError #800

merbin2012 opened this issue Jan 18, 2025 · 6 comments

Comments

@merbin2012
Copy link

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Functions
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

Version

6.3.1

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

capacitor.config.json file

  "plugins": {

    "FirebaseAuthentication": {
      "providers": ["google.com"],
      "skipNativeAuth": false
    },

google-login.js

import { FirebaseAuthentication } from '@capacitor-firebase/authentication';


export const signInWithGoogle = async () => {
    const result = await FirebaseAuthentication.signInWithGoogle();
    debugger;
    return result.user;
  };

While open the app, the app crashes with the following error

Image

"providers": ["google.com"]," => If I am not give this value or wrong value like "google.co" app is not crashed.

Expected behavior

App should not crashed

Reproduction

https://github.com/capawesome-team/.capacitor-app

Steps to reproduce

capacitor

Other information

No response

Capacitor doctor

Capacitor Doctor

Latest Dependencies:

@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0

Installed Dependencies:

@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/ios: 6.2.0
@capacitor/android: 6.2.0

[success] Android looking great! �

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
Copy link
Contributor

This issue has been labeled as needs: reproduction. This label is added to issues that need a code reproduction.

Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so we can debug the issue.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for us to reproduce the issue.

@robingenz robingenz changed the title bug: bug(authentication): NoClassDefFoundError Jan 18, 2025
@robingenz
Copy link
Member

Maybe this helps you: #456 (comment)

@merbin2012
Copy link
Author

@robingenz I did not expect this much of a speed response, very good experience.

Thank you very much

@robingenz
Copy link
Member

@merbin2012 You're welcome! Feel free to check out Capawesome Cloud if you are ever looking for a live update solution.

@merbin2012
Copy link
Author

merbin2012 commented Jan 18, 2025

@robingenz
Sorry for distrubing
Now I facing the following message, after selecting the account

result FirebaseAuthentication.signInWithGoogle (#109732929)
VM3:350  {message: '10: '}message: "10: "[[Prototype]]: Object
(anonymous) @ VM3:350
returnResult @ VM3:934
win.androidBridge.onmessage @ VM3:922

@robingenz
Copy link
Member

robingenz commented Jan 18, 2025

@merbin2012 You need to set the correct SHA1, see https://stackoverflow.com/a/49450870/6731412. Please create a discussion if you have more questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants