Hi guys, when I try to build my app see this error (2 weeks ago run correctly)
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
> Could not find any version that matches com.google.android.gms:strict-version-matcher-plugin:11.8.+.
Versions that do not match:
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
Searched in the following locations:
file:/C:/Users/Nuria/AppData/Local/Android/Sdk/extras/google/m2repository/com/google/android/gms/strict-version-matcher-plugin/maven-metadata.xml
file:/C:/Users/Nuria/AppData/Local/Android/Sdk/extras/google/m2repository/com/google/android/gms/strict-version-matcher-plugin/
file:/C:/Users/Nuria/Desktop/Iamvo - copia (2)/myApp/platforms/android/sdk-manager/com/google/android/gms/strict-version-matcher-plugin/maven-metadata.xml
file:/C:/Users/Nuria/Desktop/Iamvo - copia (2)/myApp/platforms/android/sdk-manager/com/google/android/gms/strict-version-matcher-plugin/
file:/C:/Users/Nuria/AppData/Local/Android/Sdk/extras/android/m2repository/com/google/android/gms/strict-version-matcher-plugin/maven-metadata.xml
file:/C:/Users/Nuria/AppData/Local/Android/Sdk/extras/android/m2repository/com/google/android/gms/strict-version-matcher-plugin/
file:/C:/Users/Nuria/Desktop/Iamvo - copia (2)/myApp/platforms/android/sdk-manager/com/google/android/gms/strict-version-matcher-plugin/maven-metadata.xml
file:/C:/Users/Nuria/Desktop/Iamvo - copia (2)/myApp/platforms/android/sdk-manager/com/google/android/gms/strict-version-matcher-plugin/
Required by:
project : > com.google.gms:google-services:4.2.0
```_emphasized text_
P.s. You might have to update your gradle plugin (Android Studio) too. Just open any Android project in Android Studio (or create just an empty one). You’ll see the syncing process down in the statusbar. Wait for it to finish.
It didnt work for me, If i try to remove some plugin for update it, the console shows me a weird message:
Uninstalling cordova-plugin-firebase from android
Android Studio project detected
missing file :: app/src/main
Error during processing of action! Attempting to revert...
(node:1121) UnhandledPromiseRejectionWarning: Error: Uh oh!
ENOENT: no such file or directory, open '/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/AndroidManifest.xml'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.parseElementtreeSync (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
at new AndroidManifest (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/lib/AndroidManifest.js:29:20)
at AndroidProject.getPackageName (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/lib/AndroidProject.js:99:12)
at AndroidProject.getCustomSubprojectRelativeDir (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/lib/AndroidProject.js:105:28)
at uninstall (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/lib/pluginHandlers.js:131:46)
at ActionStack.process (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.removePlugin (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:148:17)
(node:1121) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1121) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
And after that, I can’t even get the same error that I have previously (the one about strict-version-matcher), because I get similar errors to the one that I have shown
In my case, I found that cordova-plugin-firebase had a confilct with another plugin with the framework “com.google.gms:google-services”.
So, first I went to plugins > cordova-plugin-firebase > plugin.xml, then i changed the line <framework src=“com.google.gms:google-services:+” /> for <framework src=“com.google.gms:google-services:4.2.0” />
When i did this changed, the compile process throw an error with de java version, then i went to platforms > android > build.gradle i changed
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
for
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
and because this java version use Jack, so i had to add
jackOptions {
enabled true
}
in the defaultConfig space.
I have same issue here, I’ve tried 2 solution above
Cordova clean android and re install android support repository
but error when try to “cordova clean android”
and gonzalogobea solutiond, but still not work for me,.,.
any one have other solutions?
I’ve searched the solution for 3 days but no progress, please help me
here my error
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
> Could not find any version that matches com.google.android.gms:strict-version-matcher-plugin:11.2.+.
Versions that do not match:
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
Searched in the following locations: