共享库的问题在Ubuntu日食 [英] shared library problems with eclipse on Ubuntu
问题描述
我使用Ubuntu LTS 14.04 64位的。我安装了Eclipse火星。创造的hello world应用程序。但R类总是失踪,从来没有产生。
I am using ubuntu 14.04 LTS 64 bits. and i installed eclipse Mars. and created "hello world" App. but the R class is always missing and never generated.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);//R cannot be resolved to a variable
}
和我做了如下因素:
-clean项目。
在-delete根文件夹中的文件被自动重新
-delete the files in gen folder to be regenerated automatically
-checked的XML文件在您的资源文件夹和所有没有错误
-checked the XML files in your resource folders and all has no errors
右汉字 - 点击查看我使用正确的API
-right-click on the project->properties->Android to check that i am using the correct API
但上述步骤没有解决问题。
but the above mentioned steps did not solve the problem.
和控制台输出显示以下内容:
and the console output shows the following:
00] /home/guanr/Downloads/android-sdk-linux/build-tools/23.0.1/aapt: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
Test_01] /home/guanr/Downloads/android-sdk-linux/build-tools/23.0.1/aapt: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
请让我知道如何解决这个问题。
please let me know how to solve it
推荐答案
看起来你需要安装GCC库:
Looks like you need to install gcc library:
sudo apt-get install gcc-multilib
这篇关于共享库的问题在Ubuntu日食的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!