@HassanKhademi wrote:
Hi,
I try to run my app in an Andriod Emulator (using Android Studio). But this commandionic cordova run android -lc
gives me the following error.FAILURE: Build failed with an exception. * Where: Script 'C:\[My Project]\platforms\android\cordova-plugin-firebase\starter-build.gradle' line: 27 * What went wrong: A problem occurred evaluating project ':app'. > Plugin with id 'com.google.gms.google-services' not found.
Here is the gradle file:
buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:+' classpath 'com.google.gms:google-services:4.1.0' } } repositories { mavenCentral() maven { url "https://maven.google.com" } } dependencies { compile 'me.leolin:ShortcutBadger:1.1.4@aar' compile 'com.google.firebase:firebase-auth:+' compile('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') { transitive = true } } cdvPluginPostBuildExtras.add({ apply plugin: 'com.google.gms.google-services' })
(ionic version 4.0.2)
Posts: 1
Participants: 1