Ionic cordova build Android failed -


i need build android app ionic cordova, there problem i'm not able solve, hoping advice.

my ionic info follows:

cli packages: (/usr/local/lib/node_modules)  @ionic/cli-plugin-proxy : 1.4.6 @ionic/cli-utils        : 1.10.0-alpha.b34c24dc ionic (ionic cli)       : 3.10.0-alpha.b34c24dc 

global packages:

cordova cli : 7.0.1  

local packages:

@ionic/app-scripts : 2.1.4 cordova platforms  : android 6.2.3 ionic framework    : ionic-angular 3.6.0 

system:

node : v6.9.1 npm  : 4.1.2  os   : macos sierra 

use sudo ionic cordova build android , there's error show:

cordova-android-play-services-gradle-release  play_services_version:       11.+     android_home=/users/neolee/library/android/sdk     java_home=/library/java/javavirtualmachines/jdk1.8.0_111.jdk/contents/home     subproject path: cordovalib     exception in thread "main" java.lang.runtimeexception: timeout of 120000      reached waiting exclusive access file:      /var/root/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/gradle-3.3-all.zip         @      org.gradle.wrapper.exclusivefileaccessmanager.access(exclusivefileaccessmanager.java:65)         @ org.gradle.wrapper.install.createdist(install.java:48)         @ org.gradle.wrapper.wrapperexecutor.execute(wrapperexecutor.java:107)         @ org.gradle.wrapper.gradlewrappermain.main(gradlewrappermain.java:61)     error: /users/neolee/ionicspace/ionic-welcome/platforms/android/gradlew:      command failed exit code 1 error output:     exception in thread "main" java.lang.runtimeexception: timeout of 120000      reached waiting exclusive access file:      /var/root/.gradle/wrapper/dists/gradle-3.3-all/55gk2rcmfc6p2dg9u9ohc3hw9/gradle-3.3-all.zip         @      org.gradle.wrapper.exclusivefileaccessmanager.access(exclusivefileaccessmanager.java:65)         @ org.gradle.wrapper.install.createdist(install.java:48)         @ org.gradle.wrapper.wrapperexecutor.execute(wrapperexecutor.java:107)         @ org.gradle.wrapper.gradlewrappermain.main(gradlewrappermain.java:61) 

and give /var/root/.gradle sudo chmod -r 777 ..., not working.

can tell me why, , how can fix it?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -