小编Tje*_*erd的帖子

Eclipse,libgdx和Gradle.无法让谷歌游戏服务人员上班

我想在Eclipse(Indigo)的Libgdx(1.4.1)项目中使用admob.我已经使用SDK下载Google Play服务和Google存储库.我已将以下内容添加到Android项目中的gradle.build文件中:

project(":android") {
apply plugin: "android"

configurations { natives }

dependencies {
    compile project(":core")
    compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
    compile 'com.google.android.gms:play-services:6.+'

    {more not listed}
Run Code Online (Sandbox Code Playgroud)

这是Gradle任务的输出:android:androidDependencies:

:android:androidDependencies
debug
\--- com.google.android.gms:play-services:6.1.71
     \--- com.android.support:support-v4:20.0.0

debugTest
No dependencies

release
\--- com.google.android.gms:play-services:6.1.71
     \--- com.android.support:support-v4:20.0.0
Run Code Online (Sandbox Code Playgroud)

在Android项目中,Gradle dependencies (persisted)我可以看到目录

support-v4-20.0.0.aar

play-services-6.1.71.aar
Run Code Online (Sandbox Code Playgroud)

但是,当我尝试创建protected AdView adview变量时,它找不到类AdView.按CTRL-Shift-O时,我收到一条消息0 imports added.当我手动导入AdView类时,它也找不到它.

谁能指出我做错了什么?

eclipse gradle libgdx

6
推荐指数
0
解决办法
547
查看次数

标签 统计

eclipse ×1

gradle ×1

libgdx ×1