简体   繁体   English

找不到Android依赖文件夹-Google Glass

[英]Android depependency folder not found- Google glass

I have added external jars into libs folder, But they get added into android private libraries .In my build path I don't see them under android dependencies.they get added to android private libraries.Also I get an error once I close and open the properties window of my project.Please find snapshot. 我已经将外部jar添加到libs文件夹中,但是它们被添加到android私有库中。在我的构建路径中,我没有在android依赖项下看到它们。它们被添加到android私有库中。而且一旦我关闭并打开,我也会收到错误消息我项目的属性窗口。请找到快照。 在此处输入图片说明

I have tried cleaning my project and fixing my project properties.But that doesn't help. 我尝试清理项目并修复项目属性,但这无济于事。

Here is my project.properties 这是我的project.properties

target=Google Inc.:Glass Development Kit Preview:19
android.library.reference.1=../tess-two-master/tess-two

EDIT: This issue is specific to GDK preview.For a normal android project the below answers work perfect. 编辑:此问题特定于GDK预览。对于普通的android项目,以下答案很完美。 I am getting this issue only in Google glass projects . 我仅在Google Glass项目中遇到此问题

From here 从这里

A good way to add external JARs to your Android project or any Java project is: 将外部JAR添加到您的Android项目或任何Java项目的一种好方法是:

  1. Create a folder called libs in your project's root folder 在项目的根文件夹中创建一个名为libs的文件夹
  2. Copy your JAR files to the libs folder 将您的JAR文件复制到libs文件夹
  3. Now right click on the Jar file and then select Build Path > Add to Build Path, which will create a folder called 'Referenced Libraries' within your project 现在,右键单击Jar文件,然后选择“构建路径”>“添加到构建路径”,这将在您的项目中创建一个名为“参考库”的文件夹。

By doing this, you will not lose your libraries that are being referenced on your hard drive whenever you transfer your project to another computer. 这样,您将项目转移到另一台计算机时,就不会丢失硬盘驱动器上正在引用的库。

You can try this: 您可以尝试以下方法:

Your Project -> right click -> Properties -> Java Build Path -> Libraries -> Add Jar -> tess-two.jar 您的项目->右键单击->属性-> Java构建路径->库->添加Jar-> tess-two.jar

If that doesn't help then try referring to this video link. 如果这样做没有帮助,请尝试参考视频链接。

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

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