0
我想將Chartboost添加到我的LibGDX遊戲中,但我不知道如何將它添加爲Gradle的依賴項。此外,Chartboost使用Google Play遊戲服務,因此我需要將它們都添加到Gradle。我怎樣才能做到這一點?如何將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