Tag: obj encounters post image node hand new version of log failed
The problem is as follows:
Failed to install ' Ionic-plugin-keyboard ': Error:ENOENT:no such file or directory, open '/users/theo/projects/mobile/pla Tforms/android/androidmanifest.xml 'At Object.fs.openSync (fs.js:651:18) at Object.fs.readFileSync (fs.js:553:33) at Object.parseelementtreesync (/users/theo/projects/mobile/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js : 180:27) atNewAndroidmanifest (/USERS/THEO/PROJECTS/MOBILE/PLATFORMS/ANDROID/CORDOVA/LIB/ANDROIDMANIFEST.JS:29:20) at Androidproject.getpackagename (/users/theo/projects/mobile/platforms/android/cordova/lib/androidproject.js : 99:12) at Api.addplugin (/users/theo/projects/mobile/platforms/android/cordova/api.js:223:57) at Handleinstall (/users/theo/.nvm/versions/node/v8.1.2/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js : 594:10) at/users/theo/.nvm/versions/node/v8.1.2/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js : 357:28At _fulfilled (/users/theo/.nvm/versions/node/v8.1.2/lib/node_modules/cordova/node_modules/q/q.js:787:54) at Self.promiseDispatch.done (/USERS/THEO/.NVM/VERSIONS/NODE/V8.1.2/LIB/NODE_MODULES/CORDOVA/NODE_MODULES/Q/Q.JS:816:30)
The reason for this problem is that the new version of Cordova 7.0.0 and above for the new androidmanifest.xml path has not been updated, resulting in no androidmanifest.xml found, the workaround is as follows:
NPM Uninstall-g [email protected]
That is, uninstall the new version, install 7.0.0 below the version, this time to build, problem solving.
Original link: https://github.com/ionic-team/ionic-plugin-keyboard/issues/304
There is another solution, which is the official Cordova solution:
Change path to correct path in CONFIG.
<!--an existing config--><edit-config file= "androidmanifest.xml" target= "/manifest/application" mode= " Merge "><!--needs to--><edit-config file=" App/src/main/androidmanifest.xml "target="/manifest/ Application "mode=" Merge >
Links: https://cordova.apache.org/announcements/2017/12/04/cordova-android-7.0.0.html
Ionic3 androidmanifest.xml problems encountered during build