snipt

Ctrl+h for KB shortcuts

Text only

Cordova slow/blocking build (mergeArm...)

1
2
3
4
5
It's because there are too much files in www/

In my case it was node_modules/ that I had to move from www/ to src/

I think the build phase tries to merge the files on the platform folder. But the more files, the slower it gets I guess
https://snipt.net/embed/ea7aa6df02a6f7952103252158385122/
https://snipt.net/raw/ea7aa6df02a6f7952103252158385122/
ea7aa6df02a6f7952103252158385122
text
Text only
5
2016-09-25T21:52:48
True
False
False
May 23, 2016 at 09:50 AM
/api/public/snipt/147033/
cordova-slowblocking-build-mergearm
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>It&#39;s because there are too much files in www/ </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>In my case it was node_modules/ that I had to move from www/ to src/ </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>I think the build phase tries to merge the files on the platform folder. But the more files, the slower it gets I guess </span></pre></div> </td></tr></table>
android, build, cordova, slow

Text only

sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable.

1
2
3
4
5
Open the terminal window and enter the following:
export ANDROID_HOME=/Applications/adt-bundle/sdk (ng: write your own path to sdk)

Once you have this set, you need to add this to the PATH environment variable
export PATH=$PATH:$ANDROID_HOME/bin
https://snipt.net/embed/dcaa2e1f32999dd44f9907a19e3495bf/
https://snipt.net/raw/dcaa2e1f32999dd44f9907a19e3495bf/
dcaa2e1f32999dd44f9907a19e3495bf
text
Text only
5
2016-09-27T13:21:41
True
False
False
/api/public/snipt/136876/
sdkdir-is-missing-make-sure-to-generate-localproperties-using-android-update-project-or-to-inject-it-through-the-android_home-environment-variable-e54f799d
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>Open the terminal window and enter the following: </span><span id="L-2"><a name="L-2"></a>export ANDROID_HOME=/Applications/adt-bundle/sdk (ng: write your own path to sdk) </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>Once you have this set, you need to add this to the PATH environment variable </span><span id="L-5"><a name="L-5"></a>export PATH=$PATH:$ANDROID_HOME/bin </span></pre></div> </td></tr></table>
android, cordova

Text only

Cordova: Error on plugin installation (TypeError: Cannot read property 'install' of undefined)

1
2
3
Try to update cordova :)

npm install -g cordova
https://snipt.net/embed/d268c3f1a5c155818683fd4e0fff8aa6/
https://snipt.net/raw/d268c3f1a5c155818683fd4e0fff8aa6/
d268c3f1a5c155818683fd4e0fff8aa6
text
Text only
3
2016-09-27T09:00:53
True
False
True
Feb 13, 2014 at 05:44 AM
/api/public/snipt/113339/
cordova-error-on-plugin-installation-typeerror-cannot-read-property-install-of-undefined
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>Try to update cordova :) </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>npm install -g cordova </span></pre></div> </td></tr></table>
cordova, inappbrowser, plugins

JavaScript

Cordova/AngularJS: jsHybugger protocol error

1
2
3
app.config(['$compileProvider', function($compileProvider) {
    $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|content):/);
}]);
https://snipt.net/embed/13f1519c9d8cd4ab08a5ef0026d01178/
https://snipt.net/raw/13f1519c9d8cd4ab08a5ef0026d01178/
13f1519c9d8cd4ab08a5ef0026d01178
js
JavaScript
3
2016-09-22T02:10:53
True
False
True
Jan 23, 2014 at 05:29 AM
/api/public/snipt/107969/
cordovaangularjs-jshybugger-protocol-error
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="nx">app</span><span class="p">.</span><span class="nx">config</span><span class="p">([</span><span class="s1">&#39;$compileProvider&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">$compileProvider</span><span class="p">)</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="nx">$compileProvider</span><span class="p">.</span><span class="nx">aHrefSanitizationWhitelist</span><span class="p">(</span><span class="sr">/^\s*(https?|ftp|mailto|file|content):/</span><span class="p">);</span> </span><span id="L-3"><a name="L-3"></a><span class="p">}]);</span> </span></pre></div> </td></tr></table>
cordova, error, jsHybugger, phonegap, protocol

Text only

Cordova/Phonegap (iOS5, iOS6): Status bar offset problem, Webview height scrollbar

Just remove the device-height attribute on your meta viewport
https://snipt.net/embed/ef142d6f09b89dcdad66a3c70d886061/
https://snipt.net/raw/ef142d6f09b89dcdad66a3c70d886061/
ef142d6f09b89dcdad66a3c70d886061
text
Text only
1
2016-09-25T10:07:22
True
False
True
Jan 15, 2014 at 11:27 AM
/api/public/snipt/106094/
cordovaphonegap-ios5-ios6-status-bar-offset-problem-webview-height-scrollbar
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>Just remove the device-height attribute on your meta viewport </span></pre></div> </td></tr></table>
"status bar", cordova, height, ios, phonegap, webview
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.