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 project gave me errors everywhere...

Also, is it possible to somehow use only one appcompat library for all projects?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top