![]() ![]() You can find a working demo for this here, in order to run the app you just need to add your own google-services.json, and specify an API KEY for google maps geolocation API. Implementation ':firebase-messaging'ĪndroidTestImplementation ':junit:1.1.2'ĪndroidTestImplementation ':espresso-core:3.3.0' Implementation platform(':firebase-bom:26.3.0') ![]() Implementation ":kotlin-stdlib-jdk7:$kotlin_version" But I get this error: Could not find :google-services:4.2.0. On android/app/adle add also the following: Asked Viewed 23k times Part of Google Cloud Collective 62 today I was trying to update :google-services to 4.2.0 from 4.1.0 as it's the latest version and recommended by firebase. Before closing the dashboard, ensure that authentication services for Firebase and Google are enabled as we will use.Even then I had some package conflict in firebase-messaging and firebase-auth, so I removed the versions from them in pubspec.yaml (just kept them as firebasemessaging: and firebaseauth: respt ). Did a flutter clean on shell, and Invalidate and Restart on IDE. Add google-services.json in your flutter_app/android/app directory.Ĭlasspath ':gradle:3.5.0'Ĭlasspath ':google-services:4.3.4'Ĭlasspath ":kotlin-gradle-plugin:$kotlin_version"Īpply from: "$flutterRoot/packages/flutter_tools/gradle/adle" After this I had to do a flutter pub upgrade -major-versions.The actual step that is different and solved the issue is the last High level for the sake of keeping my answer consistent. So, in case you are facing the same problem in Flutter, below steps solved the issue for me.ĭisclaimer: first steps are the same as described in the documentationĪnd every answer/tutorial found online. Google play services library on SDK Manager:Įnded up on this thread while trying to integrate Firebase with a Flutter application. If you add support for a new platform in your Flutter app (e.g. ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'Ĭompile fileTree(include:, dir: 'libs')Ĭompile ':appcompat-v7:24.2.1'Ĭompile ':design:24.2.1'Ĭompile ':firebase-ads:9.6.1'Ĭompile ':firebase-core:9.6.1'Ĭompile ':play-services:9.6.1'Īpply plugin: '-services'Īdd classpath to the project's gradle: classpath ':google-services:3.0.0' You will be logged in to the Firebase console where you need to set up your project. platform-android Android applications specifically. The problem still occurs and I dont know what to change. I changed :google-services:4.2.0 to 3.2.1 in my adle file but that did not helped. It successfully creates the account but then app crashes. JavaMaxHeapSize "4g" //Here stablished how many cores you want to use your android studi 4g = 4 cores Visit and log in with your Google account credentials. p: firebaseperformance Firebase Performance plugin p: firebase Firebase plugins. My app crashes whenever I try to send create a new user with email and password with firebaseauth package. Your apply plugin: '-services' in app.gradle looks like this: apply plugin: ''ĪpplicationId "" Im trying to implement Firebase in my app, but facing problems with finding the google-services: FAILURE: Build failed with an exception. firebasecoreplatforminterface, firebasecoreweb, flutter, meta. Homepage Repository (GitHub) View/report issues Contributing. LocalPropertiesFile.You can find the correct dependencies here apply changes to app.gradle and adle and tell me about this, greetings! Flutter plugin for Firebase Core, enabling connecting to multiple Firebase apps. Project.buildDir = "$"Īpp/adle def localProperties = new Properties()ĭef localPropertiesFile = rootProject.file('local.properties') Project ':google_api_availability' -> :kotlin-gradle-plugin:1.2.71Ĭlasspath ':gradle:3.3.1'Ĭlasspath ':google-services:4.2.0' The following dependencies do not satisfy the required version: Bug report In my Flutter app project, the 'bundleid' that exists in the 'google-services.json' is not the same as CFBundleIdentifier in ist and BUNDLEID in the 'ist' Describe the bug In the firebase project. ![]() When I run flutter run I get The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher. I am trying to add firebase dependencies. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |