Appcompat library for android - how it's linked with project

后端 未结 1 835
独厮守ぢ
独厮守ぢ 2020-12-12 06:37

In which way is android appcompat library linked with a project (where in code is that connection visible)? I tried to rename it just to see what\'s gonna happen and my proj

相关标签:
1条回答
  • 2020-12-12 06:43

    In Eclipse, to share the appcompat libraries across multiple Android projects, do the following:

    1. In Eclipse, select File | Import | Existing Projects into workspace. click Next.

    2. Click Browse, and browse to the directory of Android appcompat directory. The default directory should be: ..\android-sdk\extras\android\support\v7\appcompat\.

    3. Click Finish to add the new project.

    4. Select the Properties tab of an Android project.

    5. In the Properties screen, select the Android option (on the left pane), then click Add, and select the appcompat library from the list.

    6. Click OK to save the changes.

    Note: Repeat the above steps if you want to add other shared libraries into your Android projects.

    Whereas to embed the appcompat libraries in each of your Android project, just copy the JAR files from the appcompat's libs folder into your project's libs folder.

    0 讨论(0)
提交回复
热议问题