flutter安卓端报错

tsubasa 13天前 83

在mac系统上执行flutter run,ios端可以,但安卓端报错 FAILURE: Build failed with an exception.

  • Where: Script '/opt/homebrew/Caskroom/flutter/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1296

  • What went wrong: A problem occurred evaluating root project 'android'.

    A problem occurred configuring project ':app'. Could not create task ':app:copyFlutterAssetsDebug'. Could not create task ':app:mergeDebugAssets'. Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

  • 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 598ms

最新回复 (2)
  • HeavyRain 13天前
    引用 2
    你们本地的环境支持flutter android吗?请尝试创建一个android项目运行或者找个其他flutter项目运行android试试
  • tsubasa 12天前
    引用 3
    可以了,谢谢,我重新创一个项目再引入imclient就没问题了,估计是demo的gradle版本不一致报错了
返回