Note that there are some explanatory texts on larger screens.

plurals
  1. POBuild cordova apps offline
    primarykey
    data
    text
    <p>I am using <strong>netbeans</strong> with <strong>cordova</strong> to build html5 apps for mobile (android/iOS)</p> <p>I have a problem when building application in <strong>netbeans</strong> while not connected to the internet because <strong>cordova</strong> is always trying to download <strong>plug-ins</strong> although I have been connected to the internet and it downloaded everything needed and the app works great. when internet connection is down I can't build.</p> <p>do you have any idea to disable cordova plug-in download from the internet. I loose my internet connection many times at the same day and cordova gives me errors when compiling because I am offline:</p> <pre><code>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.&lt;anonymous&gt; (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) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload