You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/07 07:43:36 UTC

[GitHub] [cordova-plugin-file] rastafan commented on issue #408: Platform android@9.0.0 running on Android 10 : getFile produces INVALID_MODIFICATION_ERR - Error code 9.

rastafan commented on issue #408:
URL: https://github.com/apache/cordova-plugin-file/issues/408#issuecomment-670379873


   I can confirm that the same line from PR #410 put manually in config.xml solves the problem.
   I could not install PR 410 since that exact line was conflicting with an edit-config tag we have i our config.xml.
   
   Just to add some details, we had this line in our config.xml:
   
   ```
   <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
      <application android:usesCleartextTraffic="true" />
   </edit-config>
   ```
   
   Installing @eliadAfeka 's fork gave us this error:
   
   ```
   Failed to install 'cordova-plugin-file': Error: cordova-plugin-file cannot be added. <edit-config> changes in this plugin conflicts with <edit-config> changes in config.xml. Conflicts must be resolved before plugin can be added.
   ```
   
   So we edited our config.xml to look like this:
   
   ```
   <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
      <application android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true"/>
   </edit-config>
   ```
   
   and the problem seems to be solved.
   
   Thanks everyone for your help.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org