Stop this build and enter in the root directory of the project (I use the linux command here, windows is similar) ./gradlew build --info --debug --stacktrace
Look at the log, the error items are in the log, just eliminate them
I will also encounter this problem. I personally think it is a network problem. After all, FQ is not that stable. My solution is to stop AS and restart it. Then wait patiently.
Will new projects get stuck here? You should actually download the TestCompile class library in the dependency here. Just open Build.Gradle and kill that library.
1. A certain dependency cannot be downloaded 2. In the root directory of your project, execute gradlew (use gradlew.bat under windows) build -i 3. Check the log and see See what errors are reported
Stop this build and enter
in the root directory of the project (I use the linux command here, windows is similar)
./gradlew build --info --debug --stacktrace
Look at the log, the error items are in the log, just eliminate them
I will also encounter this problem. I personally think it is a network problem. After all, FQ is not that stable. My solution is to stop AS and restart it. Then wait patiently.
Will new projects get stuck here?
You should actually download the TestCompile class library in the dependency here. Just open Build.Gradle and kill that library.
You need a good circumvention tool
https://github.com/getlantern...
1. A certain dependency cannot be downloaded
2. In the root directory of your project, execute gradlew (use gradlew.bat under windows) build -i
3. Check the log and see See what errors are reported