简体   繁体   English

导入一个现有的项目来蚀给我很多错误

[英]Importing an existing project to eclipse is giving me a lot of errors

I imported an existing android project and I just can't get it to work. 我导入了一个现有的android项目,但无法正常工作。 I'm pretty sure the problem is here 我很确定问题出在这里 在此处输入图片说明

At first, all 3 of those has a red cross at them but I fixed android-support-v4 and google-play-serives, but I just can't find google-play-services_lib anywhere, it's supposed to be in the google-play-services/bin folder, but I don't have that folder, I only have libs folder. 最初,所有这三个都有一个红叉,但我修复了android-support-v4和google-play-serives,但我只是在任何地方都找不到google-play-services_lib,应该在google- play-services / bin文件夹,但我没有该文件夹,只有libs文件夹。

Another problem is also that when I try to open ANYTHING in the project (for example, android manifest or any .java file) it throws me this error. 另一个问题是,当我尝试在项目中打开任何内容(例如android清单或任何.java文件)时,都会引发此错误。

在此处输入图片说明

Any idea how I could solve my problem? 知道如何解决问题吗?

Remove all jar files from java build path and follow these steps 从Java构建路径中删除所有jar文件,然后执行以下步骤

You should try this:
  1. Remove all references to the JAR in your project from Java project -> properties -> Java build path -> libraries 从Java项目->属性-> Java构建路径->库中删除项目中对JAR的所有引用

  2. Create a libs folder if not exist at the root of your project Copy the JAR into the libs folder. 如果项目的根目录不存在,则创建一个libs文件夹。将JAR复制到libs文件夹中。

  3. If still not running OK. 如果仍然无法运行,请确定。 Right click your project > Android Tools > Fix Project Properties 右键单击您的项目> Android工具>修复项目属性

clean your project and run. 清理您的项目并运行。 it will work 它会工作

Seems like you are missing google-play-services-lib from your project.If you cant find it then please refer to this question 似乎您的项目中缺少google-play-services-lib。如果找不到,请参考此问题

https://stackoverflow.com/a/14137511/1238731 https://stackoverflow.com/a/14137511/1238731

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

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