Could not load compiled classes for build file '\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_inappwebview-5.7.2+3\android\build.gradle' from cache

huangapple go评论104阅读模式
英文:

Could not load compiled classes for build file '\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_inappwebview-5.7.2+3\android\build.gradle' from cache

问题

我的项目之前成功运行,但在电脑突然断电后,当我尝试运行项目时出现以下错误
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project 'flutter_inappwebview'.

Could not load compiled classes for build file 'C:\Users\ibrahim42386\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_inappwebview-5.7.2+3\android\build.gradle' from cache.
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':flutter_inappwebview' of type org.gradle.api.Project.
Could not get unknown property 'android' for project ':flutter_inappwebview' of type org.gradle.api.Project.

英文:

My project was running successfully but after sudden power down of my pc, when I try to run the project the following error is shown
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':flutter_inappwebview'.
    > Could not load compiled classes for build file 'C:\Users\ibrahim42386\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_inappwebview-5.7.2+3\android\build.gradle' from cache.
    > Failed to notify project evaluation listener.
    > Could not get unknown property 'android' for project ':flutter_inappwebview' of type org.gradle.api.Project.
    > Could not get unknown property 'android' for project ':flutter_inappwebview' of type org.gradle.api.Project.

答案1

得分: 1

这是一个缓存问题,如果有任何包不兼容,那么它将在运行pub get时报错。所尝试清理Flutter的缓存。
尝试这个:在Flutter中清理缓存

英文:

It's a cache issue, if any package was incompatible then it will through the bug at Pub get time. So try to clean the Cache of Flutter .
try this: clean Cache in Flutter

huangapple
  • 本文由 发表于 2023年6月19日 13:51:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/76503919.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定