【问题标题】:Execution failed for task ':firebase_auth:compileDebugJavaWithJavac'任务 ':firebase_auth:compileDebugJavaWithJavac' 执行失败
【发布时间】:2019-02-04 18:59:14
【问题描述】:

将 firebase_auth 从早期版本升级到 ^0.8.0+1 后,我会报错。 这是错误

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':firebase_auth:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
Finished with error: Gradle task assembleDebug failed with exit code 1

【问题讨论】:

    标签: firebase dart flutter firebase-authentication


    【解决方案1】:

    根据变更日志,您必须在 Android 项目中执行迁移到 AndroidX。

    changes required are here的详细信息。

    查看变更日志:

    0.8.0 突破性变化。从已弃用的原始 Android 支持库迁移到 AndroidX。这不应该导致任何功能更改,但如果使用原始支持库,则需要使用此插件的任何 Android 应用程序also migrate

    【讨论】:

      【解决方案2】:

      首先在android/app/build.gradle文件中设置compileSdkVersion28。 其次,将以下内容添加到您的 android/gradle.properties 文件中:

      android.useAndroidX=true
      android.enableJetifier=true
      

      【讨论】:

        猜你喜欢
        • 2019-07-01
        • 2020-03-07
        • 2023-03-15
        • 1970-01-01
        • 1970-01-01
        • 2018-08-20
        • 2016-05-02
        • 2022-01-19
        • 2021-11-14
        相关资源
        最近更新 更多