Android studio error re-download dependancy and sync project






















 · Android Studio: Re-download dependencies and sync project Android studio更新以后Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this s.  · It seems to be a gradle dependency cache problem. Unfortunately File | Invalidate Caches/Restart only cleans system cache as described here. To clean the gradle cache you need to run command. for Windows gradlew cleanBuildCache. for *nix./gradlew cleanBuildCache. It will only clean cache related to your project. More details here.  · Possible causes for this unexpected error Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.


I added dependency like described at Readme file. I use AS bltadwin.ru file: apply plugin: 'bltadwin.ruation' apply plugin: "bltadwin.rud-junit5" android { compileSdkVersion 26 defaultConfig { applicationId "colib. 导入demo时会经常遇到这些报错,如: Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project . Device: Windows Android Studio. this is the error: Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart).


Gradle出现Re-download dependencies and sync project requires network 有可能是你安装的时候修改了默认的安装路径导致 和idea找gradle的路径不同,所以出现了这个问题, 第一种解决办法 简书:点击这里 第二种办法就是 进入点击 fileSettingsBuIld,Execution, Gradle 然后找到自己. If you have updated your android studio, then go to FILE, Project Structure, Project, then check gradle version. Before that check your gradle version in C:\Program Files\Android\Android Studio\gradle and check the version if it matches then sync again else change the gradle version in android studio and sync again. Possible causes for this unexpected error Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

0コメント

  • 1000 / 1000