问题
I'm trying to compile module (AndEngine), but Idea doesn't create BuildConfig.java
file.
Module SDK is set to Android 4.0.3 Platform (java version "1.6.0_10")
\src and \gen folders are marked as "Source folders".
回答1:
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.
To quote that file
AndEngine
Building
Eclipse
- AndEngine has to be build with ADT-17 or higher!
IntelliJ IDEA
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;
public final class BuildConfig { public final static boolean DEBUG = true; }
来源:https://stackoverflow.com/questions/12383918/why-intellij-idea-doesnt-create-buildconfig-java-in-andengine-modules-gen-fol