如何将Chartboost依赖项添加到我的LibGDX项目中?
问题描述:
我想将Chartboost添加到我的LibGDX游戏中,但我不知道如何将它添加为Gradle的依赖项。此外,Chartboost使用Google Play游戏服务,因此我需要将它们都添加到Gradle。我怎样才能做到这一点?如何将Chartboost依赖项添加到我的LibGDX项目中?
答
似乎chartboost罐子不发布到公共Maven仓库,所以你需要通过文件引用它:
dependency {
// references a file relative to the project folder
files('libs/chartboost.jar')
}
添加谷歌玩,你可以使用像这样引用它的服务:
dependencies {
// Google Play Services
compile 'com.google.android.gms:play-services:5.0.77'
// Note: these libraries require the "Google Repository" and "Android Repository"
// to be installed via the SDK manager.
}
我需要把这个依赖关系放在哪? – Nahro 2015-09-05 16:33:15