Ubuntu 64-bit system created Android project could not find R file

Source: Internet
Author: User

Original address

http://blog.csdn.net/yuxingxing198812/article/details/13773441

The following is the original text:

Environment: Kubuntu 12 (one of many Ubuntu branches, it uses the KDE Plasma desktop as its default desktop environment. It uses the same software library as Ubuntu. Basically, Kubuntu and Ubuntu don't have much of a difference, but the default desktop system uses KDE, not gnome. The JDK is Sun's Sun Jdk6.0,android SDK for the newest, ADT-based ADT plugin on Google's website.

Issue: When you create Android project above, you will see a situation where r files cannot be found. At first it was assumed that the version of ADT was inconsistent with the version of the Android SDK. After all the updates will still have a problem, in the online search is said to be missing ia32-lib, but in Ubuntu through the sudo apt-get ia32-lib installation When prompted to say has been replaced by LIB32Z1. Most of the web is updated with the sudo apt-get install update, but no matter how many times it repeats, there is no package. Later follow the prompts to install the replacement package lib32z1, but the problem that r file is not automatically generated in the Gen directory.

Workaround: Install additional dependent packages to resolve: sudo apt-get install lib32z1;

sudo apt-get install g++-multilib;

sudo apt-get install lib32ncurses5;

sudo apt-get install lib32bz-1.0;

After installing the package above, then re-clean the project under Eclipse, or restart eclipse. Problem solving.

----------------------------------------------------------Split Line------------------------------------------------------------ --------------------

The four packages listed in the original, the last one I did not install, but the R file also appeared.

Ubuntu 64-bit system created Android project could not find R file

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.