Android Studio编译错误汇总

转载请标明出处:
http://blog.csdn.net/zq2114522/article/details/50466218;
本文出自:【梁大盛的博客】

1.Could not find *
属于找不到jar包类型.这种很好处理.
首先错误进入错误消息所列出的链接看看是否真的没有找到相应jar包.最简单粗暴的办法是用OSChina仓库即可.(根本原因是jcenter没有这jar包了)

Android Studio编译错误汇总_第1张图片
为项目添加OSChina仓库 ‘http://maven.oschina.net/content/groups/public’

相关截图

Android Studio编译错误汇总_第2张图片

Android Studio编译错误汇总_第3张图片

Android Studio编译错误汇总_第4张图片

Error:A problem occurred configuring project ':app'.
> A problem occurred configuring project ':library'.
   > Could not resolve all dependencies for configuration ':library:_debugCompile'.
      > Could not find com.afollestad:material-dialogs:0.7.9.1.
        Searched in the following locations:
            https://jcenter.bintray.com/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.pom
            https://jcenter.bintray.com/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.jar
            https://repo1.maven.org/maven2/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.pom
            https://repo1.maven.org/maven2/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.jar
            https://raw.githubusercontent.com/umeng/mvn-repo-umeng/master/repository/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.pom
            https://raw.githubusercontent.com/umeng/mvn-repo-umeng/master/repository/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.jar
            file:/C:/Users/dsliang/AppData/Local/Android/sdk/extras/android/m2repository/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.pom
            file:/C:/Users/dsliang/AppData/Local/Android/sdk/extras/android/m2repository/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.jar
            file:/C:/Users/dsliang/AppData/Local/Android/sdk/extras/google/m2repository/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.pom
            file:/C:/Users/dsliang/AppData/Local/Android/sdk/extras/google/m2repository/com/afollestad/material-dialogs/0.7.9.1/material-dialogs-0.7.9.1.jar
        Required by:
            SimplifyReader-master:library:unspecified

2.failed to find Build Tools revision *..*
相应版本的build-tools没有安装.解决办法,1.更换已经安装的build-tools版本 2.重新安装相应的build-tools版本

相关截图

Android Studio编译错误汇总_第5张图片
BuildToolsVersion ‘22.0.1’ 编译使用的build-tools版本

Android Studio编译错误汇总_第6张图片
可以把BuildToolsVersion ‘22.0.1’修改成’23.0.1’,但是建议安装’22.0.1’.

Android Studio编译错误汇总_第7张图片
已经安装的build-tools

没工具.离线安装BuildToolsVersion ‘22.0.1’

开源镜像站(Android Sdk,Source,Sample,buildTools一应齐全!) - http://mirrors.neusoft.edu.cn/

Android Studio编译错误汇总_第8张图片
下载压缩包解压到相应目录

Android Studio编译错误汇总_第9张图片
解压并且修改名字,离线安装就是那么简单

你可能感兴趣的:(Android)