Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Steps to import and use appcompat v7 support library in your project

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 2.42k
    Comment on it

    If you want to use the ActionBar APIs in the support library. So before you can add the action bar, you must have to set up your project with the appcompat v7 support library.

    Steps given below to import and setup appcompat v7 support library in your project:-

    Make sure you have to download the Android Support Library using the SDK Manager. Create a library project and ensure the required JAR files are included in the project's build path:

    1. Select File > Import.
    2. Select Existing Android Code Into Workspace and click Next.
    3. .Browse to the SDK installation directory and then to the Support Library folder. For example, if you are adding the appcompat project, browse to /extras/android/support/v7/appcompat/.
    4. Click Finish to import the project. For the v7 appcompat project, you should now see a new project titled android-support-v7-appcompat.
    5. In the new library project, expand the libs/ folder, right-click each .jar file and select Build Path > Add to Build Path. For example, when creating the the v7 appcompat
      project, add both the android-support-v4.jar andandroid-support-v7-appcompat.jar files to the build path.
    6. Right-click the library project folder and select Build Path > Configure Build Path.
    7. In the Order and Export tab, check the .jar files you just added to the build path, so they are available to projects that depend on this library project. For example, the
      appcompat project requires you to export both the android-support-v4.jar and
      android-support-v7-appcompat.jar files.
    8. Uncheck Android Dependencies.
    9. Click OK to complete the changes.

    Hope it helps you..

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: