开发者社区 问答 正文

关于okHttputils gradle编译出错?报错

工具 android studio

compile 'com.squareup.okhttp3:okhttp:3.1.2' compile 'com.zhy:okhttputils:2.2.0'
编译时报错如下

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@label value=(****) from AndroidManifest.xml:8:9-29
  	is also present at [com.zhy:okhttputils:2.2.0] AndroidManifest.xml:16:9-41 value=(@string/app_name).
  	Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:5:5-21:19 to override.

请问怎么解决,在下小白

展开
收起
爱吃鱼的程序员 2020-06-10 13:53:09 796 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
    add'tools:replace="android:label"'to<application>
    资源合并的时候冲突了add'tools:replace="android:label"'to<application>怎么解决
    2020-06-10 13:53:25
    赞同 展开评论