1、gradle版本太低,如果倒入的工程依赖的版本较高,AndroidStudio就会自动下载并升级Gradle,由于AndroidStudio下载很慢,所以最好自己手动下载,具体步骤见
http://blog.csdn.net/zhang_ying_xian/article/details/51096487,感谢楼主。
2、Could not resolve org.slf4j:slf4j-api:1.7.21.
Could not get resource 'http://maven.oschina.net/content/groups/public/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.pom'.
这类错误是因为网络连不通,需要手动下载相应Jar包,并放在lib文件夹下,然后手动添加依赖,以下错误都是这类错误。
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
> Could not resolve org.slf4j:slf4j-api:1.7.21.
Required by:
OpenLive_Android-master:app:unspecified
> Could not resolve org.slf4j:slf4j-api:1.7.21.
> Could not get resource 'http://maven.oschina.net/content/groups/public/org/slf4j