閉じる

icepickと Android Studio 3.0

Android Studio 3.0が stableになったので更新したら icepick関連でビルドエラー。

Error:Execution failed for task ‘:libhige:javaPreCompileDebug’.
> Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.
– icepick-processor-3.2.0.jar (frankiesardo:icepick-processor:3.2.0)
– auto-service-1.0-rc2.jar (com.google.auto.service:auto-service:1.0-rc2)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.

対応としては「provided ‘frankiesardo:icepick-processor:3.2.0’」と書いていたところを「annotationProcessor ‘frankiesardo:icepick-processor:3.2.0’」に書き換える。
「Configuration ‘provided’ in project ‘:XXX’ is deprecated. Use ‘compileOnly’ instead.」という警告に素直に従って compileOnlyに書き換えても駄目。

コメントを残す

メールアドレスが公開されることはありません。必須項目には印がついています *

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)