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

Issue is occur when i'm trying to login or signup on physical device, i'm using firebaseauth for authentication. I have tried everything but didn't get resolution. #13424

Open
SangeetaSinghDev opened this issue Sep 29, 2024 · 0 comments

Comments

@SangeetaSinghDev
Copy link

Issue is occur when i'm trying to login or signup on physical device, i'm using firebaseauth for authentication. I have tried everything but didn't get resolution.

My flutter version -
Flutter 3.22.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b0850beeb2 (2 months ago) • 2024-07-16 21:43:41 -0700
Engine • revision 235db911ba
Tools • Dart 3.4.4 • DevTools 2.34.3

compileSdkVersion 34
minSdkVersion 23
targetSdkVersion 34

These are the dependencies -
// Firebase
implementation platform('com.google.firebase:firebase-bom:33.3.0')
implementation 'com.google.firebase:firebase-core:21.1.1'
// implementation 'com.google.firebase:firebase-firestore-ktx:25.1.0'
implementation 'com.google.firebase:firebase-auth:23.0.0'
implementation 'com.google.firebase:firebase-common-ktx:21.0.0'
implementation 'com.google.firebase:firebase-common:21.0.0'

// Protobuf
implementation("com.google.firebase:firebase-firestore")
implementation 'com.google.protobuf:protobuf-javalite:3.18.0'  
androidTestImplementation ('androidx.test.espresso:espresso-contrib:3.6.1'){
    exclude module: "protobuf-lite"
}

// Google Play Services
implementation 'com.google.android.gms:play-services-tasks:18.2.0'
implementation 'com.google.android.gms:play-services-basement:18.2.1' 
implementation 'com.google.android.gms:play-services-location:21.3.0'

coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.2'

// Multidex support
implementation 'androidx.multidex:multidex:1.0.3'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.annotation:annotation:1.8.2'
testImplementation("junit:junit:4.13.2")
implementation 'com.android.tools.build:bundletool:1.11.4' 
//FUse the BoM to manage Firebase versions 

androidTestImplementation ('androidx.test.espresso:espresso-contrib:3.6.1'){
    exclude module: "protobuf-lite"
}

pubspec.yaml
firebase_analytics: ^11.3.1
firebase_core: ^3.4.1
cloud_firestore: ^5.4.3 # Use a version that's compatible with other packages
firebase_auth: ^5.3.1 # Adjust this to be compatible with firebase_core
firebase_crashlytics: ^4.1.1
firebase_messaging: ^15.0.4
firebase_storage: ^12.3.0

build.gradle -
buildscript {
ext.kotlin_version = '1.9.0'
ext {
// Update this to a version compatible with your Android Studio
android_gradle_plugin_version = '8.0.2'
}
repositories {
google()
mavenCentral()
// maven { url "https://repo.maven.apache.org/maven2" }
// maven { url "https://dl.google.com/dl/android/maven2" }

}

dependencies {
    classpath 'com.android.tools.build:gradle:8.1.4'
    // START: FlutterFire Configuration
    classpath 'com.google.gms:google-services:4.4.2'
    // END: FlutterFire Configuration
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
}

FATAL EXCEPTION: pool-19-thread-5
[ ] E/AndroidRuntime(27510): Process: com.tutee.delivery, PID: 27510
[ ] E/AndroidRuntime(27510): java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/google/protobuf/GeneratedMessageLite;
[ ] E/AndroidRuntime(27510): at
com.google.firebase.firestore.FirebaseFirestore.(FirebaseFirestore.java:232)
[ ] E/AndroidRuntime(27510): at
com.google.firebase.firestore.FirebaseFirestore.newInstance(FirebaseFirestore.java:207)
[ ] E/AndroidRuntime(27510): at
com.google.firebase.firestore.FirestoreMultiDbComponent.get(FirestoreMultiDbComponent.java:69)
[ ] E/AndroidRuntime(27510): at
com.google.firebase.firestore.FirebaseFirestore.getInstance(FirebaseFirestore.java:178)
[ ] E/AndroidRuntime(27510): at
io.flutter.plugins.firebase.firestore.FlutterFirebaseFirestorePlugin.getFirestoreFromPigeon(FlutterFirebas
eFirestorePlugin.java:320)
[ ] E/AndroidRuntime(27510): at
io.flutter.plugins.firebase.firestore.FlutterFirebaseFirestorePlugin.lambda$documentReferenceSet$13(Flutte
rFirebaseFirestorePlugin.java:610)
[ ] E/AndroidRuntime(27510): at
io.flutter.plugins.firebase.firestore.FlutterFirebaseFirestorePlugin$$ExternalSyntheticLambda3.run(Unknown
Source:6)
[ ] E/AndroidRuntime(27510): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
[ ] E/AndroidRuntime(27510): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
[ ] E/AndroidRuntime(27510): at java.lang.Thread.run(Thread.java:919)
[ ] E/AndroidRuntime(27510): Caused by: java.lang.ClassNotFoundException: Didn't find class
"com.google.protobuf.GeneratedMessageLite" on path: DexPathList[[zip file
"/data/app/com.tutee.delivery-BcTRHZX_248shyONMz8tqg==/base.apk"],nativeLibraryDirectories=[/data/app/com.
tutee.delivery-BcTRHZX_248shyONMz8tqg==/lib/arm64,
/data/app/com.tutee.delivery-BcTRHZX_248shyONMz8tqg==/base.apk!/lib/arm64-v8a, /system/lib64,
/system/product/lib64]]
[ ] E/AndroidRuntime(27510): at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:230)
[ ] E/AndroidRuntime(27510): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
[ ] E/AndroidRuntime(27510): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
[ ] E/AndroidRuntime(27510): ... 10 more
[ +2 ms] W/DynamiteModule(27510): Local module descriptor class for
com.google.android.gms.providerinstaller.dynamite not found.
[ +4 ms] I/DynamiteModule(27510): Considering local module
com.google.android.gms.providerinstaller.dynamite:0 and remote module
com.google.android.gms.providerinstaller.dynamite:0
[ ] W/ProviderInstaller(27510): Failed to load providerinstaller module: No acceptable module
com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0.
[ +11 ms] I/.tutee.deliver(27510): The ClassLoaderContext is a special shared library.
[ +21 ms] V/NativeCrypto(27510): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 295
native methods...
[ +11 ms] W/.tutee.deliver(27510): Accessing hidden method
Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (greylist, reflection, allowed)
[ +37 ms] I/ProviderInstaller(27510): Installed default security provider GmsCore_OpenSSL
[ +205 ms] D/SessionLifecycleClient(27510): Sending lifecycle 2 to service
[ ] D/SessionLifecycleService(27510): Activity backgrounding at 5484313
[ +44 ms] I/Process (27510): Sending signal. PID: 27510 SIG: 9

Originally posted by @SangeetaSinghDev in #13422

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

No branches or pull requests

1 participant