Start a new topic

Failed to resolve :kinvey-android

Hi
Trying to integrate kinvey, i have kinvey into lib directory and modified the gradle.build file.

But I also have to add 'libs' into repositories, but it's unclier where to add. In buildscript repositories? or allProjectRepositories? Where? I am getting an error: Failed to resolve :kinvey-android-2.10.5

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//Kinvey
compile(name:'kinvey-android-2.10.5', ext:'aar') buildscript {
    repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:2.0.0-beta6'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
}
Login or Signup to post a comment