Monthly Archives: February 2016
-
February 26, 2016
The error you have received is from NPM (since the Cordova CLI is installed via NPM). This is a tricky issue where using NPM with
sudo
, and then not usingsudo
will result in weird permission issues.Solution:
sudo chown -R $USER /usr/local/
-
February 26, 2016
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':CordovaLib:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/arulmanickam/adt-bundle-linux-x86-20131030/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 127Solution :
For me it was that I forgot to install the 32bit dependencies:
sudo apt-get install -y lib32gcc1 libc6-i386 lib32z1 lib32stdc++6
sudo apt-get install -y lib32ncurses5 lib32gomp1 lib32z1-dev lib32bz2-dev
-
February 26, 2016
i have this error when i am trying to build
[Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.]Solution
You have permission errors. My guess is that you tried to run the script as root rather than sudo. When running the script you have to run it as your user account using sudo.
change owner permission all files & folder to your current login user .
- Your android sdk
- Your ionic or cordova project files
dont run as admin or run using sudo
-
February 15, 2016
I'm using PHP's built-in DOMXPath() class to do some simple web-scrapping. However, it works on my 4.2 site, but not my 5.1 (both are on same installation of PHP).
Here's the error:
$list1 =newDOMXPath();
In Laravel 5.1 you must prefix the class name with the global namespace prefix '\'.
$list1 =new \DOMXPath();
-
February 15, 2016
I'm using PHP's built-in DOMDocument() class to do some simple web-scrapping. However, it works on my 4.2 site, but not my 5.1 (both are on same installation of PHP).
Here's the error:
$list1 =new DOMDocument();
In Laravel 5.1 you must prefix the class name with the global namespace prefix '\'.
$list1 =new \DOMDocument();