Closed lyqiai closed 3 years ago
Hi @lyqiai
Could you please provide your flutter pub deps -- --style=compact
, pubspec.yaml
and flutter run -v
logs (in a plain text file if they are too long)?
Thank you
Your flutter run -v
logs end with just
[ +23 ms] Target file "lib/main.dart" not found.
Could you provide the logs with the error you are experiencing?
I had this error and found out I forgot to add this dependency to my app gradle
dependencies { implementation platform('com.google.firebase:firebase-bom:26.3.0')
@pablo-threadable it not work for me
@markusaksli-nc My project tip could not find com.google.firebase:firebase-common run flutter run: Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
Could not resolve all task dependencies for configuration ':firebase_core:debugCompileClasspath'. Could not find com.google.firebase:firebase-common:. Required by: project :firebase_core
Could you provide your android/build.gradle
?
buildscript { ext.kotlin_version = '1.3.71' repositories { // google() // jcenter()
maven { url'https://maven.aliyun.com/repository/google'}
maven { url'https://maven.aliyun.com/repository/jcenter'}
maven { url'http://maven.aliyun.com/nexus/content/groups/public'}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'androidx.core' &&
!details.requested.name.contains('androidx')) {
details.useVersion "1.0.1"
}
}
}
}
}
allprojects { repositories { // google() // jcenter()
maven { url'https://maven.aliyun.com/repository/google'}
maven { url'https://maven.aliyun.com/repository/jcenter'}
maven { url'http://maven.aliyun.com/nexus/content/groups/public'}
}
}
rootProject.buildDir = '../build' subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } subprojects { project.evaluationDependsOn(':app') }
task clean(type: Delete) { delete rootProject.buildDir }
I got the same issue. Just updating the firebase sdk in android/app/build.gradle
worked for me:
rootProject.ext {
set('FlutterFire', [
FirebaseSDKVersion: '26.3.0'
])
}
I got the same issue. Just updating the firebase sdk in
android/app/build.gradle
worked for me:rootProject.ext { set('FlutterFire', [ FirebaseSDKVersion: '26.3.0' ]) }
Confirm updating the Firebase sdk does work.
Please remove the deprecated maven repositories and replace them with
repositories {
google()
jcenter()
}
@Georgevik it worked for me. thanks!
Closing this as solved
Could not determine the dependencies of task ':firebase_core:compileDebugAidl'.
flutter doctor: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H15 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 12.1) [!] Android Studio (version 4.1) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [!] IntelliJ IDEA Community Edition (version 2019.3.4) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [✓] VS Code (version 1.52.0) [✓] Connected device (1 available)
! Doctor found issues in 2 categories.