Gradle Build Error: Saxparseexception
on building the app, i get following error: Error:org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-pattern-valid: Value 'build-tools;23.0.0 rc3' is not facet-va
Solution 1:
I have same problem after updating android studio 2.0 beta 2 and gradle. for solution please follow bellow steps
- Navigate to SDK Path.
- Open Build-tools directory.
- Remove 23.0.0-preview from build-tools directory.
- Rename build-tools-21.1.2 to 21.1.2
Done.
Solution 2:
I encountered this problem also after updating to latest gradle. Simply go to $ANDROID_HOME/build-tools/
and remove the 23.0.0 rc3 directory fixed the errors.
Solution 3:
I use latest version and I change this details.useVersion '25.3.0'
to
details.useVersion '26.0.0'
and it work for me
Solution 4:
The error itself clearly explains what is wrong here: is not facet-valid with respect to pattern '[a-zA-Z0-9_\-;.]+' for type 'segmentListType'.
Just remove the space before apply plugin: 'com.android.application'
and rebuild the project again.
Post a Comment for "Gradle Build Error: Saxparseexception"