GitHub user breautek added a comment to the discussion: Cordova Plugin File 
doesn't work on Android 13

Glad it worked...

For future readers:

```xml
<framework src="androidx.documentfile:documentfile:1.0.1" />
```

should have been:

```xml
<framework src="androidx.documentfile:documentfile" version="1.0.1" />
```

I think (going off memory but the `src` attribute isn't suppose to include the 
version information). This approach would be a better way to go because the 
native project will be constructed properly when the platform is added.

If the contents of `platforms/android` is modified manually, them the changes 
will potentially be lost when adding or removing plugins, or when you upgrade 
the android platform (which involves removing it). If modifying 
platforms/android is required, then at least use a 
[hook](https://cordova.apache.org/docs/en/11.x/guide/appdev/hooks/index.html) 
to programmatically manipulate the native project so that the project 
generation is reproducible in a consistent manner.

The fix in the plugin.xml to include the `framework` directive would be ideal 
fix in this case however.

GitHub link: 
https://github.com/apache/cordova/discussions/424#discussioncomment-6491159

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to