Search code examples
android-studioandroid-annotations

Missing generated folders in Android Studio


I'm using Android Annotations in my project and I followed the instructions in this blog post http://www.jayway.com/2014/02/21/androidannotations-setup-in-android-studio/

Everything worked fine.

Today I updated Android Studio to latest version (build of 5th june). This requires an update of gradle build tools from 19.0.3 to 19.1.0. And i configured this in my build.gradle. Annotaion processing still works. The generated files are located in build/source/apt. But this folder isn't visible any more in project explorer. And starting the build complains about the configuration. But the project seems to run correctly.

This behavior is very annoying. Do I have to change anything in Android Studio? Has anyone a solution or is this just a bug in Android Studio?


Solution

  • The author of android-apt has already updated his plugin to support Gradle's new version, just change this line in your build.gradle

    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.2+'
    

    To

    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.3'