commons-io-2.4.jar is showing as Native Platform w

2019-09-16 09:15发布

问题:

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.