更新Android Studio遇到的问题

打开Android Studio后,弹出update的更新对话框,我想都没想点update now,然后竟然出问题了

错误1、Error:org.gradle.api.UncheckedIOException: Could not read entry '-4545495943305041563' from cache fileSnapshots.bin (F:\android studio\AndroidStudioProjects\GoodWeather\.gradle\3.3\taskArtifacts\fileSnapshots.bin).

> Could not read entry '-4545495943305041563' from cache fileSnapshots.bin (F:\android studio\AndroidStudioProjects\GoodWeather\.gradle\3.3\taskArtifacts\fileSnapshots.bin).
解决方案:删除F:\android studio\AndroidStudioProjects\GoodWeather\.gradle\3.3\taskArtifacts\fileSnapshots.bin
错误2、
Error:Failed to capture snapshot of input files for task 'mergeReleaseJniLibFolders' property 'rawInputFolders' during up-to-date check.
> Failed to create MD5 hash for file 'F:\android studio\AndroidStudioProjects\GoodWeather\HX_Lib\libs\arm64-v8a\libhyphenate_av.so'.
解决方案:
我把目录下的文件删除掉,编译后R文件有问题。一看是文件夹的activity变为Activity,导致不能正常运行
错误3、
Error:null value in entry: outputDir=null
Gradle的一个Bug,解决办法是,删除项目根目录的.gradle文件夹,然后Clean ,Rebulid。 

最后,版本有风险,更新需谨慎!



猜你喜欢

转载自blog.csdn.net/fromVillageCoolBoy/article/details/69258730