commons-io-2.4.jar is showing as Native Platform with 0 supported device

筅森魡賤 提交于 2020-01-06 04:33:31

问题


I Have developed an APP using apache commons-io-2.4.jar for network data operations now I want to deploy my APK in Play store.

I have deployed my app version 1.0 with commons-io-2.4.jar then its not showing any supported device and commons-io-2.4.jar is showing as Native Platform but when i have remove this commons-io-2.4.jar in 1.3 version its showing me something 9K supported devices.

Problem is that i have not define any NDK configuration but this jar file still showing as native Platform.

can Anyone help me to deploy my App with commons-io-2.4.jar in my app.

Any help would be great appreciated.


回答1:


Following up on this I had the same issue.

All Android devices were incompatible with my app. The message was 'Doesn't support required ABI - commons-io-2.4.jar'

I had to exclude the commons.io from apache in the build.gradle.

configurations.all {
    resolutionStrategy {
        exclude module: 'org.apache.commons.io'
    }
}

Then include my own downloaded commons-io 2.6 from mvnrepo

implementation files('libs/commons-io-2.6.jar')

Make sure to add the jar file in libs directory and right click to 'Add as Library'. Hope this helps someone.



来源:https://stackoverflow.com/questions/46389757/commons-io-2-4-jar-is-showing-as-native-platform-with-0-supported-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!