I have included cordova-plugin-firebase plugin into my project and having difficult with build on Android (ios is ok).
$ cordova plugin add cordova-plugin-firebase --save $ ionic cordova platform add android open android studio - synch gradle then below error appear
FYI, here are some project details
How can I solve this for android ?
from cordova-plugin-firebase cannot build for android error: com.google.android.gms:play-services-base
$ cordova plugin add cordova-plugin-firebase --save $ ionic cordova platform add android open android studio - synch gradle then below error appear
Error:Could not find play-services-base.jar (com.google.android.gms:play-services-base:15.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-base/15.0.1/play-services-base-15.0.1.jar
FYI, here are some project details
Im using ionic version 1
"cordova-android": "~6.3.0",
in build.gradle: classpath 'com.android.tools.build:gradle:2.2.3'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
debugCompile(project(path: "CordovaLib", configuration: "debug"))
releaseCompile(project(path: "CordovaLib", configuration: "release"))
compile "com.android.support:support-v4:24.1.1+"
compile "com.google.gms:google-services:+"
compile "com.google.android.gms:play-services-tagmanager:+"
compile "com.google.firebase:firebase-core:+"
compile "com.google.firebase:firebase-messaging:+"
compile "com.google.firebase:firebase-crash:+"
compile "com.google.firebase:firebase-config:+"
compile "com.google.firebase:firebase-perf:+"
compile "com.android.support:appcompat-v7:23+"
compile "com.onesignal:OneSignal:3.9.1"
// SUB-PROJECT DEPENDENCIES END
}
in the Android SDK Manager -> SDK Tools. Google Play Services version 49 is installed https://imgur.com/a/qR29lbL
this is my build.gradle file gist.github.com/axilaris/39a22849a649c60bcce079b67d4bb638How can I solve this for android ?
from cordova-plugin-firebase cannot build for android error: com.google.android.gms:play-services-base
No comments:
Post a Comment