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

后端 未结 30 1841
误落风尘
误落风尘 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:08

    http://developer.android.com/tools/support-library/setup.html has a bug. In Property->Java build path->'Project' and 'Order and Export', there should not be any jar's. Removing them, and checking 'Android Private Libraries' and 'Android Dependencies' solved my problem.

    0 讨论(0)
  • 2020-11-22 10:09

    I am not sure whether v13 support library was available when this question was posted, but in case someone is still struggling, I have seen that adding android-support-v13.jar will fix everything. This is how I did it:

    1. Right click on the project -> Properties
    2. Select Java Build Path from from the left hand side table of content
    3. Go to Libraries tab
    4. Add External jars button and select <your sdk path>\extras\android\support\v13\android-support-v13.jar
    0 讨论(0)
  • 2020-11-22 10:11

    you need reference $ANDROID_SDK/extras/android/support/v7/appcompat

    0 讨论(0)
  • 2020-11-22 10:11

    Follow the steps of @rcdmk. Delete the android support v4.jar in YOUR project. It conflicts with the new updated version found in appcompat.

    0 讨论(0)
  • 2020-11-22 10:12

    I experienced the same problem as the OP after right-clicking on my project and selecting Close Unrelated Projects.

    In my case, I resolved the problem by re-opening the appcompat_v7 project and cleaning/rebuilding both projects.

    0 讨论(0)
  • 2020-11-22 10:12

    If you have added appCompat Library and also have given proper reference of appCompat from SDK location, try "invalidate caches/Restart".
    You can find it from "File" menu in Android Studio.

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