enable Annotation Processors option in Android Studio 2.2

后端 未结 10 1358
逝去的感伤
逝去的感伤 2020-12-03 00:58

I\'m trying to use java 8 in my project and for that I added the jack compiler.

After enabling jack I started having problems with libraries that use Annotation Proc

相关标签:
10条回答
  • 2020-12-03 01:24

    Close the project. In the "Welcome to Android Studio" dialog click "Configure" in the bottom right corner.

    Then,

    Settings > Build, Execution, Deployment > Compiler > Annotation Processors. Tick 'Enable annotation processing'.

    If that does not work. Delete the project from "Welcome to Android Studio" dialog and open from new.

    Worked for me.

    0 讨论(0)
  • 2020-12-03 01:26

    You can enable Annotation Processors without closing your project in Android Studio 2.3:

    File -> Other Settings -> Default Settings
    

    Build, Execution, Deployment -> Compiler -> Annotation Processors -> 
    Enable annotation processing.
    

    Don't forget to clean, build, invalidate and restart after that.
    Cheers!

    0 讨论(0)
  • 2020-12-03 01:30
    1. Close your project.
    2. Settings > Build, Execution, Deployment > Compiler > Annotation Processors. Check 'Enable annotation processing'.
    3. Open your project.
    4. File > Invalidate Caches / Restart... > Invalidate and Restart

    Wait for the process completely, then everything will be fine.

    0 讨论(0)
  • 2020-12-03 01:31

    Adding to @Jacques Koorts and @mtrakal

    If you can't get to the "Welcome to Android Studio" screen. Try File -> Close Project instead of clicking the X icon. Then you'll get the "Welcome to Android Studio" screen and you'll see the gear in the bottom right. Follow the accepted answer after that and possibly the cache invalidation.

    0 讨论(0)
提交回复
热议问题