[英]How to add Chartboost dependency to my LibGDX project?
I want to add Chartboost to my LibGDX game, but I don't know how to add it as a dependency to Gradle. 我想将Chartboost添加到我的LibGDX游戏中,但是我不知道如何将其添加为Gradle的依赖项。 Also, Chartboost uses Google Play Game Services, so I need to add both of them to Gradle.
另外,Chartboost使用Google Play游戏服务,因此我需要将它们都添加到Gradle中。 How can I do this?
我怎样才能做到这一点?
it seems the chartboost jar is not published to a public maven repository so you need to reference it by file: 似乎chartboost jar没有发布到公共Maven存储库,因此您需要按文件引用它:
dependency {
// references a file relative to the project folder
files('libs/chartboost.jar')
}
to add google play services you can use reference it like this: 要添加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.