小编Kho*_*aHA的帖子

Gradle 2.3.0-alpha1无法使用数据绑定

今天更新到Android Studo 2.3 Canary后我遇到了问题.

构建完成没有错误但是当我运行应用程序时,gradle控制台一直显示:

找不到android.databinding.annotationprocessor.ProcessDataBinding

这是我的 build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle 2.3.0-alpha1'
        classpath 'com.google.gms:google-services:3.0.0'
        classpath 'com.android.databinding:dataBinder:1.0-rc1'
        classpath 'me.tatarka:gradle-retrolambda:3.3.1'
        classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) { …
Run Code Online (Sandbox Code Playgroud)

android build.gradle android-gradle-plugin parceler android-databinding

17
推荐指数
2
解决办法
2329
查看次数