Had exactly the same problem. Solved it by doing the following: Searching for and replacing com.android.support:support-v4:+ with com.android.support:support-v4:27.1.0 in the platform/android directory.
Also I had to add the following code to the platforms/android/app/build.gradle and platforms/android/build.gradle files:
configurations.all { resolutionStrategy { force 'com.android.support:support-v4:27.1.0' }}
Edited to answer “Where is this com.android.support:support-v4:+ setting ?” …
The setting will probably(in this case) be in one of your plugin’s .gradle file in the platform/android/ directory, for example in my case it was the starter-barcodescanner plugin so just go through all your plugins .gradle files :

Double check the platforms/android/build.gradle file.
Hope this helps.
Related Posts:
- Error – Android resource linking failed (AAPT2 27.0.3 Daemon #0)
- Still getting warning : Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’
- Error:(1, 0) Plugin with id ‘com.android.application’ not found
- Android Studio: “Execution failed for task ‘:app:mergeDebugResources’” if project is created on drive C:
- Using gradle to find dependency tree
- How can I force gradle to redownload dependencies?
- How to recompile with -Xlint:deprecation
- Gradle does not find tools.jar
- Android Studio Run/Debug configuration error: Module not specified
- No matching client found for package name (Google Analytics) – multiple productFlavors & buildTypes
- Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio
- com.android.ide.common.process.ProcessException: Failed to execute aapt! What can I do?
- Could not find com.android.tools.build:gradle:3.0.1
- Execution failed for task ‘:app:compileDebugJavaWithJavac’ Android Studio 3.1 Update
- Could not find com.android.tools.build:gradle:3.0.1
- Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat
- Copy existing project with a new name in Android Studio
- How to clear gradle cache?
- Gradle error: Write access is allowed from event dispatch thread only in Android Studio
- How to download dependencies in gradle
- ‘dependencies’ cannot be applied to ‘(groovy.lang.Closure)’
- How can my Gradle build initialize class org.codehaus.groovy.classgen.Verifier?
- Cannot resolve symbol ‘AppCompatActivity’
- Cannot resolve symbol ‘AppCompatActivity’
- “Gradle Version 2.10 is required.” Error
- How to determine the version of Gradle?
- How to use adb command to push a file on device without sd card
- How is “mvn clean install” different from “mvn install”?
- Exception : AAPT2 error: check logs for details
- How can I find and run the keytool
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- because an app is obscuring a permissions request, Settings can’t verify your response
- Android: adb pull file on desktop
- ADB No Devices Found
- Calculating the angle between the line defined by two points
- adb shell su works but adb root does not
- Android ListView headers
- Session ‘app’: Error Installing APK
- adb shell su works but adb root does not
- MediaStore.Images.Media.insertImage deprecated
- Could not find or load main class org.gradle.wrapper.GradleWrapperMain
- How to record Android device’s screen on Android version below 4.4 (KitKat)
- Using ADB to capture the screen
- How to change background color in android app
- Android Studio AVD – Emulator: Process finished with exit code 1
- Intel HAXM is required to run this AVD
- Unsupported method: BaseConfig.getApplicationIdSuffix()
- Font size of TextView in Android application changes on changing font size from native settings
- Android: How to handle right to left swipe gestures
- No tests found for given includes Error, when running Parameterized Unit test in Android Studio
- Error running android: Gradle project sync failed. Please fix your project and try again
- Session ‘app’ error while installing APK
- Android – SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length
- PANIC: Cannot find AVD system path. Please define ANDROID_SDK_ROOT (in windows 10)
- I am getting this error “your cpu doesn’t support vt-x or svm, android studio 2.1.1 in AMD 6300 processor”
- Adding an onclicklistener to listview (android)
- Android – Listen For Incoming SMS Messages
- What does “Failure [INSTALL_FAILED_OLDER_SDK]” mean in Android Studio?
- java.lang.RuntimeException: Unable to start activity ComponentInfo
- Android LinearLayout Gradient Background
- Why emulator is very slow in Android Studio?
- Android Studio SDK location
- Android Studio SDK location
- Application Installation Failed in Android Studio
- What is INSTALL_PARSE_FAILED_NO_CERTIFICATES error?
- How to convert int to Integer
- Android Studio 3.0 Execution failed for task: unable to merge dex
- What does ellipsize mean in android?
- equivalent to push() or pop() for arrays?
- Android Studio ERROR: Cannot resolve symbol ‘View’
- Android Fragment onAttach() deprecated
- Login Error: There is an error in logging you into this application. Please try again later
- How to emulate a gyroscope in an Android Emulator
- Fullscreen Activity in Android?
- Android – Start service on boot
- Call to getLayoutInflater() in places not in activity
- How to add a jar in External Libraries in Android Studio?
- Sending POST data in Android
- Adb backup does not work
- What is the difference between gravity and layout_gravity in Android?
- Remove Project from Android Studio
- Failed to install android-sdk: “java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema”
- Maven build Compilation error : Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Maven
- How to implement a confirmation (yes/no) DialogPreference?
- Android Studio Gradle DSL method not found: ‘android()’ — Error(17,0)
- How to enable Location access programmatically in android?
- Android: No Activity found to handle Intent error? How it will resolve
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- Android Studio – Emulator – eglSurfaceAttrib not implemented
- Start an activity from a fragment
- What to use instead of “addPreferencesFromResource” in a PreferenceActivity?
- How to code using android studio to send an email
- HAX kernel module is not installed
- set background color: Android
- Cannot resolve symbol AppCompatActivity – Support v7 libraries aren’t recognized?
- Authentication for wordpress website
- Add Button to Bottom of Mobile Menu
- Jetpack Publicize and Android
- WordPress post to android
- Connect my WordPress site users to my public site account without showing my public site credentials