Dear Team
Now when I tried using latest Android SDK for indoor location, it gives below error.
Error:(29, 13) Failed to resolve: com.estimote:indoorsdk:0.10.0
Show in File
Show in Project Structure dialog
Could you please help me to resolve this issue?
Thanks in advance!
Regards!
Vineet Saxena
Hey @svineet15685
The line compile 'com.estimote:indoorsdk:0.10.0'
tells your build tool (in this case Gradle) to download the artifact of that name from the external repository. If it throws you an error Error:(29, 13) Failed to resolve: com.estimote:indoorsdk:0.10.0
it probably means that it can’t find our SDK. I deduce that you are using different repository then JCenter where our SDK is hosted. By default, your Android project should search the JCenter repository, so make sure you have the following line in your project’s build.gradle
file (not the file of one module, but the one per your whole project)
allprojects {
repositories {
jcenter()
}
}
I hope this will help. I have checked if our repository is still accessible via JCenter and it is, so there must be something wrong with your setup
Cheers!
Hi @paweldylag,
These lines are already included in my project
Just to let you know if I change SDK version from 1.0.0 to 0.9.1, its working fine, but its not working with 1.0.0, which is latest SDK.
Thanks!
Vineet Saxena
Hi,
Could you provide content of your build.gradle files (the one where you adding Indoor-sdk dependency and the top-level one)?
It will help us to find out what is causing the issue.
Additionally - the latest version of the Indor-SDK is 1.0.1
It is available on JCenter repo and is reachable from gradle by: compile 'com.estimote:indoorsdk:1.0.1'
( at least it works for me )
Regards
Wojtek
Hi @Wojciech_Wawerek,
Below is the build file, kindly have a look to find out if I am doing something wrong.
apply plugin: 'com.android.application’
apply plugin: ‘kotlin-android’
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.estimote.indoorapp"
minSdkVersion 18
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner”
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
}
}
dependencies {
compile fileTree(dir: ‘libs’, include: [’*.jar’])
androidTestCompile(‘com.android.support.test.espresso:espresso-core:2.2.2’, {
exclude group: ‘com.android.support’, module: ‘support-annotations’
})
compile 'com.android.support:appcompat-v7:25.3.1’
testCompile ‘junit:junit:4.12’
compile 'com.estimote:indoorsdk:1.0.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'io.reactivex.rxjava2:rxjava:2.1.0'
testCompile 'junit:junit:4.12'
}
Thanks!
Vineet Saxena
Hi,
I’ve checked the build.gradle you provided on clean, freshly created android project - it works without any issues. com.estimote:indoorsdk:1.0.1
dependency is successfully resolved.
Please ensure you have jcenter repository configured in your top-level build.gradle (not that you provided but the on in project root directory). Here is content of this file in my configuration:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Please note that the following section is crucial in above configuration:
allprojects {
repositories {
jcenter()
}
}
Regards
Wojtek