android-apt plugin is incompatible with future version of Android Gradle plugin. use 'annotationPro
来源:互联网 发布:android mac 编辑:程序博客网 时间:2024/06/07 07:10
Warning:android-apt plugin is incompatible with future version of Android Gradle plugin. Please use ‘annotationProcessor’ configuration instead.
原因:更新Android studio 原来项目出现问题。
分析: 尤其是采用butterknife工具的,采用新的Android Studio都会出现这样的问题,本人根据提示最后猜测原因可能是Android studio更新,然后gradle更新了,这样的话可能使原来的android-apt 工具跟不上节奏了,所以让采用annotationProcessor工具。
解决: 把project下的build.gradle 当中的依赖
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath ‘com.android.tools.build:gradle:2.4.0-alpha7’
classpath ‘com.neenbedankt.gradle.plugins:android-apt:1.8’
}
}
修改成如下:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath ‘com.android.tools.build:gradle:2.4.0-alpha7’
}
}
然后再把module下的build.gradle :
dependencies {
compile project(‘:roadvance-sdk’)
compile ‘com.google.dagger:dagger:2.10’
apt ‘com.google.dagger:dagger-compiler:2.10’
compile ‘com.android.support:appcompat-v7:25.3.1’
compile ‘com.jakewharton:butterknife:8.5.1’
apt ‘com.jakewharton:butterknife-compiler:8.5.1’
}
修改如下:
dependencies {
compile project(‘:roadvance-sdk’)
compile ‘com.google.dagger:dagger:2.10’
annotationProcessor ‘com.google.dagger:dagger-compiler:2.10’
compile ‘com.android.support:appcompat-v7:25.3.1’
compile ‘com.jakewharton:butterknife:8.5.1’
annotationProcessor ‘com.jakewharton:butterknife-compiler:8.5.1’
}
再把 apply plugin: ‘com.neenbedankt.android-apt ’ 这个引用给删除。
重新reBuild的一下
- android-apt plugin is incompatible with future version of Android Gradle plugin. use 'annotationPro
- Warning:android-apt plugin is incompatible with future version of Android Gradle plugin. Please use
- 解决Warning:android-apt plugin is incompatible with future version of Android Gradle plugin.
- Warning:android-apt plugin is incompatible with future version of Android Gradle plugin
- android Error running app: This version of Android Studio is incompatible with the Gradle Plugin use
- Android开发:Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'anno
- Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProc
- Error:android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProc
- android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor'
- Android Studio Build Error : This version of Android Studio is incompatible with the Gradle Plugin u
- Android 解决Error running app: This version of Android Studio is incompatible with the Gradle Plugin
- Android Studio Build Error : This version of Android Studio is incompatible with the Gradle Plugin u
- Error running example: This version of Android Studio is incompatible with the Gradle Plugin used.解决
- This version of Android Studio is incompatible with the Gradle Plugin used
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try
- Error running app: This version of Android Studio is incompatible with the Gradle Plugin used.
- This version of Android Studio is incompatible with the Gradle Plugin used.
- This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Ru
- 安卓mvp教程
- [leetcode]17. Letter Combinations of a Phone Number
- Vue初体验(五)过滤器的使用
- 指针逃逸对JVM性能的影响
- ESP8266-WIFI之例程篇
- android-apt plugin is incompatible with future version of Android Gradle plugin. use 'annotationPro
- Spark中sortByKey和sortBy对(key,value)数据分别 根据key和value排序
- PS小技巧
- CodeForces794cNaming Company
- android性能优化
- Linux基础学习笔记之管道中如何将标准错误输出传递给下调命令?
- FFmpeg总结(十三)用ffmpeg基于nginx实现直播功能,不用第三方SDK,自研推流拉流
- Linux命令基础10-less命令
- win10远程控制ubuntu16.04