This would be an exception to other releases, or? It’s not enough to remove the 
platform and add it again, you also have to execute `cordova build` if you want 
open it in Android Stuido. I tried if `cordova prepare` will fix this, but it 
don’t. So this have to be noted in the release article?

> Am 25.02.2026 um 20:19 schrieb Norman Breau via dev <[email protected]>:
> 
> I can reproduce this error on a fresh android project when using
> Android Studio, however the error goes away once `cordova build
> android` is issued.
> 
> The Cordova CLI builds does work as expected and once it's built once
> from the Cordova CLI, Android Studio can sync with Gradle and build
> properly.
> 
> I believe this issue was introduced when the dummy gradle project was
> introduced, which is used to setup the gradle wrapper without having
> AGP interfere with version constraints. I also tested current stable
> and this issue also produces there, so this isn't a regression.
> Therefore I don't think the issue should block this release.
> 
> But we should maybe look into and see if we can get the gradle wrapper
> setup earlier, either during prepare or after the platform is created.
> That should fix the issues with Android Studio. This can probably be
> done as a minor or patch release though.
> 
> On Wed, 2026-02-25 at 17:28 +0100, Manuel Beck wrote:
>> When I create a new Cordova Project and add the cordova-android
>> master by https://github.com/apache/cordova-android, I get the
>> following error in Android Studio Panda 1 | 2025.3.1:
>> 
>> Script '/Users/manuelbeck/Projekte/Cordova/test/android-
>> test/platforms/android/CordovaLib/cordova.gradle' line: 135
>> 
>> Could not compile script
>> '/Users/manuelbeck/Projekte/Cordova/test/android-
>> test/platforms/android/CordovaLib/cordova.gradle'.
>>> startup failed:
>>   script '/Users/manuelbeck/Projekte/Cordova/test/android-
>> test/platforms/android/CordovaLib/cordova.gradle': 135: unable to
>> resolve class XmlParser
>>    @ line 135, column 12.
>>          return new XmlParser(false, false).parseText(xml)
>>                 ^
>>   
>>   1 error
>> 
>>> Am 25.02.2026 um 05:03 schrieb [email protected]:
>>> 
>>> +1 (binding) (erisu) Bryan Ellis
>>> 
>>> * Verified "Release Auditing" workflow was passing (License Header
>>> & Dependency License)
>>> * Verified "Node CI" testing workflow was passing after tagging
>>> * Verified 'npm audit' was in acceptable range
>>> * Verified locally 'npm test' passes
>>> * Verified reproducible builds by re-generating tarballs and SHA-
>>> 512 checksums locally. (Note: ZIP must have TZ=UTC set)
>>> * Verified `cordova platform add`
>>> * Verified `cordova build`
>>> * Verified running app on simulator via Android Studio
>>> 
>>> -- 
>>> Bryan Ellis (erisu)
>>> 
>>> -------------------------------------------------------------------
>>> --
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to