Skip to content
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

Duplicate lines in AndroidManifest when trying to disable debugging #7

Open
Razoralpha opened this issue Oct 1, 2020 · 0 comments
Open

Comments

@Razoralpha
Copy link

While I was trying to debug everything was working fine, I was able to build and debug the release version.
But when I set android:value to false to disable it like this:

<platform name="android">
	<config-file parent="/manifest/application" target="AndroidManifest.xml">
		<meta-data android:name="WebViewDebug" android:value="false" />
	</config-file>
</platform>

I've got this error message when I tried to build it:
Element meta-data#WebViewDebug at AndroidManifest.xml:14:9-72 duplicated with element declared at AndroidManifest.xml:13:9-71

The mentioned lines:

<meta-data android:name="WebViewDebug" android:value="true" />
<meta-data android:name="WebViewDebug" android:value="false" />

I've tried to manually remove the lines thinking it was an accident.
I've tried to remove the WebViewDebug config lines, but to no avail.
I've also tried to remove the plugin, the lines were still coming back.
I've removed and added android platform again and that finally did the trick.

Not entirely sure how it happened, maybe some regexp issue left both lines in the platform files, but it might point to something useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant