lundi 30 mars 2015

Unable to create an Android project with specific name in eclipse

I am trying to implement Facebook Login integration in my android app. However before I could do that, I was trying to test the code. So I created a new Android project in Eclipse by the name " FaceBookTesting "



  1. Min SDK : Android 2.2

  2. Target SDK : Android 4.4

  3. Complie With : Android 4.4


As soon I create this project, Eclipse gives me a cyclone of errors :



[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:202: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:212: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Light'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:205: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:219: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.ActionBar'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:223: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark.ActionBar'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:81: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:83: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:84: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:82: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:79: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:80: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:118: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:120: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:121: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:119: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:116: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:117: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:155: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:157: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:158: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:156: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:153: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:154: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:192: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:194: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:195: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:193: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[2015-03-30 12:17:36 - FaceBookTesting]
[2015-03-30 12:17:36 - FaceBookTesting] D:\workspace\appcompat_v7\res\values-v21\themes_base.xml:191: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[2015-03-30 12:17:36 - FaceBookTesting]


When I go under the MainActivity the R is underlined with red !



setContentView(R.layout.activity_main);


I don't have any idea why is it giving me this ! I even tried cleaning my project, building my workspace again, closing and re-opening eclipse but without luck !


The funniest part, it has happened with this project name only. Have been working on other Android projects. i never faced this issue ! Anyone ny ideas ?


Aucun commentaire:

Enregistrer un commentaire