Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

Organization

Android Studio 2.3にてgradle 2.3にするとandroid-aptではまる

gradle 2.3以降ではandroid-aptはdeprecated

Android Studio2.2からAndroid Studio 2.3にプロジェクトをMigradeしたら
gradle:2.3.0にしろと言われて上げたら軒並みandroid-aptでハマりました。

dependencies {
    classpath 'com.android.tools.build:gradle:2.3.0'
    // classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}

そもそもandroid-apt自体がdeprecatedのようです。
https://bitbucket.org/hvisser/android-apt/wiki/Migration
以下、メジャーなライブラリのアノテーションはannotationProcessorで書き直されているようです。

Dagger2

追記:
android-aptのmigrationガイドでは2.0が使われていましたが、Dagger2公式では2.9になっていましたのでこちらが正しいです。
https://github.com/codepath/android_guides/wiki/Dependency-Injection-with-Dagger-2

dependencies {
    compile "com.google.dagger:dagger:2.9"
    annotationProcessor "com.google.dagger:dagger-compiler:2.9"
    provided 'javax.annotation:jsr250-api:1.0'
}

FragmentArgs

dependencies {
    compile 'com.hannesdorfmann.fragmentargs:annotation:3.0.2'
    annotationProcessor 'com.hannesdorfmann.fragmentargs:processor:3.0.2'
    compile 'com.hannesdorfmann.fragmentargs:bundler-parceler:3.0.2'
}

Parceler

dependencies {
    compile 'org.parceler:parceler-api:1.1.6'
        annotationProcessor 'org.parceler:parceler:1.1.6'
}
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
5
Help us understand the problem. What are the problem?