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. 解决Cocos2d-x3.1编译生成Android程序出现Android(安卓)NDK:Abor
  2. android studio 打包release出现的错误
  3. Android(安卓)Studio打包时出现transformClassesWithDexForRelea
  4. Memory Analyzer(MAT)打开android eclipse Dump内存文件出现 Unkno
  5. AndroidStudio3.6导入项目出现unable to find valid certificati
  6. 使用eclipse创建android工程时得到警告
  7. Android
  8. Android(安卓)P WindowManager (一) 直观感受每个window的添加
  9. Qt for android 安装APP出现Failure [INSTALL_FAILED_USER_RESTR

随机推荐

  1. 【Android 应用开发】Ubuntu 下 Android
  2. android的设备永不休眠(增加 Settings-->D
  3. Android中onCreateOptionsMenu(Menu menu
  4. Android studio出现Error:Plugin is too
  5. Android OnTouchListener OnGestureListe
  6. android自动化测试工具简介
  7. Android中欢迎界面背景图片放大效果
  8. Android中获取实时网速(2)
  9. 【Android应用开发】-(19)Android 串口编程
  10. Android GridView的使用