In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to solve the missing R file of Eclipse new Android project prompt in Ubuntu". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to solve the missing R file of Eclipse new Android project prompt in Ubuntu"!
Environment:
64-bit Ubuntu12.04 for Android development, sun-JDK1.7, the latest ADT-Eclipse-SDK integration package downloaded from the official website. The JDK is configured correctly. SDK has been updated and the version is consistent
Question:
When you start Eclipse for the first time to create the first Android Application Project, an error occurs when the new project is created:
There is no R file under gen in the project.
Console:error while loading shared libraries: libncurses.so.5: cannot open shared object file No such file or directory
Problem analysis:
The R file in the Android project is automatically generated when compiling. Generally, it needs to be compiled once when it is newly built, and it is also compiled when it is saved and run. At this time, the R file will be updated. Moreover, if there are errors in the project, such as errors in the XML file, capitalization of the XML file name, etc., it will lead to compilation errors, and the R file will be lost.
Android SDK is compiled under a 32-bit GNU/Linux system, while my system is 64-bit, so the compilation itself is not successful after the new project is built, so it is impossible to generate R files, which leads to the loss of R files.
The 64-bit Linux system can run 32-bit software, but 32-bit class libraries must be installed, so the problem can be easily solved.
Solution:
Open the terminal and download the 32-bit class library:
The code is as follows:
Sudo apt-get update
Sudo apt-get install ia32-libs
At this point, I believe you have a deeper understanding of "how to solve the missing R file of Eclipse new Android project prompt in Ubuntu". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.