I had R.java file in my android application. But I don't know, It is delete some how. To create it again I clean my project and also Rebuild my project by clicking on Build Project. I do not know what is the problem. It is not getting created again. Generally It gets created automatically whenever I build project.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
You can create R.java file using aapt tool by executing following command.
Generate Resource java code and packaged Resources
You can find more detail about options on this link
http://www.herongyang.com/Android/Project-aapt-Android-Asset-Packaging-Tool.html
If you are facing this problem after updating ADT, you should install that Android Build Tools . In my case installing Build Tools and restarting eclipse solved this problem.
Some quick solutions to your problem might be,
R.java
class that is automatically generated when you build.R
is a generated class. If you are using the Android Development Tools (ADT) it is generated whenever the project is built. You may have 'Build Automatically' turned off. Turn it on and build your project.import android.R;
yeah,maybe there are some error in your layou or drawable dir. see the [problems tag] to get more detail
Try this:
R.java
classctrl+space
. Eclipse will try to codehint you, automatically importing the correctR.java
.