-
- gradle编译报错
- Gradles dependency cache may be corrupt this sometimes occurs after a network connection timeout Re-download dependencies and sync project requires network
- 在使用xutils时Error26 30 错误 无法访问HttpRequestBase找不到orgapachehttpclientmethodsHttpRequestBase的类文件
- Android studio 编译错误 Errornull value in entry outputDirectorynull
- gradle编译报错
gradle编译报错
Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
- solution1:删掉用户根目录下面的.gradle对应版本文件夹或者整个.gradle文件夹,重新打开项目会自动下载。
- solution2:修改gradle文件,将gradle版本修改成之前没报错的版本。
(在使用xutils时)Error:(26, 30) 错误: 无法访问HttpRequestBase,找不到org.apache.http.client.methods.HttpRequestBase的类文件
Error:(26, 30) 错误: 无法访问HttpRequestBase,找不到org.apache.http.client.methods.HttpRequestBase的类文件
- solution:在module的gradle里面的android大括号里面加上
android {
useLibrary 'org.apache.http.legacy'
}
Android studio 编译错误 Error:null value in entry: outputDirectory=null
Error:null value in entry: outputDirectory=null
Error:null value in entry: resOutputDir=null
Error:Null value in entry: dependencyCacheDir=null
- solution:删除项目根目录下面的
.gradle
文件夹,然后clean项目、rebuild项目,即可解决问题。这是gradle不稳固版本的bug。