With some automatic updates my app will no longer compile for android, always erroring out with the error:
* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not get unknown property 'ANDROID_SUPPORT_V4_VERSION' for object of type org.gradle.api.internal.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.
BUILD FAILED
I’ve tried upgrading/downgrading cordova and plugins and cordova-android, and adding the cordova-android-support-gradle-release
plugin with the variable specified based on various google searches all to no avail. Anyone have any idea what’s going on and how to make it work?
Ionic Info:
cli packages: (/Users/mbeckett/.nvm/versions/node/v6.9.1/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : android 6.3.0 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.0.2
ios-deploy : 1.9.2
Node : v6.9.1
npm : 3.10.8
OS : macOS High Sierra
Xcode : Xcode 9.4 Build version 9F1027a
Environment Variables:
ANDROID_HOME : /Users/mbeckett/Library/Android/sdk
Misc:
backend : legacy