为什么IntelliJ IDEA的并不在AndEngine模块的\\根文件夹中创建BuildConfig.java?模块、文件、夹中、IDEA

2023-09-08 09:17:04 作者:忽近忽远丶

我试图编译模块(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;}