AS遇到的问题

Q 一些jar包提示
Failed to resolve: com.squareup.retrofit:retrofit:1.9.0
Failed to resolve: com.squareup.okhttp:2.2.0

The problem was fixed by creating a higher level build.gradle file and moved the following code into it

buildscript {
  repositories {
    jcenter()
  }
  dependencies {
    classpath 'com.android.tools.build:gradle:1.1.2'
  }
}

allprojects {
  repositories {
    jcenter()
  }
}

Q:Failed to resolve:某个aar包
A:设置gradle属性

 repositories {
     //let gradle find aar in The libs directory instead of declared repository.
    flatDir {
        dirs 'libs'
    }
}

Q:merage清单文件时报错
A:在工程清单文件中配置替代 icon name lable 等

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mycompany.myapp"
xmlns:tools="http://schemas.android.com/tools">

<application
    android:label="@string/app_name"
    tools:replace="android:icon, android:name,android:theme"/>
</manifest>

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容