然后打开eclipse生成android内容发现提示错误

ERROR: Unable to open class file D:\**\R.java: No such file or directory

ou’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. Android(安卓)Ant 编译
  2. android ndk开发
  3. android GreenDao数据库框架学习(1)
  4. Android(安卓)Studio生成APK自动追加版本号
  5. webrtc 针对 android 平台的编译和运行
  6. Android(安卓)dp方式的屏幕适配工具使用(Android(安卓)Studio插
  7. Android(安卓)Custom Dialog错误Unable to add window -- token
  8. android中常见的错误及解决办法
  9. Android(安卓)Studio经验积累之常见问题以及解决方式

随机推荐

  1. Sqoop_详细总结 使用Sqoop将HDFS/Hive/HB
  2. 不知道有人在mysql5.0上 针对10亿条数据
  3. mysql中的隐式提交
  4. MYSQL在触发器中怎样实现‘根据条件来确
  5. MySQL“在建立到SQL Server的连接时发生
  6. mysql has gone away 的问题解决 --- ODB
  7. PHP MYSQL无法在While或For循环中获取数
  8. MySQL的ibdata1文件占用过大瘦身
  9. 数据库keepalived部署文档
  10. 为什么我们的查询卡在MySql中的“写入网