flutter

A collection of 85 posts
flutter

Fixing `Error (Xcode): Signing for "GoogleSignIn-GoogleSignIn" requires a development team. Select a development team in the Signing & Capabilities editor. [project]/ios/Pods/Pods.xcodeproj`

Today my Flutter project started refusing to compile for iOS with the following errors: Error (Xcode): Signing for "GoogleSignIn-GoogleSignIn" requires a development team. Select a development team in the Signing & Capabilities editor. [project]/ios/Pods/Pods.xcodeproj Error (Xcode): Signing for "gRPC-C++-gRPCCertificates-Cpp" requires a development team. Select a development
1 min read
flutter

Fixing `GoogleSignIn 0x10461abdc -[GIDSignIn signInWithConfiguration:presentingViewController:hint:additionalScopes:callback:] + 228 (GIDSignIn.m:242)` in Flutter iOS

I recently started using flutterfire_ui's SignInScreen, and it was working great for Android and Web, but not iOS. For some reason, when I clicked on "Sign in with Google", it would crash the app, and throw this debug info: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception
2 min read
flutter

Fixing `In plugin 'com.google.gms.google-services' type 'com.google.gms.googleservices.GoogleServicesTask' field 'intermediateDir' without corresponding getter has been annotated with @OutputDirectory.`

Today I tried to recompile a very old Flutter project. Besides migrating to Android 1.12, I had to upgrade the Kotlin library and Gradle like in https://www.wafrat.com/fixing-module-was-compiled-with-an-incompatible-version-of-kotlin/. But then I got a new error: Some problems were found with the configuration of task ':app:
2 min read
flutter

Fixing `The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0`

I usually debug my Flutter apps using the Android Emulator. This time, I used the iOS Simulator. Except it threw this error: note: Using new build system note: Planning note: Build preparation complete note: Building targets in dependency order /my_project/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment
34 min read
flutter

Fixing `permissionhandler/PermissionUtils.java:370: error: cannot find symbol if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && hasPermissionInManifest(context, null, permission )), symbol: variable S, location: class VERSION_CODES`

My app suddenly refused to run on my Android Emulator. The error was: Launching lib/main.dart on sdk gphone64 arm64 in debug mode... WARNING: [Processor] Library '~/.gradle/caches/modules-2/files-2.1/com.github.canardoux/flutter_sound_core/8.4.2/d794510c32a335c61b742367e24e84ea0b0995c8/flutter_sound_core-8.4.2.aar' contains
3 min read