0
我需要了解如何设置libGDX项目的gradle配置,我正在使用Eclipse。如何设置像build.gradle和settings.gradle这样的gradle文件,以使设置适用于IOS和Android libGDX项目。Google Play服务+ Gradle + Eclipse
感谢所有很好的帮助,
安东尼
我需要了解如何设置libGDX项目的gradle配置,我正在使用Eclipse。如何设置像build.gradle和settings.gradle这样的gradle文件,以使设置适用于IOS和Android libGDX项目。Google Play服务+ Gradle + Eclipse
感谢所有很好的帮助,
安东尼
要添加谷歌播放服务,Android开放式的的build.gradle(从项目文件夹)
project(":android") {
apply plugin: "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-x86"
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-x86"
//^default things
compile 'com.google.android.gms:play-services:5.0.89' // this one, add this line
}
}
你可能需要为iOS做同样的事情。 (没有测试过,我没有自己的Mac)。 让我知道它是否工作。
我用这个设置https://github.com/libgdx/libgdx/wiki/Google-Play-Game-Services-in-LibGDX。我也不是Mac,请尽快订购,如果上述设置也适用于IOS libGDX项目,请回复评论 – Antoine 2014-09-13 02:41:49