简体   繁体   English

在Eclipse上首次创建android项目

[英]First android project creation on eclipse

Right now I'm trying to learn android programming but there's something wrong with the first step every time I'm creating a new android project in eclipse it's gives me a red x sing on some folders and i can't run anything cause it also gives me error msg ( please fix the errors then run) 现在,我正在尝试学习android编程,但是每次我在eclipse中创建新的android项目时,第一步都有问题,这使我在某些文件夹上出现了红色x字,并且我无法运行任何程序,这也导致它给我错误消息(请修复错误然后运行)

在此处输入图片说明

This means there is some error within the code which is in that specific folder or package. 这意味着该特定文件夹或程序包中的代码中存在一些错误。 Once you clear those errors, it should go away. 一旦清除了这些错误,它就会消失。 Is your "myfirstapp" program running when you hit run, or is there an error in the console below? 当您点击运行时,您的“ myfirstapp”程序是否正在运行,或者下面的控制台中是否有错误? That error corresponds to the red "x" that you are seeing. 该错误对应于您看到的红色“ x”。 Once you troubleshoot your errors, the x's on the folders and packages will disappear. 解决错误后,文件夹和软件包中的x将消失。 If you wan't, you can post the code you are having issues with, or look up the specific error that it is displaying for you and try to resolve it. 如果不愿意,您可以发布遇到问题的代码,或者查找为您显示的特定错误并尝试解决。 Best of luck! 祝你好运!

If you found this answer useful please like and mark as best answer. 如果您认为此答案有用,请标记为最佳答案。 It would help a lot! 这会很有帮助!

1) Because, In xml file first you have to solve the error. 1)因为,首先要在xml文件中解决错误。 2) After that clean the project error will automatically get resolved. 2)完成清理后,项目错误将自动得到解决。

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

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