Android Library Import delete R

前端 未结 3 2007
陌清茗
陌清茗 2021-01-13 18:28

I\'m making a new android app, and I am using the action bar sherlock library.

I imported the library as a project and got two errors. First, all my layouts are not

3条回答
  •  感情败类
    2021-01-13 18:48

    Please note that to compile an android project successfully and to have it run on older version of android is (mostly) a different thing.

    for your answer, android:Theme.Holo is android Honeycomb and above theme. So ActionbarSherlock & your project must be compiled with (minimum) API level 11 (Android 3.0). Usually I just pick ICS (14+)

    to have it run on older version of android: open your project manifest file, change the line:

    
    

    to

    
    

    Your android app can run from API level 7 (2.2) to API level 14 (4.0). You can test by running it with 2.2 emulator.

    Note that ActionbarSherlock doesn't run with API level lower than 7.

提交回复
热议问题