java - Can not run empty AndroidStudio 0.8.14 project with google-cloud-storage client library -


i creating simple android app take picture , upload google cloud storage. simplest (and recommended) way use provided client library.

but empty androidstudio dependency gcs fails run. compiles, fails run failures:

  1. warning: dependency org.apache.httpcomponents:httpclient:4.0.1 ignored debug may conflicting internal version provided android. in case of problem, please repackage jarjar change class packages.

  2. error:execution failed task ':app:predexdebug'.

    com.android.ide.common.internal.loggederrorexception:

    failed run command: /home/milan/androidstudiosdk/sdk/build-tools/21.1.1/dx --dex --output /home/milan/androidstudioprojects/test/app/build/intermediates/pre-dexed/debug/transaction-api-1.1-d542431644c5559f18a80700bbbf3a2bc4472ff7.jar /home/milan/.gradle/caches/modules-2/files-2.1/javax.transaction/transaction-api/1.1/2ca09f0b36ca7d71b762e14ea2ff09d5eac57558/transaction-api-1.1.jar

    error code: 1

    output: trouble processing "javax/transaction/heuristiccommitexception.class": ill-advised or mistaken usage of core class (java.* or javax.*) when not building core library...........

i using androidstudio 0.8.14 on kubuntu 14.10 java-7-jdk-oracle (1.7.0_72-b14).

i have read , tried stackoverflow / web find: invalidating cache, cleaning project, compile library sources, reinstall of os. nothing worked far. predex failed in cases.

build.gradle:

android {     compilesdkversion 21     buildtoolsversion "21.1.1"     defaultconfig {         minsdkversion 15         targetsdkversion 21     } } dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile 'com.google.appengine.tools:appengine-gcs-client:0.4.3' } 

is there can create default androidstudio 0.8.14 project project dependency google cloud services , able run application? build.gradle lot. missing obvious.

the library using intended used client on google app engine, not on android.

take @ page java client library google cloud storage: https://developers.google.com/api-client-library/java/apis/storage/v1

the dependency need is:

compile 'com.google.apis:google-api-services-storage:v1-rev22-1.19.0'


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -