Can't Find Theme.AppCompat.Light for New Android ActionBar Support

后端 未结 30 2469
误落风尘
误落风尘 2020-11-22 09:22

I am trying to implement the new ActionBar support library that was released by Google a couple days ago. In the past, I have successfully implemented ActionBarSherlock wit

30条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 10:16

    I had same problem and waste my 4-5 hours for solution. My problem solved with;

    1. From SDK manager delete packages "Android Support Library" and " Android Support Repository".
    2. Reinstall "Android Support Library" and " Android Support Repository"
    3. Remove "android-support-v7-appcompat" or "appcompat_v7 what else you have in your project.
    4. Import android-support-v7-appcompat from "adt-bundle-windows-x86_64-20140702\sdk\extras\android\support\v7\appcompat"
    5. Select your project and from file choose properties and find Java Build Path and then from "Project" tab delete what else there and then Add. and you must see "android-support-v7-appcompat" , select and add it to Project tab.
    6. Check your project.properties file below your Project files, you will see like this; target=android-21 android.library.reference.1=../android-support-v7-appcompat then check AndroidManifest.xml file if target is 21 or what else you choosed. Also check for library reference same as your library that choosed before.

    Hope you will find your solution.

提交回复
热议问题