
That helps you upgrade the version of AGP used by your project. Some Studio users have needed to use Invalidate Caches / Restart option from the File Menu.The Android Gradle plugin (AGP) Upgrade Assistant is a tool in Android Studio There may be a request to sync Gradle, which can also be done via the toolbar icon Sync Project with Gradle Files: Once the Gradle configuration changes have been made the Minimum Supported Gradle Version error should disappear. Optionally Syncing Gradle or Invalidate Caches Us the File->Settings menu option.Ĭheck that Use default gradle wrapper (recommended) is chosen. Check Studio's SettingsĪnother check is in Studio's settings. The same settings can be applied to the project with the Minimum Supported Gradle Version error. The default configuration for Studio can be seen in the Project option:

The same options can be accessed via the toolbar. Use the context menu (normally right-click) on the app in the Project explorer to select Open Module Settings. Use Open Module Settings to View Default Configuration Use the File->New->New Project menu to create a new app. An easy way to find Studio's default settings is simply to creat a new project. To clear the error replace the + with a version number that allows Studio to use a supported version of Gradle. To view the distributionUrl mentioned in the error message open the file gradle-wrapper.properties: #Mon Dec 28 10:00:ĭistributionUrl=https\:///distributions/gradle-2.14.1-all.zip However, if a newer version of Gradle is available and Studio has not been updated to use it then a version mismatch can occur when using +. Sometimes a project should use a specific version, sometimes this does not matter and the latest version can be used (hence the +). Notice the + in the line classpath ':gradle:+', this requests that the latest available version should be used.


NOTE: Do not place your application dependencies here they belong Here is a adle file for the project that displayed this error: // Top-level build file where you can add configuration options common to all sub-projects/modules.Ĭlasspath ':gradle:+' It can also occur when opening a project after a Studio update. Here is an example of the error Minimum Supported Gradle Version being displayed in Studio after a project import. This article discusses the error Minimum Supported Gradle Version. This means Studio can sometimes report Gradle errors when opening old projects, importing old projects or using later version wildcards ( +) in build scripts. Newer versions of Gradle can be developed before Studio's default Gradle configuration gets an update. Along with the Android Software Development Kit (SDK) Google is constantly releasing new versions as the Android Operating System (OS) develops. Minimum Supported Gradle Version Error in StudioĪndroid Studio is Google's flagship Integrated Development Environment (IDE) for app development.
