[英]How to add Chartboost dependency to my LibGDX project?
我想将Chartboost添加到我的LibGDX游戏中,但是我不知道如何将其添加为Gradle的依赖项。 另外,Chartboost使用Google Play游戏服务,因此我需要将它们都添加到Gradle中。 我怎样才能做到这一点?
似乎chartboost jar没有发布到公共Maven存储库,因此您需要按文件引用它:
dependency {
// references a file relative to the project folder
files('libs/chartboost.jar')
}
要添加Google Play服务,您可以使用如下引用:
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.
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.