Bphreaker / cordova-plugin-remove-ad-permission

Cordova Plugin to remove Android AD Permission from app manifest
MIT License
2 stars 5 forks source link

xmlns:tools namespace problem #1

Open diegomesata opened 10 months ago

diegomesata commented 10 months ago

I was getting and error about the tools namespace, I had to add two things to make it work:

In config.xml:

<widget .... xmlns:tools="http://schemas.android.com/tools">

and

... And I had to install the cordova-custom-config plugin: cordova plugin add cordova-custom-config
Bphreaker commented 10 months ago

Hello @diegomesata ,

What was the error you got can you share?

patrickchoi commented 7 months ago

Got the same error

Execution failed for task ':app:mapReleaseSourceSetPaths'.
> Error while evaluating property 'namespace' of task ':app:mapReleaseSourceSetPaths'
   > Failed to calculate the value of task ':app:mapReleaseSourceSetPaths' property 'namespace'.
      > Failed to calculate the value of property 'namespace'.
         > org.xml.sax.SAXParseException; systemId: file:/**************/platforms/android/app/src/main/AndroidManifest.xml; lineNumber: 78; columnNumber: 99; The prefix "tools" for attribute "tools:node" associated with an element type "uses-permission" is not bound.
bsprengelmeijer commented 7 months ago

I also get the same error