It does work at Microsoft but when i switch to the Mac i faced the problem when i trying to add the same plugin. I getting the same error many days already and can't fix. Hope can get some help. Thanks.
它确实在微软工作,但当我切换到Mac时,我试图添加相同的插件时遇到问题。我已经很多天都收到同样的错误,无法修复。希望可以得到一些帮助。谢谢。
Things i have tried are:-
我尝试过的事情是: -
- android sdk manager install all android support library, resource those
- uninstall, reinstall platform and plugin
- straight download the plugin of android.support.v4 ( it can be install but the plugin need this dependency doesn't work correctly )
- asked the official support from pushbots ( suggested me to uninstall and reinstall but it still the same )
-
cordova platform add android - Not working on Mac Os
cordova平台添加android - 不适用于Mac Os
bash-3.2# cordova plugin add com.pushbots.push Fetching plugin "com.pushbots.push" via cordova plugins registry Installing "com.pushbots.push" for android WARNING: android.support.v4 has been renamed to cordova-plugin-android-support-v4. You may not be getting the latest version! We suggest you `cordova plugin rm android.support.v4` and `cordova plugin add cordova-plugin-android-support-v4`. Fetching plugin "android.support.v4" via cordova plugins registry npm http GET http://cordova.iriscouch.com/registry/_design/app/_rewrite/android.support.v4/-/android.support.v4-21.0.1.tgz npm http 404 http://cordova.iriscouch.com/registry/_design/app/_rewrite/android.support.v4/-/android.support.v4-21.0.1.tgz npm ERR! fetch failed http://cordova.iriscouch.com/registry/_design/app/_rewrite/android.support.v4/-/android.support.v4-21.0.1.tgz Fetching from cordova plugins registry failed: 404 Not Found Fetching plugin "android.support.v4" via npm npm http GET http://registry.npmjs.org/android.support.v4 npm http 404 http://registry.npmjs.org/android.support.v4 Fetching from npm failed: 404 Not Found: android.support.v4 Failed to install 'com.pushbots.push':Error: 404 Not Found: android.support.v4 at RegClient.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:14) at Request.self.callback (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:148:22) at Request.emit (events.js:110:17) at Request.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:876:14) at Request.emit (events.js:129:20) at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:827:12) at IncomingMessage.emit (events.js:129:20) at _stream_readable.js:908:16 at process._tickCallback (node.js:355:11) Error: 404 Not Found: android.support.v4 at RegClient.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:14) at Request.self.callback (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:148:22) at Request.emit (events.js:110:17) at Request.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:876:14) at Request.emit (events.js:129:20) at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/npm/node_modules/request/index.js:827:12) at IncomingMessage.emit (events.js:129:20) at _stream_readable.js:908:16 at process._tickCallback (node.js:355:11)
android sdk manager安装所有android支持库,资源那些
卸载,重新安装平台和插件
直接下载android.support.v4的插件(它可以安装,但插件需要这个依赖不能正常工作)
问pushbots的官方支持(建议我卸载并重新安装,但它仍然相同)
1 个解决方案
#1
0
npm update
cordova plugin add com.pushbots.push
#1
0
npm update
cordova plugin add com.pushbots.push