我仔细地遵循了下面列出的步骤:http://overlap2d.com/making-physics-based-side-scroller-project-setup-part-1/
include 'desktop', 'core', 'Overlap2dRuntime'
project(':Overlap2dRuntime').projectDir = new File(settingsDir, '../overlap2d-runtime-libgdx-master')这是:
project(":core") {
apply plugin: "java"
dependencies {
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
compile "com.badlogicgames.box2dlights:box2dlights:1.2"
compile project(":Overlap2dRuntime")
}
} 在同步gradle之后,我获得了成功的构建。
我的文件夹: folder 2d-运行时-libgdx-master与我的项目文件夹位于同一个父目录中。
然而,当我尝试访问Overlap2DStage时,Android告诉我它找不到符号Overlap2DStage!我无法导入我设置依赖项的任何类!
发布于 2015-02-27 22:27:48
好的,这个问题的关键是删除库中的其他Settings.gradle文件!
查看以下链接:https://code.google.com/p/android/issues/detail?id=65915
https://stackoverflow.com/questions/28775159
复制相似问题