我试图制作一个简单的应用程序,从网站获取 html 代码,但它无法正常工作,这让我抓狂...... 我正在我的智能手机 Zopo zp780 上测试它,当我不小心打开模拟器时,它工作了,所以如果您知道这个错误是什么,任何人都可以检查一下...
这是我的代码:
public class Glavna extends Activity{
TextView httpStuff;
String brija;
HttpClient client;
HttpGet request;
HttpResponse response;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.tviter);
httpStuff = (TextView) findViewById(R.id.tvHttp);
try {
Log.e("test", "1");
client = new DefaultHttpClient();
Log.e("test", "2");
request = new HttpGet("http://www.vogella.com");
Log.e("test", "3");
response = client.execute(request);
Log.e("test", "4");
// Get the response
BufferedReader rd;
Log.e("test", "5");
rd = new BufferedReader (new InputStreamReader(response.getEntity().getContent()));
Log.e("test", "6");
String line = "";
while ((line = rd.readLine()) != null) {
Log.e("test", line);
httpStuff.append(line);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
这是 LogCat:
05-21 00:27:18.837: E/test(10993): 1
05-21 00:27:18.838: E/test(10993): 2
05-21 00:27:18.840: E/test(10993): 3
05-21 00:27:18.910: E/linker(10993): load_library(linker.cpp:759): library "libmaliinstr.so" not found
05-21 00:27:18.918: E/(10993): appName=com.brija.hewbostonhttpbrija, acAppName=com.android.cts.openglperf
05-21 00:27:18.918: E/(10993): 0
05-21 00:27:18.918: E/(10993): appName=com.brija.hewbostonhttpbrija, acAppName=com.android.browser
05-21 00:27:18.918: E/(10993): 0
我在网上搜索下载这个 libmaliinstr.so 但我找不到它,而且我不知道在哪里安装它......请帮忙
最佳答案
这似乎是一些亚洲制造的设备普遍存在的问题。我的 HTC Desire 发生了这种情况,并且还有其他几个 SO 线程提到了它:
Library "libmaliinstr.so" not found
library "libmaliinstr.so" not found.... in eclipse
尽管它在 LogCat 中作为明显的错误出现,但我从未遇到过由于找不到该库而导致应用程序无法运行的问题。因此,我得出的结论是,没有它我可以生活,我的应用程序也可以:)
关于java - load_library(链接器.cpp :759): library "libmaliinstr.so" not found simple http GET on device,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23771114/