【问题标题】:using ig-json-parser with annotationProcessor from android studio 3.0使用 ig-json-parser 和来自 android studio 3.0 的 annotationProcessor
【发布时间】: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


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多