You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the application is opening, I am pulling some data from firestore in the background. After pulling that data, this error occurs. However, when I try to pull other data from firestore for the second time while the app is open, this error does not occur. I started to encounter this problem after upgrading Flutter. This error message does not harm the application's operation, but I cannot understand why it occurs.
Reproducing the issue
While the application is opening, I am pulling some data from firestore in the background. After pulling that data, this error occurs. This error only occurs the first time when retrieving data from the firestore while the application is open. When the app later pull data from Firestore while the application is running, I do not get this error again in that session.
Firebase Core version
3.6.0
Flutter Version
3.24.3
Relevant Log Output
E/GoogleApiManager( 9077): Failed to get service from broker.
E/GoogleApiManager( 9077): java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'.
E/GoogleApiManager( 9077): at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
E/GoogleApiManager( 9077): at android.os.Parcel.createException(Parcel.java:3041)
E/GoogleApiManager( 9077): at android.os.Parcel.readException(Parcel.java:3024)
E/GoogleApiManager( 9077): at android.os.Parcel.readException(Parcel.java:2966)
E/GoogleApiManager( 9077): at amrz.a(:com.google.android.gms@[email protected] (190800-681941525):36)
E/GoogleApiManager( 9077): at amqg.z(:com.google.android.gms@[email protected] (190800-681941525):143)
E/GoogleApiManager( 9077): at alxh.run(:com.google.android.gms@[email protected] (190800-681941525):54)
E/GoogleApiManager( 9077): at android.os.Handler.handleCallback(Handler.java:958)
E/GoogleApiManager( 9077): at android.os.Handler.dispatchMessage(Handler.java:99)
E/GoogleApiManager( 9077): at bqww.mv(:com.google.android.gms@[email protected] (190800-681941525):1)
E/GoogleApiManager( 9077): at bqww.dispatchMessage(:com.google.android.gms@[email protected] (190800-681941525):5)
E/GoogleApiManager( 9077): at android.os.Looper.loopOnce(Looper.java:205)
E/GoogleApiManager( 9077): at android.os.Looper.loop(Looper.java:294)
E/GoogleApiManager( 9077): at android.os.HandlerThread.run(HandlerThread.java:67)
Error message is above.
Also, before this error, before I updated Flutter and now I am getting these warning logs related to Firestore. This is below.
W/DynamiteModule( 9077): Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found.
I/DynamiteModule( 9077): Considering local module com.google.android.gms.providerinstaller.dynamite:0 and remote module com.google.android.gms.providerinstaller.dynamite:0
W/ProviderInstaller( 9077): Failed to load providerinstaller module: No acceptable module com.google.android.gms.providerinstaller.dynamite found. Local version is 0 and remote version is 0.
D/nativeloader( 9077): Configuring clns-7 for other apk /system/framework/org.apache.http.legacy.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/lib/x86_64:/data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.gms
D/nativeloader( 9077): Configuring clns-8 for other apk /system/framework/com.android.media.remotedisplay.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/lib/x86_64:/data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.gms
I/r_application_1( 9077): Compiler allocated 4478KB to compile void android.view.ViewRootImpl.performTraversals()
W/r_application_1( 9077): Loading /data/misc/apexdata/com.android.art/dalvik-cache/x86_64/system@[email protected]@classes.odex non-executable as it requires an image which we failed to load
D/nativeloader( 9077): Configuring clns-9 for other apk /system/framework/com.android.location.provider.jar. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/lib/x86_64:/data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.gms
D/ApplicationLoaders( 9077): Returning zygote-cached class loader: /system_ext/framework/androidx.window.extensions.jar
D/ApplicationLoaders( 9077): Returning zygote-cached class loader: /system_ext/framework/androidx.window.sidecar.jar
W/r_application_1( 9077): Loading /data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/oat/x86_64/base.odex non-executable as it requires an image which we failed to load
D/nativeloader( 9077): Configuring clns-10 for other apk /data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/lib/x86_64:/data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.google.android.gms
W/ProviderInstaller( 9077): Failed to report request stats: com.google.android.gms.common.security.ProviderInstallerImpl.reportRequestStats [class android.content.Context, long, long]
D/nativeloader( 9077): Load /data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/base.apk!/lib/x86_64/libconscrypt_gmscore_jni.so using ns clns-10 from class loader (caller=/data/app/~~D0otSPDQ6ze3M8w6brTTrA==/com.google.android.gms-xN_U7Ba9Fcm8BTSBEE9ncA==/base.apk!classes3.dex): ok
V/NativeCrypto( 9077): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 305 native methods...W/r_application_1( 9077): Accessing hidden method Ldalvik/system/VMStack;->getStackClass2()Ljava/lang/Class; (unsupported, reflection, allowed)I/egsw.a ( 9077): Unable to retrieve flag snapshot for com.google.android.gms.providerinstaller#com.google.android.gms, using defaults.W/r_application_1( 9077): Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (unsupported, reflection, allowed)I/ProviderInstaller( 9077): Installed default security provider GmsCore_OpenSSLD/TrafficStats( 9077): tagSocket(137) with statsTag=0xffffffff, statsUid=-1W/r_application_1( 9077): Accessing hidden field Ljava/net/Socket;->impl:Ljava/net/SocketImpl; (unsupported, reflection, allowed)W/r_application_1( 9077): Accessing hidden method Ljava/security/spec/ECParameterSpec;->setCurveName(Ljava/lang/String;)V (unsupported, reflection, allowed)
Flutter dependencies
pubspec.yaml :
name: flutter_application_1
description: "A new Flutter project."
Is there an existing issue for this?
Which plugins are affected?
Cloud Functions
Which platforms are affected?
Android
Description
While the application is opening, I am pulling some data from firestore in the background. After pulling that data, this error occurs. However, when I try to pull other data from firestore for the second time while the app is open, this error does not occur. I started to encounter this problem after upgrading Flutter. This error message does not harm the application's operation, but I cannot understand why it occurs.
Reproducing the issue
While the application is opening, I am pulling some data from firestore in the background. After pulling that data, this error occurs. This error only occurs the first time when retrieving data from the firestore while the application is open. When the app later pull data from Firestore while the application is running, I do not get this error again in that session.
Firebase Core version
3.6.0
Flutter Version
3.24.3
Relevant Log Output
Flutter dependencies
pubspec.yaml :
name: flutter_application_1
description: "A new Flutter project."
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ^3.5.3
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.8
firebase_core: ^3.6.0
cloud_firestore: ^5.4.4
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter:
uses-material-design: true
Additional context and comments
main.dart :
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
await sendFeedback();
runApp(const MyApp());
}
Future sendFeedback() async {
Map<String, dynamic> feedback = {
'subject': 'test',
'description': 'test',
'e-mail': 'test',
'platform': 'test',
'date': FieldValue.serverTimestamp(),
};
try {
await FirebaseFirestore.instance.collection("feedbackTest").add(feedback);
} catch (e) {
print(e.toString());
}
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@OverRide
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@OverRide
State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
int _counter = 0;
void _incrementCounter() {
_counter++;
}
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
),
);
}
}
AndroidManifest.xml :
The text was updated successfully, but these errors were encountered: