日食不承认任何进口 [英] Eclipse not Recognizing any imports

查看:152
本文介绍了日食不承认任何进口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎已经搞糟在Eclipse的东西。它是不承认任何我试图导入库。

I seem to have botched up something in Eclipse. It isn't recognizing any of the libraries that I am trying to import.

下面有一些东西不被认可:

Here are some of the things not being recognized:

import java.util.ArrayList;
import android.content.Intent;
import com.google.android.maps.MapView;

这是我下载,然后导入到Eclipse的一个开源项目。我想我还下载了谷歌API的方式不对,因为喜欢的东西的MapView不要在我的其他项目正常工作。是否有人可以帮助我吗?

This is a open source project that I downloaded and then imported into Eclipse. I think I also downloaded the google apis the wrong way because things like MapView don't work in my other projects as well. Can someone please help me out?

最好的,

Aneem

编辑:

固定,大部分的问题。通过鼠标悬停导入线,点击做到了修复项目设置...

Fixed, most of the issues. Did it by hovering mouse to import line and clicking "Fix project setup..."

现在我要做的唯一事情就是让谷歌地图API的相关工作。

Now the only thing I have to do is get the google map related API to work.

推荐答案

要检查您是否正确安装ADT
转到 - >窗口 - > preferences。
如果你看到的Andr​​oid(在preferences),这意味着你已经安装了ADT。

To check if you have properly installed ADT goto -> Window -> Preferences. If you see Android (in the preferences), it means you have ADT installed.

要指向有效的SDK目录,点击Android。指定的SDK位置的位置。

To point to the valid SDK directory, click on Android. Specify the location in the SDK location.

即使你已经正确安装ADT和SDK,也就是日食如果你导入(取决于项目和放大器;文件)可能无法识别的Andr​​oid项目的机会。
最好的办法是,创建一个新的Andr​​oid项目和文件从导入的项目复制到新创建的Andr​​oid项目。这肯定会工作。

Even if you have correctly installed ADT and SDK, there is a chance that eclipse may not recognize as the Android project if you import it(depends on the project & files). Best thing is, to create a new Android project and copy the files from the imported project to the newly created Android project. This will definitely work.

这篇关于日食不承认任何进口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆