Monday, 15 March 2010

android - Gradle Project Sync Failed - Unresolved dependencies -



android - Gradle Project Sync Failed - Unresolved dependencies -

i've taken android project created in intellij , imported androidstudio. after looking @ googles hopeless instructions how migrate project gradle pressed buttons @ random , prayed gods of droid whilst sacrificing little innocent kid , somehow ended gradle controlled project synced, built , ran on android devices.

i added additional dependencies build.gradle file:

compile 'com.octo.android.robospice:robospice:1.4.12' compile 'com.octo.android.robospice:robospice-spring-android:1.4.12' compile 'com.google.code.gson:gson:2.2.4' compile 'com.google.http-client:google-http-client-jackson:1.18.0-rc' compile 'com.octo.android.robospice:robospice-google-http-client:1.4.12' compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'

now when seek sync gradle next message: gradle project sync failed. basic functionality (e.g. editing, debugging) not work properly.

in gradle sync window next messages: unresolved dependencies:

error:com.google.http-client:google-http-client-gson:1.18.0-rc error:com.octo.android.robospice:robospice-spring-android:1.4.12

... , on each of dependencies have listed. how might resolve this?

ok i've figured out. added

allprojects { repositories { mavencentral() } }

to bottom of build.gradle file.

it struggling find repository load from.

the script had

buildscript { repositories { mavencentral() }

this seem insufficient.

android intellij-idea android-studio android-gradle

No comments:

Post a Comment