New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep getting "Unsupported Android Plugin version: 3.5.3" error on build #51329
Comments
What version of Android Studio do you have installed? Also, could you provide the output of `flutter doctor -v? |
@Zazo032 My version of Android Studio is 3.5.3, I did a fresh install to ensure I had an up to date version. Also my flutter doctor response is the following(everything passes):
|
Figured it out, turns out there was a missing Gradle flavor I didn't know about. Below is a documentation snippet of how I fixed it from my readme file. Error: Unsupported Android Plugin version: 3.5.3. flutterYou may encounter this error when running the app for the first time on your Android Simulator. This error seems to be related to using version 3.5.0 or higher for the Android Gradle plugin. VersioningFirst make sure you are using the correct Gradle version for your plugin. If your plugin is 3.5.0 or higher, you must use Gradle version 6.0.1+. You can learn more about updating the Android Gradle plugin here.
After that make sure you are also using the correct plugin version, you can check the version you are using in the
FlavorsYou will also need to update the Gradle flavor which can be done by going into Android Studio and where you see the
flutter clean
flutter pub cache repair After that run flutter with the flutter run --flavor 'stage' |
Following the above advice results in: The android/app/build.gradle file does not define any custom product flavors. You cannot use the --flavor option. Think you might be missing an important step here. Do we need to include anything in the build.gradle file? |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I am trying to install a Flutter app that another team has been working on for a few weeks and can't get it to run on a simulator for the life of me. I've looked into every issue thread regarding the "Unsupported Android Plugin version: 3.5.3" error for Flutter and still can't fix it. It seems like no matter what changes I make, the error always pops up.
I have update the
/android/build.gradle
file to use the 3.4.2 version but I still get an error for the 3.5.3 plugin.I have also re-cloned the app, ran update and clean commands but nothing is working. I have also followed the docs from Android and the same problem. No matter what I try I see no improvements or changes.
If anyone has an idea of what us happening, that would be great.
I have also re-installed Android Studio and same issue
The text was updated successfully, but these errors were encountered: