AdMob 依赖项
AdMob dependencies
Android AdMob 库需要 AppCompat 库吗?
Quoth Google:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.google.android.gms:play-services-ads:8.3.0'
}
我注释掉了 appcompat
行,构建 好的...
不,它不需要 AppCompat 库。与您在问题中提供的文档 (this) 完全相同的 link 表明只需要 compile 'com.google.android.gms:play-services-ads:8.3.0'
。包括 appcompat 库在内的其余部分在该文档页面上显示为灰色。它放在那里只是为了让大家了解 build.gradle
文件的样子。
Android AdMob 库需要 AppCompat 库吗?
Quoth Google:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.google.android.gms:play-services-ads:8.3.0'
}
我注释掉了 appcompat
行,构建 好的...
不,它不需要 AppCompat 库。与您在问题中提供的文档 (this) 完全相同的 link 表明只需要 compile 'com.google.android.gms:play-services-ads:8.3.0'
。包括 appcompat 库在内的其余部分在该文档页面上显示为灰色。它放在那里只是为了让大家了解 build.gradle
文件的样子。