Cordova - Error installing plugin with android platform 7

0

I have an Ionic v1 project (Cordova) and I use several plugins that work on the Android 6.4 platform.

When trying to add the android platform 7 or 7.1 in the project one of the plugins generates Manifest directory error when it is installed and displays the message:

Failed to install '...': Error: ENOENT: no such file or directory, open 'C:\Users\...\...\POC\platforms\android\AndroidManifest.xml'

 UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'C:\Users\...\...\POC\platforms\android\AndroidManifest.xml'

If I remove only the accused plugin, I can add the platform normally and do the build, but I need this plugin to be in the project. (The plugin works on platform 6.4 but not on 7)

I found on the official Cordova website talking about a change that should be made in config.xml because the location of the manifest should be another on platform 7, but the change did not work. ( link )

When looking for this error, I found many people saying that Cordova plugins are not supported on platform 7 and should use platform 6.4, but I have other plugins that work correctly with version 7.

Has anyone managed to solve this problem?

    
asked by anonymous 16.05.2018 / 22:07

0 answers