Execution failed for task ':flut

2019-11-04  本文已影响0人  MacleChen

问题描述:

What went wrong:
Execution failed for task ':fluttertoast: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 26s
    *******************************************************************************************
    The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
    See https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility for more information on the problem and how to fix it.
    *******************************************************************************************
    Finished with error: Gradle task assembleDebug failed with exit code 1

解决办法:项目中找到yaml的文件(就是flutter中集成框架的文件)
更改fluttertoast的版本号为^3.1.0

上一篇 下一篇

猜你喜欢

热点阅读