Android error: Unable to open class file R. Java

Source: Internet
Author: User
Hakuci Tag: Android

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"

If"Error:Unable to open class file R. Java no such file or directory ".

Solution: 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"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 shocould be resolved!

Select "project.

 

Other Android video tutorials can go to http://hakuci.qjwm.com/hakuci video tutorial Android download

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.