Tje*_*erd 6 eclipse gradle libgdx
我想在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类时,它也找不到它.
谁能指出我做错了什么?
| 归档时间: |
|
| 查看次数: |
547 次 |
| 最近记录: |