0
在我的項目中,我使用的是以下版本的GCM庫。com.google.android.gms:play-services-gcm:8.4.0導致錯誤
compile 'com.google.android.gms:play-services-gcm:7.8.0'
現在我在更新到以下版本
compile 'com.google.android.gms:play-services-gcm:8.4.0'
但我收到以下錯誤。
02-05 23:51:29.205 18410-18410/com.example.app E/GMPM: GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services. Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.
02-05 23:51:29.205 18410-18410/com.example.app E/GMPM: Scheduler not set. Not logging error/warn.
02-05 23:51:29.238 18410-18452/com.example.app E/GMPM: Uploading is not possible. App measurement disabled
請幫我解決這個問題。
我已經配置我的項目有太多
apply plugin: 'com.google.gms.google-services'
以下。
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:1.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Ya。當然。我已經在之前的版本play-services-gcm:7.8.0中配置並將該google-services.json配置到我的項目中。我試着再次改變它。但同樣的錯誤被看到。 –
@VinilChandran:我更新了我的答案。 –
測試版是前綴添加到試用版嗎?那麼使用beta版永遠不錯? –