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 set the background color of the status bar during the launching phase [duplicate]
- How to show a loading gif while an APi is being called in xamarin android?
- 1000 * 60 * 60 * 24 * 30 results in a negative number [duplicate]
- Dial pad to get phone number (with Android button images)
- Emulator: ERROR: x86 emulation currently requires hardware acceleration
- Emulator: ERROR: x86 emulation currently requires hardware acceleration
- ‘App not Installed’ Error on Android
- ‘App not Installed’ Error on Android
- Draw a transparent circle onto a filled android canvas
- How to use navigateUp to close the application
- “unable to locate adb” using Android Studio [duplicate]
- “unable to locate adb” using Android Studio [duplicate]
- Can’t start Eclipse – Java was started but returned exit code=13
- Can’t start Eclipse – Java was started but returned exit code=13
- What exactly is “com.google.android.packageinstaller”
- Differences between arm64 and aarch64
- Converting double to string
- What is Gradle in Android Studio?
- Android WebView err_unknown_url_scheme
- google console error `OR-IEH-01`
- Install an apk file from command prompt?
- How to decompile an APK or DEX file on Android platform? [closed]
- Install an apk file from command prompt?
- Android Studio Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
- Error parsing data org.json.JSONException: Value
- What is a build tool?
- What does “|=” mean? (pipe equal operator)
- Virustotal Trapmine suspicious.low.ml.score
- My users get “net::err_name_not_resolved”
- Solving “adb server version doesn’t match this client” error [duplicate]
- Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
- Unity remote 5 not working
- Solving “adb server version doesn’t match this client” error [duplicate]
- Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
- How to display Toast in Android?
- What is Android’s file system?
- How to use adb command to push a file on device without sd card
- How is “mvn clean install” different from “mvn install”?
- Can’t create handler inside thread that has not called Looper.prepare()
- What is a StringIndexOutOfBoundsException? How can I fix it?
- recyclerview No adapter attached; skipping layout
- Exception : AAPT2 error: check logs for details
- This adb server’s $ADB_VENDOR_KEYS is not set
- Can’t create handler inside thread that has not called Looper.prepare()
- This adb server’s $ADB_VENDOR_KEYS is not set
- ‘adb’ is not recognized as an internal or external command, operable program or batch file
- How do popBackStack() and replace() operations differ?
- E: unable to locate package pip
- recyclerview No adapter attached; skipping layout
- Exception : AAPT2 error: check logs for details
- Flutter pageview : Find first and last page and swipe directions
- What are the possible reasons for NFC Service to become dead after some time?
- How can I find and run the keytool
- Android ADB devices unauthorized
- adb is not recognized as internal or external command, operable program or batch file
- Enable VT-x in your BIOS security settings (refer to documentation for your computer)
- NetworkType.UNMETERED vs NetworkType.METERED – PeriodicWork
- @ converted to %40 in HTTPPost request
- Getting net::ERR_UNKNOWN_URL_SCHEME while calling telephone number from HTML page in Android
- Simple Android RecyclerView example
- Find all Bluetooth devices (headsets, phones etc) nearby, without forcing the devices in discoverable mode
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- “Default Activity Not Found” on Android Studio upgrade
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- Unfortunately MyApp has stopped. How can I solve this?
- What is ‘Context’ on Android?
- How to install APK from PC?
- I am getting error: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed at the end of 2018
- How to convert any Object to String?
- android image button
- Default Activity not found in Android Studio
- What causes signal ‘SIGILL’?
- Unfortunately MyApp has stopped. How can I solve this?
- java.lang.NullPointerException: Attempt to invoke virtual method on a null object reference