[英]commons-io-2.4.jar both in the libs folder and in the Android Private Libraries - is it a mistake?
I have the same jar file commons-io-2.4.jar both in the libs folder and in the Android Private Libraries. 我在libs文件夹和Android私有库中都有相同的jar文件commons-io-2.4.jar。 Is this a mistake?
这是一个错误吗? I got into this situation because I added the jar file to the Private Libraries and then I was told that it should be in the libs folder.
我遇到了这种情况,因为我将jar文件添加到私有库,然后我被告知它应该在libs文件夹中。 I managed to put it in the libs folder, but I cannot delete it from the Private Libraries.
我设法将它放在libs文件夹中,但我无法从私有库中删除它。
It looks like a method from this jar file does not work, because my application does not do anything after I call this method. 看起来这个jar文件中的方法不起作用,因为我调用此方法后我的应用程序没有做任何事情。 And I don't get any error.
而且我没有任何错误。
Putting a .jar file in your libs folder should cause it to automatically show up in the Android Private Libraries section, so that should be fine. 将.jar文件放在libs文件夹中会导致它自动显示在Android私有库部分中,因此应该没问题。 What exactly is the method's expected behavior, and what is actually occurring?
该方法的预期行为究竟是什么,实际发生了什么?
Actually the commons-io-2.4.jar both in the libs folder and in the Android Private Libraries because Android Private Library folder references the jars in libs folder. 实际上commons-io-2.4.jar都在libs文件夹和Android私有库中,因为Android Private Library文件夹引用了libs文件夹中的jar。 Private Library folder only holds references and used these during the creation of apk.
私有库文件夹仅保存引用,并在创建apk时使用这些引用。 And you can delete references from this Private Libraries.
您可以删除此私有库中的引用。
According to my understanding you have to put commons-io-2.4.jar in assests folder and add it to add to build path and check order and export in Java Build Path. 根据我的理解,你必须将commons-io-2.4.jar放在assests文件夹中并添加它以添加到构建路径并检查顺序并在Java Build Path中导出 。 This works.
这有效。
我解决了这个问题,我需要将输入文件放在SD卡中并提供正确的路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.