Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

this sdk is not compatible with lastest aws sdk: 2.4.0 #49

Open
richardfat7 opened this issue Mar 22, 2017 · 0 comments
Open

this sdk is not compatible with lastest aws sdk: 2.4.0 #49

richardfat7 opened this issue Mar 22, 2017 · 0 comments

Comments

@richardfat7
Copy link

This morning aws sdk released 2.4.0. I compile my project again and got this:

Building and installing the app on the device (cd android && gradlew.bat install Debug)...
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-core/2.4.0/aw s-android-sdk-core-2.4.0.pom
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-pom/2.4.0/aws -android-sdk-pom-2.4.0.pom
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-core/2.4.0/aw s-android-sdk-core-2.4.0.jar
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-ddb/2.4.0/aws -android-sdk-ddb-2.4.0.pom
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-ddb/2.4.0/aws -android-sdk-ddb-2.4.0.jar
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-lambda/2.4.0/ aws-android-sdk-lambda-2.4.0.pom
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-lambda/2.4.0/ aws-android-sdk-lambda-2.4.0.jar
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-s3/2.4.0/aws- android-sdk-s3-2.4.0.pom
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-kms/2.4.0/aws -android-sdk-kms-2.4.0.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-io/1.3.2/commons -io-1.3.2.pom
Download https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk16/1.44/bcprov-j dk16-1.44.pom
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-kms/2.4.0/aws -android-sdk-kms-2.4.0.jar
Download https://jcenter.bintray.com/org/apache/commons/commons-io/1.3.2/commons -io-1.3.2.jar
Download https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk16/1.44/bcprov-j dk16-1.44.jar
Download https://jcenter.bintray.com/com/amazonaws/aws-android-sdk-s3/2.4.0/aws- android-sdk-s3-2.4.0.jar
....
:app:dexDebugUnknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dex.DexException: Multiple dex files define Lo rg/apache/commons/io/CopyUtils;
Unknown source file : at com.android.dx.merge.DexMerger.readSortableTypes(DexM erger.java:596)
Unknown source file : at com.android.dx.merge.DexMerger.getSortedTypes(DexMerg er.java:554)
Unknown source file : at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerg er.java:535)
Unknown source file : at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.j ava:171)
Unknown source file : at com.android.dx.merge.DexMerger.merge(DexMerger.java:1 89)
Unknown source file : at com.android.dx.command.dexer.Main.mergeLibraryDexBuff ers(Main.java:502)
Unknown source file : at com.android.dx.command.dexer.Main.runMonoDex(Main.jav a:334)
Unknown source file : at com.android.dx.command.dexer.Main.run(Main.java:277)
Unknown source file : at com.android.dx.command.dexer.Main.main(Main.java:245)
Unknown source file : at com.android.dx.command.Main.main(Main.java:106)

FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:dexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.E xecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe' ' finished with non-zero exit value 2

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Currently I hardcode the aws sdk version in node_module\aws-react-native-*\android\build.gradle

dependencies {
...
compile 'com.amazonaws:aws-android-sdk-core:2.3.9'
compile 'com.amazonaws:aws-android-sdk-lambda:2.3.9'
}

Hope there will be a release issuing this problem soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant