ANDROID issue UserError: Conflict found, edit-config changes from config.xml will overwrite plugin.xml changes

I am getting the following error when building for ANDROID:

UserError: Conflict found, edit-config changes from config.xml will overwrite plugin.xml changes.
To figure out which edit-config clause is the problem,
remove edit-config clauses from config.xml one at a time and rerun.

I built the same CORDOVA application 2 days ago without any issues. I have not made any changes to the config.xml file. What is going wrong?

.... ...

I remove edit-config clauses from config.xml the result is another error.
I updated all the plugins, tried different configurations and ran 15 builds without success

Generally this means one of your plugins has updated. Can you see if any are showing updates over the last few days?

No plugins updated in the last few days.

The error log also reports:

Welcome to Gradle 8.13!

Here are the highlights of this release:

  • Daemon JVM auto-provisioning
  • Enhancements for Scala plugin and JUnit testing
  • Improvements for build authors and plugin developers

For more details see Gradle 8.13 Release Notes

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

  • Where:
    Script ā€˜/platforms/android/CordovaLib/cordova.gradle’ line: 79

  • What went wrong:
    A problem occurred evaluating script.

No usable Android build tools found. Highest 35.x installed version is 34.0.0; Recommended version is 35.0.0.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 9s
Command failed with exit code 1: /platforms/android/tools/gradlew cdvBuildRelease

I see the issue. The latest Cordova Android engine was released 7 hours ago. If you specify engine 13, things should work just fine. We’ll be beta testing this engine shortly.

No does not work and I finish my builds plan

same here. Android builds fail with No usable Android build tools found. Highest 35.x installed version is 34.0.0; Recommended version is 35.0.0.. Changing engine version to 13 doesn’t help. Changing ā€˜android-targetSdkVersion’ to 35 does not help either

I’ve had success building just now using :

<engine name="android" spec="13.0.0" />
<preference name="android-targetSdkVersion" value="34" />

near top of the config.

N

The problem persist
UserError: FAILURE: Build failed with an exception.

  • Where:
    Script ā€˜/agent/upload/6e98b238-0596-419c-aac8-fe2348f101f7/platforms/android/CordovaLib/cordova.gradle’ line: 79

  • What went wrong:
    A problem occurred evaluating script.

No usable Android build tools found. Highest 35.x installed version is 34.0.0; Recommended version is 35.0.0.

Please help

1 Like

Setting <engine name="android" spec="13.0.0" /> does not help! Build fails with the same message. Is someone going to solve this problem?

Did you specify the 2nd line also?

Build fails with the same message

1 Like

We will be updating our build servers to use the latest engine today. In the interim to use engine 13, please specify the following lines in your config.xml:

<engine name="android" spec="13.0.0" />
<preference name="android-targetSdkVersion" value="34" />

If you are still receiving errors, please let me know here so I can look into them. Please include your config.xml and the build log. Thank you.

Cordova Android Engine 14 is available via our open beta. You can build using the beta servers by checking the box on the upload page.

Not working
No usable Android build tools found. Highest 35.x installed version is 34.0.0; Recommended version is 35.0.0.

It seems to ignore the preference set in config.xml ( preference name=ā€œandroid-targetSdkVersionā€ value=ā€œ34ā€)
but set Android Target SDK to android-35 that is not found because only version 34 is installed.

2025-03-26 15:58:28,018 - Output: Using cordova-fetch for cordova-android
Adding android project…
android-targetSdkVersion should be greater than or equal to 35.
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.XXXXXX
Name: XXXXXXX
Activity: MainActivity
Android Target SDK: android-35
Android Compile SDK: 34
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@14.0.0

I just took a look at your config.xml and you will need to move your engine tag outside of your android platform tag. It should be at the top level.

Working now, awesome

Thank you

This should now be resolved in all build environments.

I have an issue after the servers update.

As we have a lot of old devices in Brazil, i really need to use android spec 9.1.0 to insure compatibility.
I don’t need publish my app in Android Play Store, so they download the app using download apps from ā€œUnknown sourcesā€.

So in my config.xml i use:

<engine name="android" spec="9.1.0" />
<preference name="android-targetSdkVersion" value="26" />

I was able to build sucessfuly yesterday at noon (BRT), but today i got this error:
*I tryed to remove all the plugins but still got the same error.

2025-03-27 16:06:14,556 - Error: engine must be at least 10.0.0 ā€˜9.1.0’.
2025-03-27 16:06:14,557 - Build failed 4daaa593-dfdb-40e8-8bf9-c78f553839a8
2025-03-27 16:06:15,715 - Output: Package Current Wanted Latest Location Depended by
cordova-android 9.1.0 9.1.0 14.0.0 node_modules/cordova-android 4daaa593-dfdb-40e8-8bf9-c78f553839a8
cordova-plugin-dialogs 1.3.4 1.3.4 2.0.2 node_modules/cordova-plugin-dialogs 4daaa593-dfdb-40e8-8bf9-c78f553839a8
cordova-plugin-netcontroll-integration-tef 1.0.10 1.0.12 1.0.12 node_modules/cordova-plugin-netcontroll-integration-tef 4daaa593-dfdb-40e8-8bf9-c78f553839a8
cordova-plugin-splashscreen 4.0.3 4.0.3 6.0.2 node_modules/cordova-plugin-splashscreen 4daaa593-dfdb-40e8-8bf9-c78f553839a8
cordova-plugin-statusbar 2.4.3 2.4.3 4.0.0 node_modules/cordova-plugin-statusbar 4daaa593-dfdb-40e8-8bf9-c78f553839a8

2025-03-27 16:06:15,718 - Uploading voltbuilder.log…

We had to drop support for engine v9 because several of it’s dependencies are no longer present on the internet (they’ve been removed).

I don’t see any compatibility differences between 9 and 10 as far as SDK 26 is concerned. In fact even the most modern engines should still support SDK 26.

Can you tell me what kind of problems you are experiencing using a later engine?

Checked that out, managed to build on android@10.0.0 and updated the target to 28.
But got another problem, my app is Chrome based and I use websocket to calls in internal IPs. With android@10.0.0 or above I can’t call a htpp url because the apk is running into a https window.

code.js:1342 Mixed Content: The page at ā€˜https://localhost/index.html’ was loaded over HTTPS, but requested an insecure script ā€˜http://XXX.XX.X.65:XXX/?Function=…’. This request has been blocked; the content must be served over HTTPS.

As I can think that’s the major problem, the others cordova plugins that I use just compiled fine too.