I would like to setup the Android v7 appcompat library in order to use the ActionBar. At
http://developer.android.com/tools/support-library/setup.html#
there is
OK, finally I found it out. The keywords are library project and command line.
In order to add the appcompat v7 as library project to an own project using the command line the following steps worked for me:
Create a copy of the folder android-sdk/extras/android/support/v7/appcompat
into the own project space. You may call it anything, we will keep the appcompat
name.
cd my_project
cp -r android-sdk/extras/android/support/v7/appcompat appcompat
Generate a build.xml file for the library project: execute
android update lib-project --path appcompat
reference the library project and create the dependency in the project's project.properties
file
android.library.reference.1=appcompat
build the main project:
ant clean debug
This will automatically build the support library, too. You generally need a clean build after adding a library or changing the target versions, so the build picks up all the changes.
These are useful resources: