简体   繁体   English

libs文件夹和Android私有库中的commons-io-2.4.jar - 这是一个错误吗?

[英]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.

相关问题 Java / Android-崩溃-Apache commons-io-2.4.jar - Java/Android - Crash - Apache commons-io-2.4.jar 将commons-io-2.4.jar文件添加到android studio项目 - Adding commons-io-2.4.jar file to android studio project Google Play“原生平台”显示了commons-io-2.4.jar - Google Play “Native platforms” showing commons-io-2.4.jar commons-io-2.4.jar显示为具有0个受支持设备的本机平台 - commons-io-2.4.jar is showing as Native Platform with 0 supported device 构建Android Bundle的问题-引发错误“文件'root / lib / commons-io-2.4.jar'使用保留的文件或目录名称'lib'” - Issue with building Android Bundle - throws error “File 'root/lib/commons-io-2.4.jar' uses reserved file or directory name 'lib'” Android eclipse-在libs文件夹和参考库中重复的android.jar - Android eclipse - android.jar duplicated in libs folder and Referenced Libraries ADT不会将Android私有库与libs文件夹同步 - ADT doesnt sync Android Private Libraries with libs folder Android Private Libraries,Dependencies和libs文件夹之间有什么区别? - What is the difference between Android Private Libraries, Dependencies and the libs folder? 从“Android私有库”中删除不在我项目的libs文件夹中的项目 - Remove item from “Android Private Libraries” that is not in my project's libs folder Android中的库不会添加到Android Private Libraries文件夹中 - Libraries are not adding into Android Private Libraries folder in Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM