Android 编译错误解决方式

2017-12-11  本文已影响0人  云里雾花

(1).Error:Unable to resolve dependency for ':xxxxx@mbLtcDebug/compileClasspath': Could not resolve com..Open File

Show Details

这是因为你的代码依赖库或者你的依赖是离线状态

首先检查你的build.gradle 我的是3.0  这个文件配置依赖代码库

第二,可能是你的gradle设置成离线状态了。他只在本地的gradle库里面去找,你需要把离线状态去掉

第三.如果报 Failed to resolve: com.xxxxxx Show in File Show in Project Structure dialog

那么可能是你的库依赖有问题,你得去http://mvnrepository.com 按照你的包名去搜索下,重新把它的依赖搞进来

(2)Error:(95, 5) error: style attribute '@android:attr/windowEnterAnimation' not found.

在gradle.properties 添加

android.enableAapt2=false

上一篇 下一篇

猜你喜欢

热点阅读