flutter

A collection of 85 posts
flutter

Fixing `com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: The number of method references in a .dex file cannot exceed 64K.` in Flutter when using Firestore

I created a new project, integrated Firestore to it, and on the first run, I got this error. A quick search got me to https://github.com/flutter/flutter/issues/21005. The error also shares this link: https://developer.android.com/tools/building/multidex.html. The relevant section is "Configure
flutter

Fixing Specs satisfying the `sqflite (from `.symlinks/plugins/sqflite/ios`)` dependency were found, but they required a higher minimum deployment target

I tried compiling my app on a new environment, and it failed when installing iOS pods with this error: Specs satisfying the sqflite (from .symlinks/plugins/sqflite/ios) dependency were found, but they required a higher minimum deployment target. Longer logs: % flutter build ios --release --no-codesign ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Warning ────────────────────────────────────────────────────────────────────────────── Your Flutter application
4 min read
flutter

Fixing `flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.4/ios/Classes/FLTFirebaseAuthPlugin.m:505:38: error: no known class method for selector 'credentialWithProviderID:IDToken:rawNonce:accessToken:'`

TLDR Run flutter clean. Long version I got this error when compiling my app for iOS. A quick search pointed me to https://github.com/FirebaseExtended/flutterfire/issues/1679 from Dec 2019. Apparently firebase_auth: ^0.15.3 doesn't compile in iOS? I'm on 0.15.4. They suggest to
6 min read
flutter

Fixing `Execution failed for task ':firebase_auth:compileReleaseJavaWithJavac'. java.lang.NullPointerException (no error message)`

My Flutter app stopped compiling today, with the following exception: Execution failed for task ':firebase_auth:compileReleaseJavaWithJavac'. > java.lang.NullPointerException (no error message) A search led me to https://github.com/flutter/flutter/issues/27090, which states you should migrate to AndroidX by setting two variables in android/gradle.
1 min read