Closed kcibdev closed 2 years ago
No a solution, but here's my error report. I saw at other closed threads something about this could happen when google services is not updated, but in my case error just sart when I enable the MultiDex at build.gradle
buildscript {
.....
repositories {
google()
......
}
......
dependencies {
.......
classpath 'com.google.gms:google-services:4.3.5'
}
}
.....
allprojects {
repositories {
google()
....
}
}
and at src/build.gradle:
......
apply plugin: 'com.google.gms.google-services'
.......
dependencies {
.......
implementation platform('com.google.firebase:firebase-bom:26.4.0')
implementation 'com.google.firebase:firebase-analytics-ktx'
}
firebase_core: ^0.7.0
firebase_auth: ^0.20.0+1
At this point any code like Firebase.initializeApp()
or FirebaseAuth.instance.signInAnonymously()
should work fine,
cloud_firestore: ^0.16.0
But... It will be required to active multidex at your build.gradle in order to build.
defaultConfig {
.........
multiDexEnabled true
}
After multidex is enabled, errors start to be dropped. You don't need to use clod_firestore, just Firebase.initializeApp()
will result in this warning messages, at least for me:
W/DynamiteModule(17125): Local module descriptor class for providerinstaller not found.
I/DynamiteModule(17125): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller(17125): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
And if I try to add some document to any collection:
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
W/om.hagans.smok(17125): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed)
W/System (17125): Ignoring header X-Firebase-Locale because its value was null.
Still documents are written at the firestore but sometimes (so much times!) apps break while processing any firebase feature.
Here is my flutter doctor:
[√] Flutter (Channel beta, 1.25.0-8.3.pre, on Microsoft Windows [Versión 10.0.18363.1316], locale es-ES)
• Flutter version 1.25.0-8.3.pre at C:\flutter
• Framework revision 5d36f2e7f5 (3 weeks ago), 2021-01-14 15:57:49 -0800
• Engine revision 7a8f8ca02c
• Dart version 2.12.0 (build 2.12.0-133.7.beta)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\AndroidSDK
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = C:\AndroidSDK
• ANDROID_SDK_ROOT = C:\AndroidSDK
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] IntelliJ IDEA Community Edition (version 2020.3)
• IntelliJ at C:\Users\ruben\AppData\Local\JetBrains\IntelliJ IDEA Community Edition 2020.3.2
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin version 203.6912
[√] VS Code (version 1.52.1)
• VS Code at C:\Users\ruben\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (4 available)
• Aquaris C (mobile) • CX004705 • android-arm • Android 8.1.0 (API 27)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.104
• Edge (web) • edge • web-javascript • Microsoft Edge 88.0.705.56
• No issues found!
And I've updated google services. IS NOT GOOGLE SERVICES ISSUE, at least in this case all started going wrong after enable multidex.
This is biting me too -- but only the first time it is called. The provider works correctly on subequent calls:
inside onPress:
context.read
Tried this both ways, and results are the same -- complains about missing provider on the first button press:
Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (greylist,core-platform-api, reflection, allowed) W/DynamiteModule( 3343): Local module descriptor class for providerinstaller not found. I/DynamiteModule( 3343): Considering local module providerinstaller:0 and remote module providerinstaller:0 W/ProviderInstaller( 3343): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
Subsequent button presses work.
Hello, I have this problem as well, with the logs similar to the two already posted here.
I am facing same issue
I am stuck with this issue for 2 days.
having the same issue but firebase-function related.
Anyone have solution for that? I updated my emulator's Google Play Services but it is not working
me toooo
I am also facing the same issue on my android app .
me too
Maybe the way to fix this is to either change project folder or change emulator cause after changing folder and using genymotion instead of android studio emulator, I haven't been seeing this error at all.
Try to uninstall app from android emulator and rebuild will help resolve the issue.
I fixed this by recode provider part after update to flutter v2.0
Try to uninstall app from android emulator and rebuild will help resolve the issue.
it solves problem temporarily however error still continues even if app runs smoothly
I fixed this by recode provider part after update to flutter v2.0
Could you share your provider part?
I'm facing this same issue, when I try to sign in user, in my firebase emulator. How to fix it, I can't work because of this.
any solutions for this issue?? why there are no answers on the internet, I'm stuck for 4 days.
any solutions for this issue?? why there are no answers on the internet, I'm stuck for 4 days.
Try deleting the app on your phone, or invalidate cache and restart
any solutions for this issue?? why there are no answers on the internet, I'm stuck for 4 days.
Me too... I stuck for more than a week. 😫
same issue and due to this apk on real device not working, even Im not using provider in my app.
Me too. I am having this issue. I am not even using provider in current project but I do have it installed for a different project.
Me too., having same issue
I'm facing the same issue, any solutions for this issue?
I'm facing the same problem i dont know what to do please HELP!!
add me on this error. :( wasting my days fixing this error.
anything guys?
I fixed this by recode provider part after update to flutter v2.0
@Kareem21227gg Could you please share your provider part?
You just need to clean the project and rebuild it And don't forget to delete the app from your phone @utsavDave97 I hope it work👍
Yes Please Help even I'm facing the same issue since morning.. after I click Login I get redirected to the previous page that is the navigation drawer from where I selected Login, in order to log in to a user account .
I kinda fixed it....can anyone show me the code where they get the Document Snapshot
?
yeah sure git_doubt.txt.. This is my code... thank you in advance 💯
I kinda fixed it....can anyone show me the code where they get the
Document Snapshot
?
Document is now Doc in the latest update.
did anyone find a solution ? I'm facing the same problem
alguém encontrou uma solução? Estou enfrentando o mesmo problema
I used notifyListeners (); after getting the documents in firebase and solved my problem :D !!!
@HayberGabriel can you explain please iam facing same error
Have the exact same issue. To be clear, is this an emulator/device-related issue only?
Same here
Have the exact same issue. To be clear, is this an emulator/device-related issue only?
No, i am facing same problem with real device
You just need to clean the project and rebuild it And don't forget to delete the app from your phone @utsavDave97 I hope it work👍
It Works Fine , Thank you ❤️
Has anybody found a solution? I saw that somebody told it can be solved by running flutter clean
, deleting the app from your phone and rebuilding it again, but it didn't work for me
I don't know if this will work. I got this error a few weeks ago and managed to get through it and it hasn't recurred. My usual SOP when doing a flutter clean because of previous flutter.h errors:
cd ios
add deleting the app and starting completely fresh, could help?
facing the same issue on a real device, none of the workarounds worked for me
I have started facing the same issue too, can confirm the app was working fine even with the firebase auth and cloud, but now, it works as expected in the app-debug but only auth works in app-release, but firestore doesn't, I dont even use provider.
Facing the same issue.
I am having the same problem.
I encountered the same issue but it appears the Stack Overflow answer from here fixed it for me. I added <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
before the opening <application>
to project_folder/android/app/src/main/AndroidManifest.xml
.
Then I stopped and restarted VSC debugger and it seems to work now. I did not need to uninstall the app.
@BrightCode1 Could you maybe change the tags of this issue? The tags suggest this is an issue with the docs but it is obviously not and I think FLutterFire team cares less about documentation issues than breaking changes. Tysm :)
i have the same issue any one have proper solutions?
Hey @BrightCode1, could you please show me the error you're receiving? The logs you provided only show warnings. e.g. W/DynamiteModule(20683): Local module descriptor class for providerinstaller not found
.
At the very least a minimum reproducible sample is required. Thank you.
I have this form where user registers his/her details and saves it in google firestore, which actually works because the details are stored in firestore and i can log in with those details if i want but i keep getting this error whenever i submit the details.
I have used both emulator and my mobile device (which is what am using for this error above) to test it and its still the same flutter doctor -v
flutter run --verbose
dependencies