Start a new topic

Issue Adding Dependencies

Hi,


I followed the steps specified http://devcenter.kinvey.com/android/guides/getting-started but am getting the following error.


 Error:Failed to resolve: :kinvey-android-*:

<ahref="openFile:/Users/gauravdobhal/AndroidStudioProjects/Ribbit4/app/build.gradle">Open File</a>


Below is my build.gradle file. The issue seems to be similar to this one


apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.example.blooptroop.ribbit4"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

}



dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile(name:'kinvey-android-*', ext:'aar')

}

1 person has this question

Still not working for me, getting the same issue Can not resolve :kinvey-android

Hi Gaurav,


Currently, you can resolve this issue by giving the exact filename of the aar in your build.gradle file.

E.g. compile(name:'kinvey-android-2.10.4', ext:'aar')


The "kinvey-android-*" is supposed to resolve to the latest kinvey SDK available in the libs folder, so that you won't need to change the build.gradle file every time you upgrade to latest Kinvey SDK. But, Android Studio doesn't support that for aar files right now.


Hope this helps.



Regards,

Wani

Kinvey Support

Login or Signup to post a comment