简体   繁体   English

如何在Eclipse中更改Android的Java构建路径?

[英]How to change Java Build Path for Android in Eclipse?

I'm having a build problem with a specific file that I'm not being able to change the path on my Android project. 我的特定文件存在构建问题,无法更改Android项目上的路径。 Here is a picture of the problem: 这是问题的图片:

在此处输入图片说明

How do I change this Path: /Users/apple/Downloads/dolphin_player/p/libs shown in the picture? 如何更改此路径:图片中显示的/ Users / apple / Downloads / dolphin_player / p / libs

Change it from the libraries tab. 从库选项卡更改它。 You cannot do it from the order and export tab. 您无法通过“订单和导出”标签执行此操作。

选项卡上,删除或编辑它。

Its very simple, just follow these steps, 非常简单,只需执行以下步骤,

  • Right click on your project, select properties, 右键点击您的项目,选择属性,
  • From the dialogbox select "Java Compiler" in left part, see image 从对话框的左侧选择“ Java编译器”,请参见图像

在此处输入图片说明

It depends on the which version of java you are using.Just go to library tab and do following. 这取决于您使用的Java版本,只需转到库选项卡并执行以下操作即可。

If you are using the 1.6 version of java the whenever you want to add any third party jar files you have to add it by adding external jar file in the library option. 如果您使用的是1.6版的Java,则无论何时要添加任何第三方jar文件,都必须通过在library选项中添加外部jar文件来添加。

If you are using the 1.7 version of java then you have to make a folder called libs and put the all the external jar files in this folder. 如果使用的是1.7版本的Java,则必须创建一个名为libs的文件夹,并将所有外部jar文件放入此文件夹。 It will automatically add the files to yous build path and add it in "Android Dependencies" . 它将自动将文件添加到您的构建路径,并将其添加到“ Android Dependencies”中

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

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