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后,我获得了成功。
我的文件夹:overlap2d-runtime-libgdx-master与我项目的文件夹位于同一个父目录中。
但是,当我尝试访问Overlap2DStage时,Android Studio告诉我它无法找到符号Overlap2DStage!我无法导入我为其设置依赖项的任何类!