英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论