[
https://issues.apache.org/jira/browse/CB-13636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16280440#comment-16280440
]
Gianluca Pinoci commented on CB-13636:
--------------------------------------
Hi Joe. Me too I ran `cordova platform rm android` then `cordova platform add
[email protected]`.
After running into this issue, I went as far as removing all plugins and
deleting the node_modules folder, reinstalled NPM packages and tried to re-add
the android platform. I had to revert back to 6.4.0.
To give you more details, I checked `plugin.xml` of `ionic-keyboard-plugin` and
it's not doing anything different from a standard (working) plugin such as
`cordova-plugin-statusbar`.
Anyway, after removing `ionic-keyboard-plugin`, the build process failed with
the error `Merging project's config.xml into platform-specific android
config.xml` (could not find res/xml/config.xml).
This is the line that threw the error:
https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/prepare.js#L104
Not sure if relevant, but I'm working on Win10 64
> Plugins not for Android fail to install for Android
> ---------------------------------------------------
>
> Key: CB-13636
> URL: https://issues.apache.org/jira/browse/CB-13636
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-android
> Affects Versions: 7.0.0
> Reporter: Tom Bell
> Assignee: Joe Bowser
>
> I am trying to update my project to 7.0.0 for cordova-android, however we
> have some plugins that are failing to install when re-installing the android
> platform.
> {code}
> Installing "zestia-cordova-plugin-activity" for android
> Failed to install 'zestia-cordova-plugin-activity': Error: ENOENT: no such
> file or directory, open
> '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml'
> at Object.fs.openSync (fs.js:646:18)
> at Object.fs.readFileSync (fs.js:551:33)
> at Object.parseElementtreeSync
> (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
> at new AndroidManifest
> (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidManifest.js:29:20)
> at AndroidProject.getPackageName
> (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidProject.js:99:12)
> at Api.addPlugin
> (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/Api.js:223:57)
> at handleInstall
> (/Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:594:10)
> at
> /Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:357:28
> at _fulfilled
> (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:787:54)
> at self.promiseDispatch.done
> (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:816:30)
> Error: ENOENT: no such file or directory, open
> '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml'
> {code}
> This specific plugin only has configuration for iOS platforms. Do I need to
> change something in the plugins I've written internally?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]