缺少生成文件夹Android Studio中 [英] Missing generated folders in Android Studio

查看:352
本文介绍了缺少生成文件夹Android Studio中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Android的注解在我的项目,我跟着这个博客帖子的 http://www.jayway.com/2014/02/21/androidannotations-setup-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/

一切正常。

今天,我更新的Andr​​oid Studio来最新版本(版本6月5日的)。这需要gradle这个构建工具从19.0.3至19.1.0更新。我和我的build.gradle配置此。
Annotaion处理仍然有效。生成的文件都位于在建/来源/贴切。但是,这个文件夹是不是在项目资源管理器了。并开始构建抱怨的配置。
但该项目似乎正常运行。

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.

此行​​为是很烦人的。我必须改变Android Studio中什么?有没有人解决或者这只是Android Studio中?

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?

推荐答案

Android的贴切的作者已经更新了他的插件来支持摇篮的新版本,只是改变这一行你的build.gradle

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+'

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

这篇关于缺少生成文件夹Android Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆