After an update to the last sources, when I open Android Studio, I got this error: Sync with Gradle for project 'openhab-android' failed: Failed to find Build Tools revision 26.0.2
Why tools revision 26.0.2 are now required ?
Until now, I was using only SDK platform 4.0.3 (IceCreamSandwich).
In https://github.com/openhab/openhab.android/pull/455 I changed the source of android-smart-image-view from oh maven to jitpack.io. The build failed and when I searched for that error, I found out, that it is fixed with build tool 26.
Just to be clear, does it mean we have now to all move to SDK platform 8.0 ?
Will the app still work well on old android versions ?
It shouldn't change anything with target and min api.
Ok, thank you for the clarification.
just download this file and extract it. https://dl.google.com/android/repository/build-tools_r26.0.2-windows.zip copy all files from [android-8.1.0] and move them into C:\Users\userAppData\Local\Android\Sdk\build-tools\26.0.2
Thanks, your answer @wasimshahagadi worked for me...
@wasimshahagadi your answer was really divine.. thanks bro!!!
@wasimshahagadi nice!
@wasimshahagadi I love you
your solution is working bro :)
additionally you need to make sure below thing in app level build.gradle file
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com" // <<<<<<<
}
}
}
Most helpful comment
just download this file and extract it. https://dl.google.com/android/repository/build-tools_r26.0.2-windows.zip copy all files from [android-8.1.0] and move them into C:\Users\userAppData\Local\Android\Sdk\build-tools\26.0.2