Help Center/ CodeArts Build/ FAQs/ Android Builds/ What Should I Do When Dependency com.android.tools.build:gradle:3.0.1 Cannot Be Downloaded?
Updated on 2024-11-18 GMT+08:00
What Should I Do When Dependency com.android.tools.build:gradle:3.0.1 Cannot Be Downloaded?
Symptoms
The error information is as follows:
Could not find com.android.tools.build:gradle:3.0.1
Solution
According to the log, add the google() repository to the build.gradle file in the app directory as shown below:
allprojects {
repositories {
google()
jcenter()
}
} Parent topic: Android Builds
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.