Comments (3)
Can you please share your android/build.gradle file?
and also android/app/build.gradle
from flutterfire.
Sure!
android/build.gradle
buildscript {
ext.kotlin_version = '1.2.71'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
android/app/build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 28
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.app"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
Thanks for the help.
from flutterfire.
Hi @danielnovograd
I see there's an open issue addressing the case you described.
Please follow up on that issue,
I'm closing the current one as duplicate.
If you disagree please write in the comments
and I will reopen it.
Thank you
from flutterfire.
Related Issues (20)
- 🐛 [REMOTE_CONFIG] `null check operator used on a null value` while calling `setConfigSettings` HOT 6
- 🐛 [firebase_core] Add a method a `FirebaseException.toString` method but without the stack trace HOT 1
- 🐛 [FIREBASE_APP_CHECK] error on get token in FLutter web HOT 1
- [FirebaseAuth]: Windows app crashes when trying to verify email
- io.flutter.plugins.firebase.messaging.b.d (Unknown Source:22) HOT 4
- test
- [firebase_ml_model_downloader]: does model re-downloads on app upgrade HOT 5
- Flutter Firebase my Android apiKey is different in Firebase Google json file and Google cloud
- [firebase_auth]: authDomain not working on mobile despite announced support HOT 2
- [firebase_auth]: Locale value not sent in signup request HOT 6
- cloud_firestore: ^4.15.9 Showing errors HOT 3
- [cloud_firestore] Retrieving a document from cache that doesn't exist throws an exception HOT 1
- 🐛 [flutterfire] Update deps for JS across all packages to match most recent flutter version HOT 3
- [firebase_storage]: <TypeError: Cannot read properties of undefined (reading 'getStorage')> HOT 6
- [firebase_messaging]: IOS Notification Images setup problem HOT 1
- [firebase_core]: <Unhandled Exception: PlatformException(java.lang.Exception: Failed to load FirebaseOptions> HOT 3
- 🐛 [firebase_analytics] Request for Release Including Recent Consent Changes HOT 1
- [firebase_auth] Firestore crash on user authentication on iOS HOT 3
- [firebase_auth]: Failure to Properly Unlink Google Authentication Provider from User Account. HOT 2
- [firebase_remote_config]: When restarting the app, onUpdateConfig stream subscription is not released. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutterfire.