简体   繁体   English

FTPClient构造函数使用最新的SDK工具和ADT失败

[英]FTPClient constructor fails with latest SDK tools and ADT

I have code which worked fine with previose version of SDK tools and ADT (v16). 我的代码可以与早期版本的SDK工具和ADT(v16)配合使用。 But after I updated both to v19 apache commons FTPClient constructor call cause program to crash without even throwing any exception! 但是在我将两者都更新到v19以后,apache commons FTPClient构造函数调用导致程序崩溃,甚至没有引发任何异常! Following line of code causes crash whenever I put it in my code: 每当我将以下代码放入代码中时,都会导致崩溃:

FTPClient client = new FTPClient();

I've tried to solve the issue by taking latest commons.net library (v3.1) but it did not help. 我试图通过采用最新的commons.net库(v3.1)解决此问题,但没有帮助。 I'm using SDK 2.2 (API 8). 我正在使用SDK 2.2(API 8)。 Any thoughts? 有什么想法吗?

Thanks you in advance. 预先谢谢你。

Solved. 解决了。 The problem was in new way of libs referencing introduced in ADT 17. Here is the link with solution that helped me: http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17 问题出在ADT 17中引入的新的库引用方式。这是对我有帮助的解决方案链接: http : //android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderrorerror-with-adt- 17

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM