Error: Unable to open class file R.java
2010-10-25 11:02
453 查看
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"
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!
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!
相关文章推荐
- 转载 Android Error: Unable to open class file R.java
- Android Error: Unable to open class file R.java
- ERROR: Unable to open class file E:\。。。\R.java: Permission denied
- ERROR: Unable to open class file R.java
- Android Error: Unable to open class file R.java
- Android Error: Unable to open class file R.java
- Android Error: Unable to open class file R.java
- Android Error: Unable to open class file R.java
- ERROR: Unable to open class file R.java :No such file or directory
- Error: Unable to open class file R.java
- Android:Help with “Error: Unable to open class file R.java” zz
- Android Error: Unable to open class file R.java
- 一个异常:Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.rssReader.st
- java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.
- 严重: Null component Catalina:type=JspMonitor,java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to
- bug之java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class
- java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ex.activity/com.ex.activity.LoginActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class
- java.lang.unsupportedclassversionerror bad version number in .class file unable to load class
- java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class
- java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.