I got strange bugs,
After I upgrade Android Studio :
I created an Android project, run it a success.
Then I tried to import Flutter Module
to this Android project.
I had these exceptions,
Blockquote
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin class 'FlutterPlugin'.
Caused by: org.Gradle.API.InvalidUserCodeException: Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by plugin class 'FlutterPlugin'
I searched but did not find the solution for that exception, even Clean project
, Gradle clean build
, and Restart & Invalidate Project
.
Please help me to solve this,
Thanks,
p/s: At the previous Android Studio version, I did that normally. (very simple)
Run android project success before import flutter module
Project structure
settings.Gradle
after imported Flutter Module
Current Version
Gradle clean build
command line