You’ve just installed Eclipse , and attempted to create your first Android Application. When clicking create, you see an error similar to this: "Error: Unable to open class file R.java "

如果出现 “Error: Unable to open class file R.java No such file or directory”。

Solution:解决方法:

The “Build Path” for your Java environment is not setup correctly in Eclipse. To fix this, follow these steps:

1) Open the Preferences Window by clicking “Window -> Preferences”

2) Find the “Java” section and expand it

3) Select “Build Path

4) Change the value of Source and output folder from Folders to “Project

5) Click Apply and then “OK

Your problem should be resolved!

更多相关文章

  1. ok6410开发板android底层驱动模块编写,出现insmod:init_module ‘
  2. Android屏幕适配出现的原因
  3. eclipse:打开 eclipse 出现 “android sdk content loader 0%”
  4. Android第三方jar包ClassNotFind
  5. Android(安卓)Studio 出现 Gradle's dependency cache may be co
  6. Android(安卓)调用微信登陆、支付、分享,出现的白屏、黑屏、闪屏
  7. eclipse中开发Android出现问题解决记录和使用技巧
  8. React Native项目编译通不过, 出现 The "android" command is dep
  9. Android解决ImageView setRotation....等旋转时出现锯齿问题

随机推荐

  1. Android提高篇之SQLite分页读取
  2. Android 9.0 系统启动流程
  3. Ubuntu16.04编译ffmpeg
  4. Android开发:Android简单通用BaseFragment
  5. Android性能优化之布局优化
  6. android 中webview的屏幕适配问题
  7. android操作sdcard中的多媒体文件(一)——
  8. android 如何使用Wake Lock来节电?
  9. 多条未接来电只显示来电数,同时拨号应用通
  10. Android 开发工具介绍-SDK工具和平台工具