"R cannot is resolved to a variable" error occurred while Eclipse (using ADT)

Source: Internet
Author: User

On 64-bit Ubuntu, Eclipse uses ADT to view the Andorid App code, and finds a lot of red (error), suggesting that R cannot find "R cannot be resolved to a variable".
We all know that R.java is generated automatically, and you can refer to the resource in the app via R.
At the same time, a closer look, under gen/my.package/did not automatically generate R.java files.

The reason for this is that the automatic generation of R.java tools requires some libraries of 32bit, which may be missing by default on 64bit systems.
The solution is also simple, just install the required libraries, for example on Ubuntu:

The code is as follows Copy Code

jay@jay-linux:~$ sudo apt-get install ia32-libs


After you have installed the 32bit library, it is normal to refresh the project or restart Eclipse.

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.