进口Android包不能得到解决
我的Android应用程序,在Eclipse中建,突然构建失败,几十个错误。最明显的是错误表明所有的Android进口解决不了。
My android application, built inside Eclipse, suddenly fails to build with dozens of errors. The most obvious are errors indicating that all the android imports cannot be resolved.
import android.os.Bundle;
import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.media.AudioManager;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
所有这些被标记为未解析。我试着删除并重新添加JRE系统库。我试着清洗和重建。我已经尝试了快速修复选项修复项目设置...但是这只是一个对话框,说...
All of these are flagged as unresolvable. I've tried removing and re-adding the JRE System Library. I've tried cleaning and rebuilding. I've tried the "Quick fix" option to "Fix Project Setup..." but that simply responds with a dialog box that say...
否建议已发现修复无法解决的参考android.app.Bundle。点击此处手动配置项目静音模式切换的构建路径。
我是新的Android开发,这人有我彻底难倒。
I'm new to Android development and this one has me completely stumped.
在此先感谢您的帮助,您可以提供。
Thanks in advance for any help you can provide.
富
看来你的日食工作区
(或者至少你的项目
)以某种方式打破。
It seems that your eclipse-workspace
(or at least your Project
) is broken somehow.
你最近搬到你的 Android的SDK /项目?如果它不是一个Android项目了,尝试看看
preferences->的Android
一个有效的 Android SDK中定位
。
如果这是正确的,试图打开一个全新的工作区,并导入来源与文件>导入 - >的Android项目
从现有的资料来源。
If this is correct, try to open a complete new Workspace, and import your sources with File->import->Android Project
from existing Source.
如果这仍然没有帮助,做出一个新的Android 项目
和内手动复制源代码的项目
从外部的Eclipse
。重新打开Eclipse后,做出了项目 - >干净
If this still doesn't help, make a new android Project
and copy the sources manually inside your Project
from outside Eclipse
. Re-open Eclipse after that, and make a Project->clean