Search code examples
androidandroid-studioandroid-gradle-pluginandroid-databindinggradlew

Trouble trying to build app with Jenkins and latest android plugin 3.0.0-alpha8


I have the Android studio 3.0 Canary preview and am able to build fine there. When I try to build on jenkins with gradlew I receive

Could not find com.android.databinding:baseLibrary:3.0.0-alpha8.

I thought maybe the google() repo wasn't working but you'd think that would error out itself so I replaced

google()

with

maven { url 'https://maven.google.com' }

and I still get the same error. The only reference that I have in my build.gradle for databinding is

android {
   dataBinding.enabled = true
}

my gradle wrapper has a distribution url of

distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip

does anyone have an Idea of what I'm doing wrong or let me know if you need more information.


Solution

  • Same error here.

    It's because you use Android Studio Canary Version.

    Build Tools are include in package directly:

    android-studio\gradle\m2repository\com\android\tools\build\gradle\3.0.0-alpha9