ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

ionic emulate android

Open zionnite opened this issue 10 years ago • 4 comments

please am very sorry if am recreating a topic or issue.

when i run my command line and type $ionic emulate android

it run and boot up my android emulator but yet generate an error about Expection in thread "main" Java.lang.RuntimeExpection...... and so on and then display u might not have the required environment or OS

BUT I HAVE INSTALL THE TARGET 23...

Thank for ur time, i appreiate ur help

zionnite avatar Mar 02 '16 09:03 zionnite

picture

zionnite avatar Mar 02 '16 10:03 zionnite

Not sure, do any of these help: http://stackoverflow.com/questions/32153915/ionic-build-android-error ? Sounds like the gradle zip file is possibly corrupted.

tlancina avatar Mar 02 '16 14:03 tlancina

@zionnite Had faced similar issue before. actually it is the gradle error. it happens when the command "ionic emulate android" or "ionic run android" or "ionic build android". the problem is due to some error on internet connection the gradle zip downloaded by the the ionic-cli corrupts. and the corrupted zip is not the complete zip archive we are getting "java.util.zip.ZipException". The possible solution is manually delete the gradle zip and then re-run the "ionic emulate android". Make sure you have stable and fast internet connection.

flexzero avatar Mar 02 '16 14:03 flexzero

Hey going to close this as it sounds like it's a gradle error, not an Ionic CLI one.

tlancina avatar Apr 04 '16 22:04 tlancina