我正在将GCM迁移到FCM。我继续得到这个"建议:工具:overrridelibrary"。 Afetr我添加了一个com.google.andriod.gms.play_services,我再次获得了其他东西。我的清单如下。有办法克服这个问题吗?
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="17"
tools:overrideLibrary="com.google.android.gms.all, com.google.android.gms.play_services, com.google.android.gms.ads.impl, com.google.android.gms.ads,
com.google.android.gms.analytics,com.google.android.gms.appinvite,com.google.android.gms.auth.api,com.google.android.gms.auth,
com.google.android.gms.cast.framework,com.google.android.gms.cast,com.google.android.gms.clearcut, com.google.firebase.remoteconfig,
com.google.android.gms.contextmanager,com.google.firebase.crash,com.google.firebase.auth.api,com.google.firebase.database,com.google.firebase.database.connection,
com.google.firebase.storage,com.google.android.gms.all,
com.google.android.gms.ads,
com.google.android.gms.auth,
com.google.android.gms.base,
com.google.android.gms.measurement,
com.google.android.gms,
com.google.android.gms.analytics,
com.google.android.gms.appindexing,
com.google.android.gms.appinvite,
com.google.android.gms.appstate,
com.google.android.gms.cast,
com.google.android.gms.drive,
com.google.android.gms.fitness,
com.google.android.gms.location,
com.google.android.gms.maps,
com.google.android.gms.games,
com.google.android.gms.gcm,
com.google.android.gms.identity,
com.google.android.gms.nearby,
com.google.android.gms.panorama,
com.google.android.gms.plus,
com.google.android.gms.safetynet,
com.google.android.gms.wallet,
com.google.android.gms.wearable,com.google.android.gms.gass,com.google.android.gms.iid
" />
答案 0 :(得分:1)
将目标版本23应用于依赖项:
compile 'com.android.support:design:23.4.0'
compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.google.android.gms:play-services-location:9.2.0'
compile 'com.google.firebase:firebase-messaging:9.2.0'
在依赖项之外的build.gradle
的最后一行使用它:
apply plugin: 'com.google.gms.google-services'