android - Gradle not compiling for Firebase Cloud Messaging -
i noticed firebase apis have upgraded v 9.0.0 v 9.0.1 , decided change that.
however not getting noticed.
here error in gradle logcat
error:(25, 13) failed resolve: com.google.firebase:firebase-messaging:9.0.1 error:(26, 13) failed resolve: com.google.firebase:firebase-core:9.0.1
and here gradle files
build.gradle-> app
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion "23.0.3" defaultconfig { applicationid "com.example.lifeline.applicationgreat" minsdkversion 15 targetsdkversion 23 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) testcompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.google.firebase:firebase-messaging:9.0.1' compile 'com.google.firebase:firebase-core:9.0.1' } apply plugin: 'com.google.gms.google-services'
build.gradle-> project
// top-level build file can add configuration options common sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.0' classpath 'com.google.gms:google-services:3.0.0' // note: not place application dependencies here; belong // in individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: delete) { delete rootproject.builddir }
can tell whats error or if missing anything. there requirement of firebase-core cloud messaging? thanks
i had same issue "com.google.firebase:firebase-ads:9.0.1", did install de sdk manager google repository extra.
Comments
Post a Comment