问题
build.gradle:

Android build.gradle shows following error
ERROR: ParseError at [row,col]:[65,9] Message: expected start or end tag Affected Modules: app
回答1:
I got the same error, and the wrong character was found in the [row, col] position of the AndroidManifest.xml, not build.gradle
回答2:
I got this same error, and finally I found that there is error in Mainfest.xml file
<service
android:name=".onboarding.httpserver.HttpService"
android:exported="false"
>
</service>>
you see, there are two >> after /service. which is wrong. After I fix this error, this message is disappear
回答3:
I got the same error similar one like
Message: expected start or end tag
Affected Modules: app
[row, cal] 17,17
I forget an unnecessary />
characters in Manifest. Try to clean it any one has it.
回答4:
I got a Commented line in manifest file, when i removed the commented line and build the gradle file then the error is solved.
回答5:
I got this error after updating the Gradle version, Manifest file was the same though. However reformatting the code in Manifest fixed it.
回答6:
when say [27:15]
that means you have an error in that position . go to the 27th line
and if you have any wrong character
correct it or maybe forget the />
or any little mistake in your manifest.xml
NOTE: some times the Merged Manifest
can help you.
回答7:
check any unwanted characters that are added in the manifest file by mistake. After removing those characters/lines the problem was solved in my working application. check once and happy coding
回答8:
In manifest file I commented like
/* something i wrote here
*/
When i deleted this commented line then it was synced and run properly.
回答9:
You're using the wrong comment syntax.
Please remove the #
comment from the Manifest file and replace it with <!-- Comment -->
.
来源:https://stackoverflow.com/questions/52847911/android-build-gradle-error-parseerror-at-row-col65-9-message-expected-sta