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

Installation fails with Android@11, Build fails if installed using --force #286

Open
pixellet14 opened this issue Nov 3, 2022 · 2 comments

Comments

@pixellet14
Copy link

The plugin tries to create a file themes.xml in platforms\android\app\src\main\res\values\

where as, android@11 platform add, already creates one before hand, hence the installation fails.

If you try to install the plugin with --force, the default themes.xml changes and there after the build keeps failing.

Solution : I took a back up of the platforms\android\app\src\main\res\values android default themes.xml file and then installed the plugin using --force. After installation, I appended the initial lines from themes.xml (back up file) into the newly created themes.xml file by the plugin. And it worked.

@pixellet14 pixellet14 changed the title Installation fails with Android@11, Build fails in installed using --force Installation fails with Android@11, Build fails if installed using --force Nov 3, 2022
@BARNZ
Copy link

BARNZ commented Jul 19, 2023

Thanks for the advice - I had the same problem as well when trying to update an old cordova app:

image

@PedroRF123154
Copy link

Modified version of Cordova Image Picker plugin with renamed themes file:
https://seogirona.es/cordova/cordova-imagePicker-modified-with-package.zip

To install the plugin directly from the local ZIP file you downloaded, use a file path instead of a remote URL. Here's how to install the plugin from the ZIP file on your local machine:

Unzip the ZIP file into a local folder, such as C:\Users\User\Downloads\cordova-imagePicker-modified-with-package.

Install the Plugin Using the Local Path:

In the terminal, run the following command, replacing the path with the location where you extracted the ZIP:
cordova plugin add C:\Users\Usuario\Downloads\cordova-imagePicker-modified-with-package

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

3 participants