cordova - Ionic CLI not generating release build for Android -
when use command: cordova build --release android cli throws following error:
error: cannot find module 'minimatch' @ function.module._resolvefilename (module.js:336:15) @ function.module._load (module.js:286:25) @ module.require (module.js:365:17) @ require (module.js:384:17) @ object.<anonymous> (c:\users\sologic\appdata\roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\glob\glob.js:44:17) @ module._compile (module.js:434:26) @ object.module._extensions..js (module.js:452:10) @ module.load (module.js:355:32) @ function.module._load (module.js:310:12) @ module.require (module.js:365:17) @ require (module.js:384:17) but when use ionic lab (windows installer) , using build option - generates 'android-debug.apk' & 'android-debug-unaligned.apk' in android\build\outputs\apk folder.
note not generating android-release-unsigned.apk
my questions are:
1: wrong cli ??
2: can use android-debug-unaligned.apk signing (with jarsigner) , aligning (with zipalign ) submitting on google play ??
please advice.
nothing went wrong ionic cli @ time (v1.7.6), because i'm using every day.
- check cli version command
ionic --version, see if version lower1.7.6. - if cli old, run
npm install -g ionicagain install lasted version of ionic cli. - if not, try re-create new project, , try build again with, if ok, because of project:
ionic start appname blankionic platform add androidionic build android --release
- check cli version command
you can't use debug apk google play because can read apk , check if is debug or release version. think can set
debug modeinandroidmanifest.xmlfalse , try this:- add
android:debuggable="false"<application>element. - more info : using hardware devices.
- add
ionic provide package cloud service helpful non-plugin project inside ionic cli. can build project in cloud in minute , can download apk anytime.
- cd ionic project folder ionic cli.
- run
ionic package build androidwait progress done. - run
ionic package listlist , see status if has been done building progress. - run
ionic package download [id]download apk project folder.idnumber see inlist. - these commands build debug apk, release version, check ionic.io package documents build
profile(keystore).
Comments
Post a Comment