您的项目包含错误(S),请运行它之前将其修复您的、将其、错误、项目

由网友(输过没服过)分享简介:我开发简单的Andr​​oid应用程序。但是,当我运行Eclipse告诉我的错误:I am developing simple android application. But when I run eclipse tell me the error:您的项目包含错误(S),请运行它之前将其修复。Your proj...

我开发简单的Andr​​oid应用程序。但是,当我运行Eclipse告诉我的错误:

I am developing simple android application. But when I run eclipse tell me the error:

您的项目包含错误(S),请运行它之前将其修复。

Your project contains error(s), please fix it before running it.

我找不到我的项目中的任何错误或出现在我的应用程序没有错误。 有下应用程序的名称红色叉但它不是在另一文件名。

I can't find any error in my project or there is no error in my application. There is a red cross under the application name but it is not under another file name.

有没有人有这个问题?

推荐答案

这通常是从构建路径错误。

That usually comes from errors in the build path.

如果您使用的是Eclipse,有一种说法,您可以添加,列出所有的所谓的问题的错误:

If you're using eclipse, there is a view you can add that lists all the errors called "Problems":

否则,您可以尝试清理项目,并通常会解决一些问题。

Otherwise, you can try to clean the project, and that usually solves a few problems.

最后,如果您添加或更改从IDE外部的资源,你需要重新加载资源和清洁。

Finally, if you add or alter resources from outside your IDE, you'll want to reload the resources and clean.

修改的(由匿名用户评论)的

这也可以通过固定一个过时的调试证书引发如下:

This can also be caused by an out of date "Debug Certificate" fixed as follows:

如果所有的失败,那么这一定有解决方案:

〜/ .android / debug.keystore 删除调试证书(在Linux和Mac OS X);该目录是像%USERPROFILE%/。在Windows上的android 。的

Delete your debug certificate under ~/.android/debug.keystore (on Linux and Mac OS X); the directory is something like %USERPROFILE%/.androidon Windows.

Eclipse的插件应该然后生成一个新的证书,当你下次尝试建立一个调试包。您可能需要清理,然后构建生成证书。

The Eclipse plugin should then generate a new certificate when you next try to build a debug package. You may need to clean and then build to generate the certificate.

这也是另一个修复的setContentView(R.layout.main);错误,指出它无法找到R.layout.main实际产生的。 (R 1不能被解析到一个变量)。

This is also another fix for the "setContentView(R.layout.main);" error that says it cannot find R.layout.main when it is actually generated. (R cannot be resolved to a variable).

这也是错误的另一个修复你的项目有错误......,你找不到任何。 清理并重建仍需要产生一个新的调试证书后。

This is also another fix for the error "Your project has errors..." and you cannot find any. Clean and rebuild are still necessary after generating a new debug certificate.

阅读全文

相关推荐

最新文章