我的android studio暂时没有使用引擎LibGDX了。我花了2个星期的时间,通过结合使用过时的sdk,gradle版本和插件,使gradle得以成功构建。但是在跑步时,我对此表示欢迎
绝对可爱的错误,意义为零。单击第二个链接后,我进入一个文件,几乎每行都有一个错误,与下一个链接相同,其后是该链接,之后是该链接等等,等等。我绝对不知所措考虑到gradle设置与运行良好的旧项目完全相同(项目名称等除外)。我不知道为什么会这样,有一天我刚运行我的应用程序,然后就发生了。我现在不介意。
请帮助我们。
P.S不是this错误,因为我的gradle远低于该错误(4.1版)
这是我的build.gradle文件中的代码:
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
allprojects { 应用插件:“ eclipse” 套用外挂程式:“ idea”
version = '1.0'
ext {
appName = "Radiation Pigeon"
gdxVersion = '1.9.7'
roboVMVersion = '2.3.1'
box2DLightsVersion = '1.4'
ashleyVersion = '1.7.0'
aiVersion = '1.8.0'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
google()
}
}
project(“:android”){ 应用插件:“ android”
configurations { natives }
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86_64"
}
}
project(“:core”){ 应用插件:“ java”
dependencies {
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
}
}
tasks.eclipse.doLast { 删除“ .project” }`