-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to graft xml at selector "manifest/uses-sdk" #151
Comments
I believe we should remove this from documentation. We don't set the If you try and set the minSDK, like the example you wrote above, Android Studio will complain:
I think the other settings does not get these sync warnings but managing the settings in Gradle and in the Manifest was maybe a bit excessive maybe? So I believe it was decided to do only Gradle. |
Yah, the documentation could have been removed. But |
@breautek facing similar issue First time works but second time when we run Script
|
Have similar issue XML code: |
@VeaceslavB this could be off topic but by any chance, does this happens to you because of the last release of cordova-plugin-camera ? In my case I just upgraded to 7.0.0 which requires this permission with |
Faced similar issue recently. Made the following update in my
Also I have the following string replacement in Android
For some time it worked well. Yesterday I've updated my Android SDK, Build Tools and Command-line Tools to latest, and received Rolling back Android-related staff didn't help. |
Adding update to my previous comment. Since I first faced this issue, I did several updates (macOS, Node.js, Cordova, cordova-android, etc.) Not sure what helped, but now I sometimes don't see Here is my setup (partial
|
Bug Report
Problem
What is expected to happen?
<edit-config>
to apply changes toAndroidManifest.xml
What does actually happen?
An error occurs and the build fails.
Information
Error stacktrace:
Command or Code
Use
cordova create
to build a simple hello world project.Inside the
config.xml
add:This is a copied and paste example from the docs. But this appears to occur when having
target="/manifest/uses-sdk"
, regardless of the body of<edit-config>
block. This also fails ifmode="merge"
is set.Do note that the following does not fail:
This leads me to believe perhaps this occurs if the
AndroidManifest.xml
does not have the target node.Finally run:
cordova build android
to observe the failure.Environment, Platform, Device
Windows 10
Cordova-Android 9
Version information
Windows 10
cordova: 9.0.0 ([email protected])
Checklist
The text was updated successfully, but these errors were encountered: