简体   繁体   English

根据使用Eclipse的android开发人员指南,支持库设置问题

[英]Issue with support library setup as per android developer guide using Eclipse

I've been through all of the subjects and all over Internet to try solving this problem, but can't seem to find any solution. 我已经浏览了所有的主题和整个互联网试图解决这个问题,但似乎无法找到任何解决方案。

Basically I've followed every step here Support Library Setup - Adding libraries with resources , but can't figure out the last one. 基本上我已经按照这里的每一步支持库设置 - 使用资源添加库 ,但无法弄清楚最后一个。

Add the library to your application project: 将库添加到您的应用程序项目:

  1. In the Project Explorer, right-click your project and select Properties. 在Project Explorer中,右键单击项目,然后选择“属性”。
  2. In the Library pane, click Add . 在“库”窗格中,单击“ 添加”
  3. Select the library project and click OK. 选择库项目,然后单击“确定”。 For example, the appcompat project should be listed as android-support-v7-appcompat. 例如,appcompat项目应列为android-support-v7-appcompat。
  4. In the properties window, click OK. 在属性窗口中,单击“确定”。

Now the problem is in library pane I see multiple add options (Add JARs, Add External JARs, Add Variable, Add Library Add Class Folder and Add External Class Folder) 现在问题是在库窗格中我看到多个添加选项(添加JAR,添加外部JAR,添加变量,添加库添加类文件夹和添加外部类文件夹)

Can anyone give me a bit more detailed explanation what I actually need to add? 谁能给我一些更详细的解释我实际需要添加什么?

The only place I see only Add option is "Projects" pane. 我只看到添加选项的唯一地方是“项目”窗格。

Cheers, DP 干杯,DP

This is to add a library that u got to your android application. 这是为了添加你的Android应用程序库。 So you can publish your app with the library to use it. 因此,您可以使用库发布您的应用程序以使用它。

Like Actionbar sherlock , angEngine , admob or any other library. Actionbar sherlockangEngineadmob或任何其他库。 To let your application support it, you should add it to it's project first. 要让您的应用程序支持它,您应该首先将它添加到它的项目中。

And best way is to choose Add External JARS , or anything you would like. 最好的方法是选择Add External JARS ,或任何你想要的。

First import the library into your workspace (where your androi project is). 首先将库导入您的工作区(您的androi项目所在的位置)。 Import the library to eclipse. 将库导入eclipse。 It is found under /sdk/extras/android/support/v7/appcompact . 它位于/sdk/extras/android/support/v7/appcompact

Right click on your android project. 右键单击你的android项目。 Goto properties. 转到属性。 Choose android. 选择android。 Click Add browse and add reference the same in your android project 单击添加浏览并在Android项目中添加相同的引用

Click add browse and add the library project 单击“添加浏览”并添加库项目

在此输入图像描述

When you add it looks like below 当你添加它时,如下所示

在此输入图像描述

Do it the easy way : right click your project folder in the Package Explorer or Navigator, then look for Android Tools > Add Support Library. 这样做很简单:右键单击Package Explorer或Navigator中的项目文件夹,然后查找Android Tools> Add Support Library。 A dialog with open to ask you to accept the license. 打开一个对话框,要求您接受许可证。 Accept, click Install, and you're good to go ;-) 接受,单击安装,你很高兴;-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM