IntelliJ IDEA的12 - 新的Andr​​oid应用模块向导失败"无法找到资源目录模块" [英] IntelliJ IDEA 12 - New Android Application Module wizard fails with "cannot find resource directory for module"

查看:217
本文介绍了IntelliJ IDEA的12 - 新的Andr​​oid应用模块向导失败"无法找到资源目录模块"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在面临的问题是一个非常简单的... 我不能让IntelliJ IDEA的12帮我创建一个Android应用程序模块(项目)的。

The problem I'm facing is a very simple one... I can't get IntelliJ IDEA 12 to help me with the creation of an Android application module (project).

成功安装的IntelliJ IDEA 12并使IDE和两个软件开发工具包(Java和Android的)之间的相识,之后,当我跑了新建模块向导,然后选择Android应用程序模块我收到其中一条错误消息:

After successfully installing IntelliJ IDEA 12 and making acquaintance between the IDE and both SDKs (Java and Android), when I run the "New Module wizard" and choose "Android application module" I receive an error message which states:

无法找到资源目录模块<等等>

"Cannot find resource directory for module < blah >"

IDE将不会挂起,或崩溃,但我留下了一个的一半的Andr​​oid项目的不包含任何强制性文件结构(向前伸直,推荐)Android应用程序。

The IDE does not hang, or crash but I'm left with a half Android project which does not contain the mandatory file structure of any (straight forward, recommended) Android application.

除其他事项:

  • 在资源文件夹丢失
  • 等是的活动的该向导问我关于
  • 再没有AndroidManifest.xml中
  • the "res" folder is missing
  • and so is the activity which the wizard asked me about
  • and then there's no AndroidManifest.xml

下面是个什么概念12向导创建:

Here's what the IDEA 12 Wizard creates:

和这里的项目的结构应该是什么样子 (在这个特定的情况下,它是一个Eclipse的工作 - Android的整合 从同事的机器):

and here's what the structure of the project should look like (in this particular case it's the work of an Eclipse - Android integration from a colleague's machine):

我复制的问题几次,它总是发生在相同的方式

I've replicated the problem several times and it always happened in the same way.

这看起来像是在那里打破,我才最终决定要问这个问题已经找遍了整个互联网的答案。

It looks like something's broken in there and I've looked all over the Internet for an answer before finally deciding to ask this question.

我敢肯定,所有必需的文件和文件夹可以手动创建,但我希望IDE帮我这个样板的东西,因为我与Android开发的初学者和有可能不工作,落后于其他的事情在幕后,这是这种症状。

I'm sure that all the required files and folders could be created manually but I would like the IDE to help me with this boilerplate stuff since I'm a beginner with Android development and there may be other things not working, behind the scenes, it this is the symptom.

换句话说,我觉得这将是非常重要的向导来创建工作Hello World项目。 任何帮助将大大AP preciated。

In other words, I feel it would be very important for the wizard to create a working Hello World project. Any help would be greatly appreciated.

推荐答案

我有同样的问题,今天,而是通过移动JDK从C解决它:\ PROGRAM_FILES \ java中到c:\家\ java和更新系统路径。

I've had the same issue today, but resolved it by moving jdk from c:\program_files\java to c:\home\java and updating the system path to it.

这篇关于IntelliJ IDEA的12 - 新的Andr​​oid应用模块向导失败&QUOT;无法找到资源目录模块&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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