android - Cordova's distro files (jar) are not generated -
i'm trying start simple cordova 3.0.0 project under windows. development environment (including java, eclipse, ant, android sdk) exist , has been used numerous native apps.
i able create "hello" project using:
>create hellocordova com.example.hellocordova "helloworldcordova" creating new android project... building jar , js files... copying template files... copying js, jar & config.xml files... creating appinfo.jar... copying cordova command tools... updating androidmanifest.xml , main activity...
it worked ok, though there no distro files in project.
after i've tried build cordova's distro files using update
:
>update hellocordova microsoft (r) windows script host version 5.7 copyright (c) microsoft corporation. rights reserved. building jar , js files... copying js, jar & config.xml files... copying cordova command tools...
it not show errors, files cordova-3.0.0.jar
, cordova-3.0.0.js
missing in respective folders (libs
, assets/www
) should appear.
the problem possibly related api level (though i'm not sure how). check_reqs
reports:
please install android target 17 (the android 4.2 sdk).
yes, have 4.1 highest api level @ moment , keep so. don't see in cordova scripts indication level must 17, except check_reqs
itself, seems not involved in building process.
i'd appreciate suggestions how fix this.
it looks missed step build jar-file:
ant jar
for cordova framework project. didn't see in documentation.
after further investigation found create
, update
executes command inside:
exec('ant.bat -f \"'+ root +'\\framework\\build.xml\" jar');
the problem command executes manually, produces jar, silently fails produce when invoked inside create
or update
. clarity outputted resulting command line update
, copy & paste , run in shell in same directory. works properly.
Comments
Post a Comment