Plugin [id: ‘com.android.application‘, version: ‘7.xx‘, apply: false] was not found in any ...

Plugin [id: 'com.android.application', version: '7.3.0-alpha03', apply: false] was not found in any of the following sources:

problem causes:

As explained above, the configured gradle version was not found in the locally configured gradle repository.

Solution:

1. Find out what your local gradle plugin version should correspond to the gradle version. See Android Gradle Plugin Release Notes for details | Android Developers | Android Developers

Click file-Project Structure to select a corresponding gradle version, and the gradle-plugin version is the version installed by as.

2. Set the gradle version and choose to use gradle-wrap

insert image description here

3. Clear the caches directory under the gradle home (.gradle above) directory

4. Restart androidstudio, and find that the gradle version has been downloaded again, and the project can be opened normally after a while

-------------------------------------------------------------------------------------------------------------------------

5. If the above is not resolved, check the warehouse configuration in the project Settings.gradle, add three lines as follows Alibaba Cloud warehouse, and try to sync again.

repositories {
   ......
   maven { url 'https://maven.aliyun.com/repository/google' } 
   maven { url 'https://maven.aliyun.com/repository/public' } 
   maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
   ......
}

Guess you like

Origin blog.csdn.net/yzycsdnzh/article/details/125244129