Running a Flutter project and after upgrading Android Studio to version 4.0 I get the following warning when opening the Android module in Android Studio:
Warning: root project 'android': Unable to resolve additional project configuration.
Details: org.apache.tools.ant.BuildException: Basedir C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-0.0.1+1\android does not exist.
I can see that now this android directory does indeed not exist. On the project screen, it says: Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly. I have tried to reinstall both Android Studio and Flutter, but it doesn't help.
How can this problem be solved?