Arley HR
Arley HR

Reputation: 51

cordova /platforms/android/gradlew: Command failed with exit code 1 Error output:

I HAVE THIS ERROR WITH cordova-onesignal-plugin installed

On build app in ionic

sudo ionic build android

sudo cordova build android

Error: /platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

Upvotes: 2

Views: 25948

Answers (1)

logicalicy
logicalicy

Reputation: 917

Try installing "Google Repository" under Preferences > Appearance & Behavior > System Settings > Android SDK > SDK Tools in your Android Studio. Worked for me.

From the Android Studio docs, you will see:

Google Repository Recommended. Includes local Maven repository for Google libraries, which provide a variety of features and services for your apps, such as Google sign-in, Google Maps, Games achievements and leaderboards, and much more.

My bet is that this includes com.google.android.gms:play-services-gcm:+.

Upvotes: 5

Related Questions