无法确定任务':google_maps_flutter:compileDebugAidl'的依赖项

时间:2020-01-16 17:59:57

标签: flutter

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':google_maps_flutter:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':google_maps_flutter:debugCompileClasspath'.
   > Could not find com.google.android.gms:play-services-screens.maps:17.0.0.
     Required by:
         project :google_maps_flutter

* 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 1m 24s
Finished with error: Gradle task assembleDebug failed with exit code 1

我收到此错误,我更改了flutter通道,运行flutter clean,在软件包版本之前删除了^,但是没有用。

google_maps_flutter: ^0.5.21+15

如何解决?

1 个答案:

答案 0 :(得分:0)

删除~/.pub-cache

后已修复