Open ourarash opened 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. What went wrong: A problem occurred configuring root project 'android'. Could not find support-v4.aar (com.android.support:support-v4:26.1.0). Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.aar Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
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:
I have the same Problem
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
I created a new fresh Ionic project, and just added this plugin. After adding, it doesn't build for android with this error: