cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
264 stars 318 forks source link

Cannot build for android. Issue with support-v4.aar (com.android.support:support-v4:26.1.0). #283

Open ourarash opened 5 years ago

ourarash commented 5 years ago

I created a new fresh Ionic project, and just added this plugin. After adding, it doesn't build for android with this error:

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

ionic info

Ionic:

   ionic (Ionic CLI)  : 4.0.3 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 7.1.0
   Cordova Platforms     : android 6.3.0

System:

   ios-deploy : 1.9.2
   NodeJS     : v9.2.0 (/usr/local/bin/node)
   npm        : 5.5.1
   OS         : macOS High Sierra
   Xcode      : Xcode 9.2 Build version 9C34b

Environment:
lightyaer commented 5 years ago

I have the same Problem

Amit9719 commented 4 years ago

please import this com.android.support:support-v4:13.0.0 dependency in your app build gradle file and then sync the project after that you can build your project