“找不到 API 数据库;未执行 API 检查”在带有 Eclipse 的 Android App SDK 中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22961943/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"Can't find API database; API check was not performed" in Android App SDK with Eclipse
提问by user3515135
I'm starting a new Android App using the Android SDK on Eclipse, build tools 19.0.2, on a Windows 7 PC. At some point during my work, I started receiving the error "Can't find API database; API check was not performed". This error is not shown in the code but instead shows a red X in the project folder and a line one error in the Problems window. There is a previous question on this topic but that did not work for me. I have already tried adjusting the target and minimum SDK versions in the manifest and re-installed the SDK multiple times. This problem also occurs with the only other project in my work space and shows the same error. Thanks in advance for any help.
我正在 Eclipse 上使用 Android SDK 启动一个新的 Android 应用程序,在 Windows 7 PC 上构建工具 19.0.2。在我工作的某个时候,我开始收到错误“找不到 API 数据库;未执行 API 检查”。此错误未显示在代码中,而是在项目文件夹中显示一个红色 X,并在“问题”窗口中显示第一行错误。之前有一个关于此主题的问题,但这对我不起作用。我已经尝试在清单中调整目标和最低 SDK 版本并多次重新安装 SDK。我的工作空间中唯一的其他项目也会出现此问题,并显示相同的错误。在此先感谢您的帮助。
回答by Kai
For me, Eclipse --> Project --> Clean...is enough set everything right again:
对我来说,Eclipse --> Project --> Clean...重新设置一切就足够了:
回答by Deqing
Following works for me:
以下对我有用:
- Make sure you installed SDKs listed in your
manifest.xml
, i.e. mini version and target version. - Click the icon with red
x
on the right hand side tool bar, which has tip of 'Problems(...)' if you move your cursor over it. - Right click on your error, choose
quick fix
. - Choose
Disable Check in This Project
- 确保您安装了在您的 中列出的 SDK
manifest.xml
,即迷你版本和目标版本。 - 单击
x
右侧工具栏上带有红色的图标,如果您将光标移到它上面,它会显示“问题(...)”的提示。 - 右键单击您的错误,选择
quick fix
。 - 选择
Disable Check in This Project