Android Studio倒入工程错误记录

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/slf4j-api/1.7.21/slf4j-api-1.7.21.pom'.
            > Could not HEAD 'http://maven.oschina.net/content/groups/public/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.pom'.
               > Connect to maven.oschina.net:80 [maven.oschina.net/183.78.182.122] failed: 连接超时
   > Could not resolve com.github.tony19:logback-android-core:1.1.1-5.
     Required by:
         OpenLive_Android-master:app:unspecified
      > Could not resolve com.github.tony19:logback-android-core:1.1.1-5.
         > Could not get resource 'http://maven.oschina.net/content/groups/public/com/github/tony19/logback-android-core/1.1.1-5/logback-android-core-1.1.1-5.pom'.
            > Could not HEAD 'http://maven.oschina.net/content/groups/public/com/github/tony19/logback-android-core/1.1.1-5/logback-android-core-1.1.1-5.pom'.
               > Connect to maven.oschina.net:80 [maven.oschina.net/183.78.182.122] failed: 连接超时
   > Could not resolve com.github.tony19:logback-android-classic:1.1.1-5.
     Required by:
         OpenLive_Android-master:app:unspecified
      > Could not resolve com.github.tony19:logback-android-classic:1.1.1-5.
         > Could not get resource 'http://maven.oschina.net/content/groups/public/com/github/tony19/logback-android-classic/1.1.1-5/logback-android-classic-1.1.1-5.pom'.
            > Could not HEAD 'http://maven.oschina.net/content/groups/public/com/github/tony19/logback-android-classic/1.1.1-5/logback-android-classic-1.1.1-5.pom'.
               > Connect to maven.oschina.net:80 [maven.oschina.net/183.78.182.122] failed: 连接超时
上面的问题是因为网络连接失败,需要手动下载,放在lib文件夹下,然后手动添加依赖。


3、Error:A problem was found with the configuration of task ':app:prepareOpenLive_AndroidMasterLibvideoprpUnspecifiedLibrary'.
> File '/home/ukylin/projectModel/shengwang/demo/OpenLive_Android-master/libvideoprp/videoprp.aar' specified for property 'bundle' does not exist.
这是倒入声网Demo的时候遇到的问题,“videoprp.aar”这个文件没有,去SDK的包中找了一下。


没有更多推荐了,返回首页