cordova - not able to build android project in mac OS -
i newbie in phonegap. have created project platform in mac os.i able build other android platform. using cordova 5.1.1 version.
cordova build android
cordova build android running command: /users/abc/androiddevelopments/project/abcdemo/abcdemo1.1/platforms/android/cordova/build android_home=/users/abc/library/android/sdk/ java_home=/library/java/javavirtualmachines/jdk1.7.0_79.jdk/contents/home running: /users/abc/androiddevelopments/project/abcdemo/abcdemo1.1/platforms/android/gradlew cdvbuilddebug -b /users/abc/androiddevelopments/project/abcdemo/abcdemo1.1/platforms/android/build.gradle -dorg.gradle.daemon=true > configuring > 0/2 projects > root project > resolving dependencies ':classpath' failure: build failed exception. * went wrong: problem occurred configuring root project 'android'. > not resolve dependencies configuration ':classpath'. > not resolve com.android.tools.build:gradle:1.0.0+. required by: :android:unspecified > failed list versions com.android.tools.build:gradle. > unable load maven meta-data https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml. > not 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml'. > malformed reply socks server * try: run --stacktrace option stack trace. run --info or --debug option more log output. build failed total time: 5 mins 6.688 secs /users/abc/androiddevelopments/project/abcdemo/abcdemo1.1/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ error code 1 command: /users/abc/androiddevelopments/project/abcdemo/abcdemo1.1/platforms/android/gradlew args: cdvbuilddebug,-b,/users/abc/androiddevelopments/project/abcdemo/abcdemo1.1/platforms/android/build.gradle,-dorg.gradle.daemon=true error building 1 of platforms: error: /users/abc/androiddevelopments/project/abcdemo/abcdemo1.1/platforms/android/cordova/build: command failed exit code 8 may not have required environment or os build project error: /users/abc/androiddevelopments/project/abcdemo/abcdemo1.1/platforms/android/cordova/build: command failed exit code 8 @ childprocess.whendone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23) @ childprocess.eventemitter.emit (events.js:98:17) @ maybeclose (child_process.js:753:16) @ process.childprocess._handle.onexit (child_process.js:820:5)
if you'd use maven local repo instead of remote 1 need add jar files local repository.
local maven repository located at
~/.m2/repository
you can download link, http://mvnrepository.com/artifact/com.android.tools.build/builder/
to install library type in command line:
mvn install:install-file -dgroupid=com.android.tools.build \ -dartifactid=builder \ -dversion=0.5.4 \ -dfile=builder-0.5.4.jar \ -dpackaging=jar \ -dgeneratepom=true
then in build.gradle file change,
mavencentral()
to
mavenlocal()
this might :)
Comments
Post a Comment