Skip to content Skip to sidebar Skip to footer

Enable Annotation Processing For Existing Projects Android Studio 3.3

I am using Android studio 3.3 and trying to use Dagger2 in my project. However, the annotation processing does not work in it and the annotation classes are not generated. I am ad

Solution 1:

the real solution is: 1 - create a compiler.xml in .idea/ folder and write that code in it.

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="CompilerConfiguration">
    <annotationProcessing>
      <profile default="true" name="Default" enabled="true" />
    </annotationProcessing>
  </component>
</project>

2- invalidate and restart


Solution 2:

I resolved the issue myself. I had to do the whole process mentioned in the question all over again, restart the machine and clean rebuild the project. It worked fine after that. Hope this is helpful for anyone looking for a solution to a similar issue


Post a Comment for "Enable Annotation Processing For Existing Projects Android Studio 3.3"