【发布时间】:2017-10-26 14:10:29
【问题描述】:
在新版本的 gradle 中,'android-apt'-pligin 不再兼容。
现在你必须使用 'annotationProcessor' instatof 'apt'
到目前为止一切顺利。
我执行以下操作:
从 build.gradle 中移除 apt 的类路径(项目:MyApplication)
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
从build.gradle中移除插件(模块:app)
apply plugin: 'android-apt'
将依赖项从 apt 更改为新的 annotationProcessor
annotationProcessor 'com.github.instagram.ig-json-parser:processor:master-SNAPSHOT'
到目前为止,gradle 同步工作,但 *__JsonHelper 不再是 beeing genradet!
帮助?
【问题讨论】:
标签: android-studio-3.0 jsonparser annotation-processor android-apt android-gradle-3.0