"Android resource linking failed"问题解决

落日映苍穹つ 2024-04-18 22:55 145阅读 0赞
  1. 问题log:

Android resource linking failed
/Users/user1/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:1499: error: resource android:attr/xxxxx is private.
error: failed linking references.

2.分析:

一般情况下,是由于build 版本引起的。

  1. 解决方法:

修改build.gradle,如下:

  1. compileSdkVersion targetSdkVersion 19改为22
  2. compile 'com.android.support:appcompat-v7:19.+' 改为:
  3. compile 'com.android.support:appcompat-v7:22.2.1'
  4. 问题解决。

发表评论

表情:
评论列表 (有 0 条评论,145人围观)

还没有评论,来说两句吧...

相关阅读