cordova - Phonegap - build fails after including my js files -
i'm trying build phonegap app, error when running:
sudo -e env "path=$path" phonegap build android error code: 1 unable add '.../app/platforms/android/build/intermediates/assets/debug/www/react-backbone/node_modules/gulp-notify/node_modules/node-notifier/node_modules/semver/semver.browser.js.gz': file in archive (try '-u'?) error: unable process assets while packaging '.../app/platforms/android/build/intermediates/res/resources-debug.ap_'
a brand new project builds fine. moment add own css , js files , modify index view, fails. after commenting out external css , js files i'm loading, fails.
could inclusion of foreign directory in www/
confuse phonegap , cause error?
edit:
differences between working app , broken one.
my new index.html
:
replaced
<div class="app"> <h1>phonegap</h1> <div id="deviceready" class="blink"> <p class="event listening">connecting device</p> <p class="event received">device ready</p> </div> </div>
with
<div class="app"></div>
there css/js imports, commented them out, shouldn't affecting anything.
inside new directory have:
i'll try creating new app , adding directory see if messes up.
will update.
update:
confirmed adding directory causes problem build process. maybe i'm supposed put somewhere else?
update 2:
fixed issue, don't understand problem was, still response if knows.
i created project , reorganized code. stuck of files new directory in js/
, in css/
, etc. created build
directory , didn't cause issues.
Comments
Post a Comment