简体   繁体   English

Flutter 进程调试资源不工作失败错误

[英]Flutter process Debug Resources not working Failed error

I tried firebase Authorize example with e-mail and password when I trying connection firebase i gettin some error当我尝试连接时,我尝试了 firebase 使用电子邮件和密码授权示例 firebase 我遇到了一些错误

My build.grandle is:我的 build.grandle 是:

dependencies {
    implementation 'com.google.firebase:firebase-core:16.0.1'
    implementation 'com.google.firebase:firebase-database:16.0.1'
    implementation 'com.google.firebase:firebase-storage:16.0.1'
    implementation 'com.google.firebase:firebase-auth:16.0.1'
    implementation 'com.firebaseui:firebase-ui-database:4.0.1'
    implementation 'com.firebaseui:firebase-ui-auth:4.0.1'

    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation project(':app')
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.0.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.0.1'

}
apply plugin: 'com.google.gms.google-services'

Error Messages:错误信息:

Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

FAILURE: Build failed with an exception.

* What went wrong:
Circular dependency between the following tasks:
:app:processDebugResources
\--- :app:processDebugResources (*)

(*) - details omitted (listed previously)

You just need to provide the version of google-services in your application.您只需要在您的应用程序中提供 google-services 的版本。 Add this line inside dependencies in your build.gradle file.在 build.gradle 文件的依赖项中添加这一行。

classpath 'com.google.gms:google-services:4.3.0'

Like this.像这样。

dependencies {
  // Add this line
  classpath 'com.google.gms:google-services:4.3.0'
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM