Error in my R.java file cannot be resolved

前端 未结 4 739
南笙
南笙 2021-01-23 18:39

I am using the Eclipse ADT bundle and recently updated my Android SDK tools and Android SDK platform tools then thereafter I tried creating a new project and I keep getting an e

相关标签:
4条回答
  • 2021-01-23 19:08

    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.

    0 讨论(0)
  • 2021-01-23 19:17
    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.

    0 讨论(0)
  • 2021-01-23 19:22

    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 .

    0 讨论(0)
  • 2021-01-23 19:28

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

    0 讨论(0)
提交回复
热议问题