Skip to content Skip to sidebar Skip to footer

Duplicate Classes From Jetified-aws-android-sdk And Jetified-aws-java-sdk

I have an Android app that explicitly uses the latest (v2.15.+) version of Amazon's AWS library, but it also has a dependency on an ungodly huge library (netcdf4) that appears to b

Solution 1:

To answer your question as asked, you would do something like the following:

dependencies {
  ...
  implementation('edu.ucar:netcdf4:4.6.11') {
    exclude group: 'com.amazonaws', module: 'aws-java-sdk-s3'
  }
}

That will exclude the aws-java-sdk-s3 dependency from the old netcdf-java artifact. Unfortunately, version 2 of the AWS SDK isn't necessarily compatible with version 1 of the AWS SDK, so this will likely not work if any of the netcdf-java code needs to use any of the AWS SDK code. The good news is that netCDF-Java is now on version 5.3.2, and it uses version 2 of the AWS SDK.

Secondly, are you trying to write netCDF-4 files? If not, then you do not need the netcdf4 artifact. Depending on your goal, you may only need the cdm-core artifact (which will allow you to read HDF4/5, netCDF3/4 files locally, or data from remote protocols like DAP2, cdmremote, etc.). For more information on the various artifacts, please see https://docs.unidata.ucar.edu/netcdf-java/current/userguide/using_netcdf_java_artifacts.html

Post a Comment for "Duplicate Classes From Jetified-aws-android-sdk And Jetified-aws-java-sdk"