I'm trying to install aws on android studio with [add library dependency]
on [project structure->app->dependencies->+]
now i choose:
com.amazonaws:aws-java-sdk:1.9.8
Then I'm trying to start my android application but this error appears:
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536
Now I'm trying this solution:
android {
defaultConfig {
...
multiDexEnabled = true
}
}
(on this site: Unable to execute dex: method ID not in [0, 0xffff]: 65536)
But then this error appears:
same fail but this time this line appears too:
Deprecated dynamic property: "multiDexEnabled" on
"ProductFlavorDsl_Decorated{name=main, minSdkVersion=ApiVersionImpl{mApiLevel=14,
mCodename='null'}, targetSdkVersion=ApiVersionImpl{mApiLevel=20, mCodename='null'},
renderscriptTargetApi=-1, renderscriptSupportMode=null, renderscriptNdkMode=null,
versionCode=1, versionName=1.0, applicationId=com.example.matthias.booksearch,
testApplicationId=null, testInstrumentationRunner=null, testHandleProfiling=null,
testFunctionalTest=null, signingConfig=null, resConfig=null}", value: "true".
I think the problem is something with gradle, because of Build Failure... My dependencies of gradle.build are:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.amazonaws:aws-java-sdk:1.9.8'
}
If someone use the aws-framework and it works, please write me back how you get started with it.