Journal karniv0re's Journal: More Cordova Hell
By now, I am desperate.
This fucking app has advanced exactly 0 measurable units in the last 3 weeks. I have tried a lot of things, but I always get stopped a few steps in by more shit breaking. This is insanity.
I'm going to continue documenting my struggle, in the hopes that I figure something out and am able to articulate why this has taken so long.
Objective
Since the app I have is completely fucked as-is, I need to start small and add in. I will start with a clean slate. A sample app. My goal, by the end of this, is to have a working app that can take
a picture with my phone's camera. Doesn't have to do much else.
I will start with this sample app:
git clone https://github.com/gizur/cordova-camera-example
Obeying the readme.md, I started in the directory and did
npm install
cd www
sh.exe": cd: www: No such file or directory
Great. I'll assume he means www-src and move on.
cd www-src
bower install
sh.exe": bower: command not found
npm install -g bower
bower install
bower retry Request to https://bower.herokuapp.com/packages/remote failed with ECONNRESET, retrying in 1.6s
Googled grunt ECONNRESET: https://github.com/bower/bower/issues/467
Googled "where is
Settled on home directory.
Trying to update
Error: Windows Explorer tells me I can't do that and that I must type a filename.
Find out, I can't do that in Explorer and have to do it on the command line.
mv bowerrc.txt
Added to
{
"directory": "library",
"registry": "http://bower.herokuapp.com",
"proxy":"http://:@:/",
"https-proxy":"http://:@:/"
}
bower install
cd
cordova plugin add cordova-plugin-console
Error: Current working directory is not a Cordova-based project.
And at this point, I'm realizing this isn't going to work.
Starting over.
https://github.com/apache/cordova-app-hello-world
cordova platform add android --save
cordova build android --verbose
Copy platform\android\build\outputs\apk\android-debug.apk to phone and try to install.
Error: App not installed
http://stackoverflow.com/questions/4226132/app-not-installed-error-on-android
Deleted old app and tried again. App installed.
Now I'm back to a starting point.
More Cordova Hell More Login
More Cordova Hell
Slashdot Top Deals