ionic build android failed

ionic build android failed

by Salim BOUDRAA -
Number of replies: 1

hello, when i run ionic build android on cmd it will show me this error : 

BUILD FAILED


Total time: 1.892 secs


Error: cmd: Command failed with exit code 1 Error output:

FAILURE: Build failed with an exception.


* Where:

Build file 'C:\moodlemobile\platforms\android\build.gradle' line: 35


* What went wrong:

A problem occurred evaluating root project 'android'.

> Could not find method compile() for arguments [{group=com.google.android.gms,

name=play-services-auth, version=16.0.0}] on object of type org.gradle.api.inter

nal.artifacts.dsl.dependencies.DefaultDependencyHandler.


* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug

option to get more log output.


someone can help me ??

thank you

Average of ratings: -
In reply to Salim BOUDRAA

Re: ionic build android failed

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi Salim,

I'd suggest you to build using Phonegap Build, we always build using an online system where we can set the libraries versions, etc..