android-studio - 系统找不到Android Studio指定的文件

标签 android-studio gradle android-gradle-plugin

每当我尝试运行 Android 应用程序时,我都会收到一条错误消息。

Error:C:\Users\zeshan\.gradle\caches\2.14.1\scripts-remapped\build_6xj57zedh3l90p9pnawvv74i8\8ehwj2mcm8zvm71zyxubaaene\cp_proj57408229\cache.properties (The system cannot find the file specified)

最佳答案

  1. 导航到 C:\Users\user_name.gradle\caches\2.14.1 或(如果有错误则为 2.8)

  2. 复制文件夹“2.14.1”或“2.8”并将其粘贴到安全的地方,以防万一出现问题,您可以将其放回原处

  3. 从目录 C:\Users\user.gradle\caches\2.4\(或\2.8)中删除此错误文件夹

  4. 关闭 Android studio 并重新启动。

关于android-studio - 系统找不到Android Studio指定的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40145014/

相关文章:

android - 如何在 Android Studio IDE 中查看变量的类型

android - Fedora - android studio 没有运行

android - 在 Android 上使用不同 key 的 Gradle 签名风格

android - Firebase-perf 与 let 插件冲突

android-studio - 错误 : Your project contains C++ files but it is not using a supported native build

android-studio - Kotlin:为什么 Android Studio 中的大多数变量都带有下划线,我该如何关闭它?

gradle - 如何使用 Gradle 从存档中删除文件

android - Android Studio中的堆大小问题

android - 生成签名 APK 错误 : Error converting bytecode to dex and 1 more

android - 升级到 Gradle 2.3 后数据绑定(bind)中断