Android support v7 app cannot be resolved error

后端 未结 2 1108
终归单人心
终归单人心 2021-01-27 05:24

I am running eclipse juno on a 64 bit windows 8.1 machine, I have imported a project into eclipse, but the error i am facing is

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-27 06:00

    First of all

    Make sure that you've installed already the following libraries Android Support Library, Android Support Repository and Google Repository by checking in the Extra folder by openning the Android SDK Manager in eclipse.

    if it is already installed then add them to Eclipse

    Eclipse -> Import -> Existing Android Code into workspace.
    

    Add /android/adt-bundle/sdk/extras/android/support/v7/appcompat to your Eclipse workspace.

    Right click on the project in Eclipse and select properties.

    Select Android -> Library -> Add.
    Select appcompatv7 project and Save.
    

    Use import android.support.v7.app.ActionBar to import Action bar in activities and fragments.

提交回复
热议问题