Hi,
I have many IONIC project and my job need to remove platform and re-add android platform for those project to build.
Currently i use:
- IONIC version 1.7.14
- cordova version 5.4.1
Everything working in old Macpro(with same version ionic/cordova), Problem occur when i move source code to another macbook and reinstall all sdk (ionic/cordova),When i add platform and run: ionic build android --> everytime it need download gradle, stuck this line:
xxx-2:source Vihat$ ionic build android Running command: /Users/macpro/Documents/Developer/TeraPublish/source/hooks/after_prepare/010_add_platform_class.js /Users/macpro/Documents/Developer/TeraPublish/source add to body class: platform-android ANDROID_HOME=/Users/macpro/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
Downloading http://services.gradle.org/distributions/gradle-2.2.1-all.zip
i do a lot research and can make it work in single project like this guide: ionic build android error when download gradle
But everytime i create new project or re-add android platform, it still request download gradle. I try to downgrade version of cordova & ionic like my old macbook, but nothing work :(
Can anybody help me solve this case,
Many thanks!.