Error in my R.java file cannot be resolved

烈酒焚心 提交于 2019-12-02 05:48:05
Harsh Dattani
  1. Navigate to \Android.Support.v7.AppCompat\2x.x.x\content\support\v7\appcompat\res\values\attrs.xml in side your project directory.

    or

    open the AppCompat project in your workspace and navigate to \res\values\attrs.xml

  2. Find "android:preserveIconSpacing" in attrs.xml file and and comment that line.

  3. Rebuild the project again.

Hope this solves the issue.

i did comment "android:preserveIconSpacing" but generate more error. i have back up appcompat_v7 and replace it with broken one and every thing goes right again .

This problem occurs when you update the ADT. So it is recommendable to use Android Studio.
If that doesnt work then try what @Harsh Dattani stated in the previous answer which is to Clean or Rebuild the project.

i think it's SDK Manager-Tools not installed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!