kam*_*mil 7 offline netbeans cordova
我正在使用带有cordova的netbeans为移动设备构建html5应用程序(android/iOS)
我没有连接到互联网时在netbeans中构建应用程序时遇到问题,因为尽管我已经连接到互联网并且下载了所需的所有内容并且应用程序运行良好,但是Cordova总是试图下载插件.当互联网连接断开时,我无法建立.
你有任何想法从互联网上禁用cordova插件下载.我在同一天多次丢失我的互联网连接,并且cordova在编译时给我错误,因为我离线了:
ant -f /home/user/NetBeansProjects/electionMobile/nbproject -Dandroid.target.device.arg=emulate -Denv.DISPLAY=:0.0 -Dupdate.task.jar=/home/user/.netbeans/7.4/ant/extra/org-netbeans-modules-cordova-projectupdate.jar -Dandroid.sdk.home=/var/www/adt-bundle-linux-x86_64-20130917/sdk -Dandroid.build.target=android-17 -Dstart.file=index.html -Dandroid.project.activity=electionMobile -Dconfig=android "-Dios.certificate.name=iPhone Developer" -Dsite.root=www "-Dcordova.version=3.1.0-0.1.0
" sim-android
check-android-template:
check-cordova-version:
check-cordova-project:
upgrade-to-cordova-project:
create-android:
update-plugins:
cordova plugins
cordova -d plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
Calling plugman.fetch on plugin "https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git"
Fetching plugin from location "https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git"...
Fetching plugin via git-clone command: git clone "https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git" "plugman-tmp1386435517527"
Error: Error fetching plugin: Error: failed to get the plugin via git from URL https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git, output: Cloning into 'plugman-tmp1386435517527'...
error: Couldn't resolve host 'git-wip-us.apache.org' while accessing https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git/info/refs
fatal: HTTP request failed
at /usr/lib/node_modules/cordova/src/plugin.js:117:39
at /usr/lib/node_modules/cordova/node_modules/plugman/src/fetch.js:56:35
at /usr/lib/node_modules/cordova/node_modules/plugman/src/util/plugins.js:47:38
at /usr/lib/node_modules/cordova/node_modules/shelljs/shell.js:1707:7
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
/home/user/NetBeansProjects/electionMobile/nbproject/build.xml:227: exec returned: 1
BUILD FAILED (total time: 1 second)
Run Code Online (Sandbox Code Playgroud)
我在学校电脑上安装了 Cordova,那里的网络非常不稳定,但它可以在离线状态下编译。
您是否使用了一些外部插件?或者您的 Android SDK 工具中缺少某些内容吗?
我在上面安装了整个Android SDK工具包,即使离线也不会呜呜叫。
| 归档时间: |
|
| 查看次数: |
3617 次 |
| 最近记录: |