Execution failed for task ':fluttertoast:compileDebugJavaWithJavac'.

問題描述:

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章