Error running All Tests: Gradle projectsync failed. Please fix your project and try again. How to solve?
First, a two-week solution was found online:
Plan 1: Since Gradle is suggested, start with this batch. What is Gradle?Please poke here: click open link
1. The File – & gt; Invalidate caches/Restart
2. The Shutdown Android Studio
3. Rename/remove. Gradle Folder in the user Home Directory
4 Restart Android Studio let it Download all the Gradlestuff it Needs
Gradle Build Success!
6. Rebuild project… success !
Scheme 2:
File -> Settings Search for Gradle, make the following changes (specify the location of Gradle to be downloaded manually), For Gradle download, please stamp here: click open link
First, a two-week solution was found online:
Plan 1: Since Gradle is suggested, start with this batch. What is Gradle?Please poke here: click open link
1. The File – & gt; Invalidate caches/Restart
2. The Shutdown Android Studio
3. Rename/remove. Gradle Folder in the user Home Directory
4 Restart Android Studio let it Download all the Gradlestuff it Needs
Gradle Build Success!
6. Rebuild project… success !
Scheme 2:
File -> Settings Search for Gradle, make the following changes (specify the location of Gradle to be downloaded manually), For Gradle download, please stamp here: click open link
Solution 3:
The above method didn’t work, so I killed gradle and Gradle in the project directory, created a new project, copied the two folders in the new project, and the Studio returned to normal.
In addition to the above methods, based on personal experience can also be:
This can also happen if a project developed on an original device is about to be moved to another device (the gradle update download is very slow)
At this point, first go to the Settings of Android Studio under the new device and turn off the Proxy
Then go to the directory of Gradle
Use the.gradle directory for the original device instead of the gradle directory for the new device.
Read More:
- Gradle sync failed: Sync failed: reason unknown
- ESP8266 Chip sync error esp_sync_blocking.
- AS3.5 Error gradle project sync failed.Basic functionality(e.g.editing,debugging) will not work
- After unity connects with androidstudio, unity packages APK with an error: commandinvocationfailure: failed to re package resources
- Solve the problem of prompt “failed to sync branch” when using Git
- Sync with Gradle for project ‘XXXX‘ failed: Connection timed out: connect
- InternalError: GPU sync failed
- android studio Error Gradle project sync failed. Please fix your project and try again
- gradle sync failed CreateProcess error=267 directory is invalid
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Error: Gradle project sync failed. Please fix your project and try again.
- [Solved] Android gradle Error: gradle project sync failed. Please fix your project and try again
- AndroidStudio Android Unknown failure: Can’t find service: package
- failed to find Build Tools revision 23.0.2 Install Build Tools 23.0.2 and sync project
- Warning: ESPCOMM_SYNC Failed Error: ESPCOMM_open Failed Error: ESPCOMM_UPLo
- Arduino Xiaobai beginner error: warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem fa
- Android studio “sync project with gradle files” button disappears
- Could not sync socket: %1
- Sync Error: some files/attrs were not transferred (see previous errors) (code 23) at main
- Error condition on socket for Sync: connection reused