Appcompat库机器人 - 它是如何与项目挂钩它是、机器人、项目、Appcompat

2023-09-13 02:16:11 作者:我要去拯救世界i

在该方式也是Android appcompat库与项目挂钩(如以code是连接可见的)?我试图重新命名它只是为了看看有什么要发生的事,我的项目给了我到处错误...

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...

此外,是否有可能以某种方式只使用一个appcompat库的所有项目?

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

推荐答案

在Eclipse中,要共享多个机器人项目appcompat库,请执行以下操作:

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

在Eclipse中,选择文件|进口|现有项目到工作区。点击下一步

点击浏览,然后浏览到Android的目录appcompat目录。默认的目录应该是: .. \ Android的SDK \演员\机器人\ SUPPORT \ V7 \ appcompat \

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

点击完成,以增加新的项目。

Click Finish to add the new project.

选择属性的Andr​​oid项目的标签。

Select the Properties tab of an Android project.

在属性屏幕中,选择机器人选项(在左窗格中),然后点击添加,并选择appcompat库从列表

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

点击确定以保存更改。

请注意:如果要添加其他共享库到你的Andr​​oid项目,重复上面的步骤

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

而至的嵌入的的appcompat库中每一个你的Andr​​oid项目,刚刚从appcompat的库文件夹中的JAR文件复制到项目的库文件夹。

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.