R.java 未使用 spring 和 Maven 生成
我正在使用 spring 和 maven 制作一个 android 项目,并且存在一个存在 R.java 的目标文件夹 但是当 Maven Install 时,它会给出 R.java 不存在的错误。 我已经尝试了所有其他帖子,没有任何帮助,
即使在清理后,R.java 也不会生成。
I was making an android project , with spring and maven
and when there is a target folder where R.java
is present
But when do Maven Install it gives error that R.java not there..
I have tried all other posts , nothing is helping ,
R.java is not generating even after clean.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在 Eclipse 中开发 Android 项目吗?在这种情况下,需要做一些工作才能使 ADT 与 Maven/M2Eclipse 良好配合。请参阅我的项目:
https://code.google.com /a/eclipselabs.org/p/m2eclipse-android-integration/
Are you developing your Android project inside Eclipse? In which case some work is needed to get the ADT to play nice with Maven/M2Eclipse. Please see my project:
https://code.google.com/a/eclipselabs.org/p/m2eclipse-android-integration/
只要未生成生成的 R 类,就表明由于 XML 资源的某些解析问题,生成它时出现问题。检查 IDE 中的错误控制台以找出具体错误所在。
常见问题有:
strings.xml
中存在未转义字符,例如youre
而不是you\'re
layout_width布局资源中的
或layout_height
标签Whenever your generated R class isn't generated, it indicates that there's a problem with generating it due to some parsing issue from the XML resources. Check the error console in your IDE to figure out what's specifically wrong.
Common problems are:
strings.xml
, for instanceyou're
instead ofyou\'re
layout_width
orlayout_height
tags in layout resources