contfedorov commented on issue #151: URL: https://github.com/apache/cordova-common/issues/151#issuecomment-1923508004
Faced similar issue recently. Made the following update in my `config.xml` several months ago: ``` <!-- add required XML namespace --> <edit-config file="app/src/main/AndroidManifest.xml" target="/manifest" mode="merge"> <manifest xmlns:tools="http://schemas.android.com/tools"/> </edit-config> <!-- add replace attr for permission tag --> <edit-config file="app/src/main/AndroidManifest.xml" target="/manifest/uses-permission[@android:maxSdkVersion='32']" mode="merge"> <uses-permission tools:replace="android:maxSdkVersion"/> </edit-config> ``` Also I have the following string replacement in Android `after_prepare` hook (as a workaround recommended in [this comment](https://github.com/apache/cordova-plugin-camera/commit/505ccefb4cf9797d0c65f2f0f5da55f73ea513d7#commitcomment-125636231)): ``` manifest = manifest.replace(/^(\s)+<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" \/>$/gm, ''); ``` For some time it worked well. Yesterday I've updated my Android SDK, Build Tools and Command-line Tools to latest, and received `Unable to graft xml at selector "/manifest/uses-permission[@android:maxSdkVersion='32']" from "/Users/.../platforms/android/app/src/main/AndroidManifest.xml" during config install` while executing `cordova prepare android`. Rolling back Android-related staff didn't help. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org