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

后端 未结 30 2253
误落风尘
误落风尘 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 did the following in Eclipse with the Android Support Library (APL) project and the Main Project (MP):

    1. Ensured both APL and MP had the same minSdkVersion and targetSdkVersion.

    2. Added APL as a build dependency for MP:

      1. Going into "Properties > Java Build Path" of MP, and then

      2. Selecting the "Projects" tab and adding APL.

    3. In the properties of MP, under "Android", added a reference to APL under library.

    1 and 2 got the references to Java classes working fine...however I still saw the error in the manifest.xml for MP when trying to reference @style/Theme.AppCompat.Light from APL. This only went away when I performed step 3.

提交回复
热议问题