android-support-v 7-appcompatの構成使用
2661 ワード
直接android-support-v 7-appcompat.JArパッケージをプロジェクトにコピーするlibs/以下は使用できません.具体的な方法については、公式ドキュメントで詳しく説明しています.
(開発環境はADT)
Using Eclipse
Create a library project based on the support library code: Make sure you have downloaded 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: Select File > Import. Select Existing Android Code Into Workspace and click Next. Browse to the SDK installation directory and then to the Support Library folder. For example, if you are adding the Click Finish to import the project. For the v7 appcompat project, you should now see a new project titled android-support-v7-appcompat. In the new library project, expand the Right-click the project and select Build Path > Configure Build Path. In the Order and Export tab, check the Uncheck Android Dependencies. Click OK to complete the changes.
You now have a library project for your selected Support Library that you can use with one or more application projects.
Add the library to your application project: In the Project Explorer, right-click your project and select Properties. In the Library pane, click Add. Select the library project and click OK. For example, the In the properties window, click OK.
(開発環境はADT)
Using Eclipse
Create a library project based on the support library code:
appcompat
project, browse to <sdk>/extras/android/support/v7/appcompat/
. 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
and android-support-v7-appcompat.jar
files to the build path. .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. You now have a library project for your selected Support Library that you can use with one or more application projects.
Add the library to your application project:
appcompat
project should be listed as android-support-v7-appcompat.