Android ADT版本22,R.java文件未生成 [英] Android ADT version 22, R.java files not generated

查看:128
本文介绍了Android ADT版本22,R.java文件未生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到Android ADT版本22并清理我的项目后,R.java文件丢失。我不能使用setViewContent(R.layout.activity_main),因为活动无法引用xml布局(由于缺少R.java)。另外,当使用(ctrl + space)获取setContentView的建议时,不会输入代码。在查看错误日志时,会显示有一个未处理的事件循环异常。所涉及的插件是org.eclipse.ui。

After upgrading to Android ADT version 22 and cleaning my project, the R.java files went missing. I can't use setViewContent(R.layout.activity_main) because the activity cannot reference to the xml layout (due to the missing R.java). Also, when using the (ctrl + space) to get suggestions for setContentView, the code is not typed in. Upon looking at the error log, it shows that there was an "Unhandled event loop exception". The plug-in involved is the org.eclipse.ui.

此外,每当我创建一个新的Hello World项目时,gen文件夹为空。
经过几个小时,我试过android工作室。但我不喜欢那里。然后,当我回到Eclipse时,有一个SDK平台工具和构建工具的更新。我更新了他们,但我仍然收到错误。

Also, whenever I create a new Hello World project, the gen folder is empty. After a few hours, I tried the android studio. But I didn't like it there. Then, when I went back to Eclipse, there was an update for SDK platform tools and build tools. I updated them but I still get the errors.

我尝试清理项目,但没有运气。似乎有什么问题?

I tried cleaning the project but no luck. What seems to be the problem?

推荐答案

我有同样的问题解决了。

I had the same problem just solved it.

检查: Java / Eclipse - 不再R文件

更多信息: https://groups.google.com/forum/?fromgroups=#!topic/android-developers/rCaeT3qckoE%5B1-25-false %5D

这篇关于Android ADT版本22,R.java文件未生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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