Android Error:Could not open cp_proj remapped class cache for 3xnrgz1qgb5499aaninuigi7h
2018-02-23 10:17
1681 查看
> Could not open cp_proj remapped class cache for 3xnrgz1qgb5499aaninuigi7h (C:\Users\75745\.gradle\caches\4.1\scripts-remapped\build_58q2bngkcdvkyj4xyh5o39ziq\3xnrgz1qgb5499aaninuigi7h\cp_proj4dada6424967ba8dfea75e81c8880f7f). > java.io.FileNotFoundException: C:\Users\75745\.gradle\caches\4.1\scripts-remapped\build_58q2bngkcdvkyj4xyh5o39ziq\3xnrgz1qgb5499aaninuigi7h\cp_proj4dada6424967ba8dfea75e81c8880f7f\cache.properties (系统找不到指定的文件。)
电脑之前蓝屏,然后还原点修复了一下,应该是删除了C盘里面的之前的一些文件。
上面的错误大概就是丢失了Gradle构建的缓存文件。
解决方案
新建一个记事本,重命名为:cache.properties (丢失的文件名)坑爹呢!!!
如果反复提示,即丢失了很多这个文件,直接删除C:\Users\电脑用户名.gradle\caches\4.1,这个gradle版本对应的缓存文件夹即可,然后重启Android Studio重新构建一次即可。
相关文章推荐
- Android报错:Gradle相关 Error:Could not open cp_init class cache for initialization script
- 关于Error:Could not open cp_init class cache for initialization script系统找不到文件
- android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error(Sqlite code 14): Could not open database,(OS error - 13:Permission denied)
- Error:Timeout waiting to lock cp_proj class cache for build file 'D:\androidw\TuYeLiangPin\app\bui
- 报错 Error:Timeout waiting to lock cp_proj class cache for build file 'D:\androidw\TuYeLiangPin\app\b
- Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject
- Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- 解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- Error:Could not initialize class com.android.ide.common.util.ReadWriteProcessLock 解决办法
- 解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject
- Android引入第3方jar包后 error: Could not find class...
- android "Could not find class 'org.apache.http.entity.mime.content.FileBody" error
- Android sqlite unknown error (code 14): Could not open database
- 解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- Error:Could not determine the class-path for interface com.android.builder.model.NativeAndroidProjec
- android:PANIC: Could not open: C:\Documents and Settings\Administrator\.android/avd/
- android Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.
- Android开发错误——Could not find class