Why IntelliJ Idea doesn't create BuildConfig.java in AndEngine module's \gen folder?

旧街凉风 提交于 2019-12-08 14:00:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!