Openhab-android: Failed to find Build Tools revision 26.0.2

Created on 27 Nov 2017  路  10Comments  路  Source: openhab/openhab-android

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).

question

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

All 10 comments

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"    // <<<<<<<
        }
    }

}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mueller-ma picture mueller-ma  路  4Comments

cribskip picture cribskip  路  8Comments

LinqLover picture LinqLover  路  13Comments

magd1978 picture magd1978  路  10Comments

holmes picture holmes  路  7Comments