为什么IntelliJ IDEA的并不在AndEngine模块的\\根文件夹中创建BuildConfig.java? [英] Why IntelliJ Idea doesn't create BuildConfig.java in AndEngine module's \gen folder?

查看:339
本文介绍了为什么IntelliJ IDEA的并不在AndEngine模块的\\根文件夹中创建BuildConfig.java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图编译模块(AndEngine),但理念不创建 BuildConfig.java 文件。

I'm trying to compile module (AndEngine), but Idea doesn't create BuildConfig.java file.

模块SDK设置为Android 4.0.3平台(Java版本1.6.0_10)

Module SDK is set to Android 4.0.3 Platform (java version "1.6.0_10")

\\ src和\\根文件夹被标记为源文件夹。

\src and \gen folders are marked as "Source folders".

推荐答案

检查readme.md文件中的AndEngine项目。尼古拉斯说,如果你的IntelliJ没有做到这一点,您可以手动创建它,并把它放在Andegine源文件夹。

Check the readme.md file in the AndEngine project. Nicolas says if your IntelliJ does not do that, that you can create it manually and put it in the Andegine source folder.

要引用该文件


  • AndEngine必须建立与ADT-17或更高!


  • AndEngine依赖于ADT自动生成一个BuildConfig级。 IntelliJ IDEA的(如11.1.1)还没有完全ADT-17 +集成。为了与IntelliJ IDEA的建设AndEngine,你可以简单地添加自己下面的类中的根包(org.andengine):

  • AndEngine relies on ADT to auto-generate a "BuildConfig" class. IntelliJ IDEA (as of 11.1.1) has not fully integrated with ADT-17+. In order to build AndEngine with IntelliJ IDEA, you can simply add the following class yourself in the root package (org.andengine):

package org.andengine;

公共final类BuildConfig {
    公共静态最终布尔DEBUG = TRUE;
}

这篇关于为什么IntelliJ IDEA的并不在AndEngine模块的\\根文件夹中创建BuildConfig.java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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