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
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.
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
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:
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
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ā.
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.