Gradle 构建失败 - 无法解压
Gradle build failed - unable to unzip
我正在使用 android 做一个项目 studio.Recently 它显示了一个错误 your SDK is missing or out of date
所以,我下载了一次 SDK again.Now 它显示了一个错误 Gradle Build failed
错误如下:
`Error:Execution failed for task ':app:prepareComAndroidSupportAnimatedVectorDrawable2531Library'.
> Unable to unzip '/home/nandha/Android/Sdk/extras/android/m2repository/com/android/support/animated-vector-drawable/25.3.1/animated-vector-drawable-25.3.1.aar' to '/home/nandha/.android/build-cache/e07f150905e44f35b3635185e8f46be2d475fc86/output' or find the cached output '/home/nandha/.android/build-cache/e07f150905e44f35b3635185e8f46be2d475fc86/output' using the build cache at '/home/nandha/.android/build-cache'.
To troubleshoot the issue or learn how to disable the build cache, go to https://d.android.com/r/tools/build-cache.html.
If you are unable to fix the issue, please file a bug at https://d.android.com/studio/report-bugs.html.
请帮我解决这个错误。
您需要清除构建缓存。
Select 从菜单栏查看 > 工具 Windows > 终端并使用以下命令之一:
在 Windows 上:
gradlew cleanBuildCache
我遇到了同样的问题,
答案就在那里:https://developer.android.com/studio/build/build-cache.html?utm_source=android-studio#clear_the_build_cache
您只需在终端中执行操作(对于终端:Select 查看 > 工具 Windows > 终端):
在 Windows:
gradlew cleanBuildCache
在 Mac 或 Linux:
./gradlew cleanBuildCache
并构建 Gradle
我正在使用 android 做一个项目 studio.Recently 它显示了一个错误 your SDK is missing or out of date
所以,我下载了一次 SDK again.Now 它显示了一个错误 Gradle Build failed
错误如下:
`Error:Execution failed for task ':app:prepareComAndroidSupportAnimatedVectorDrawable2531Library'.
> Unable to unzip '/home/nandha/Android/Sdk/extras/android/m2repository/com/android/support/animated-vector-drawable/25.3.1/animated-vector-drawable-25.3.1.aar' to '/home/nandha/.android/build-cache/e07f150905e44f35b3635185e8f46be2d475fc86/output' or find the cached output '/home/nandha/.android/build-cache/e07f150905e44f35b3635185e8f46be2d475fc86/output' using the build cache at '/home/nandha/.android/build-cache'.
To troubleshoot the issue or learn how to disable the build cache, go to https://d.android.com/r/tools/build-cache.html.
If you are unable to fix the issue, please file a bug at https://d.android.com/studio/report-bugs.html.
请帮我解决这个错误。
您需要清除构建缓存。 Select 从菜单栏查看 > 工具 Windows > 终端并使用以下命令之一:
在 Windows 上: gradlew cleanBuildCache
我遇到了同样的问题, 答案就在那里:https://developer.android.com/studio/build/build-cache.html?utm_source=android-studio#clear_the_build_cache
您只需在终端中执行操作(对于终端:Select 查看 > 工具 Windows > 终端):
在 Windows:
gradlew cleanBuildCache
在 Mac 或 Linux:
./gradlew cleanBuildCache
并构建 Gradle