Cordova and Ionic build error for android -


i'm using ionic develop app android, whenever build application error:

[fatal error] oss-parent-7.pom:2:1: content not allowed in prolog. [fatal error] oss-parent-7.pom:2:1: content not allowed in prolog. [fatal error] lombok-ast-0.2.3.pom:2:1: content not allowed in prolog. [fatal error] org.abego.treelayout.core-1.0.1.pom:2:1: content not allowed in prolog.  failure: build failed exception.  * went wrong: problem occurred configuring root project 'android'. > not resolve dependencies configuration ':classpath'.    > not resolve com.google.guava:guava:17.0.      required by:          :android:unspecified > com.android.tools.build:gradle:1.5.0 > com.android.tools.build:gradle-core:1.5.0 > com.android.tools.build:transform-api:1.5.0          :android:unspecified > com.android.tools.build:gradle:1.5.0 > com.android.tools.build:gradle-core:1.5.0 > com.android.tools.build:builder:1.5.0 > com.android.tools:common:24.5.0       > not parse pom https://repo1.maven.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom          > not resolve com.google.guava:guava-parent:17.0.             > not parse pom file:/c:/users/renan/.gradle/caches/modules-2/files-2.1/org.sonatype.oss/oss-parent/7/46b8a785b60a2767095b8611613b58577e96d4c9/oss-parent-7.pom                > content not allowed in prolog.    > not resolve com.google.code.gson:gson:2.2.4.      required by:          :android:unspecified > com.android.tools.build:gradle:1.5.0 > com.android.tools.build:gradle-core:1.5.0 > com.android.tools.build:builder:1.5.0 > com.android.tools:sdklib:24.5.0          :android:unspecified > com.android.tools.build:gradle:1.5.0 > com.android.tools.build:gradle-core:1.5.0 > com.android.tools.build:builder:1.5.0 > com.android.tools.build:manifest-merger:24.5.0  build failed  total time: 15.102 secs       > not parse pom file:/c:/users/renan/.gradle/caches/modules-2/files-2.1/org.sonatype.oss/oss-parent/7/46b8a785b60a2767095b8611613b58577e96d4c9/oss-parent-7.pom          > content not allowed in prolog.    > not resolve commons-logging:commons-logging:1.1.1.      required by:          :android:unspecified > com.android.tools.build:gradle:1.5.0 > com.android.tools.build:gradle-core:1.5.0 > com.android.tools.build:builder:1.5.0 > com.android.tools:sdklib:24.5.0 > org.apache.httpcomponents:httpclient:4.1.1          :android:unspecified > com.android.tools.build:gradle:1.5.0 > com.android.tools.build:gradle-core:1.5.0 > com.android.tools.build:builder:1.5.0 > com.android.tools:sdklib:24.5.0 > org.apache.httpcomponents:httpmime:4.1       > not parse pom https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom          > resetting invalid mark    > not resolve commons-codec:commons-codec:1.4.      required by:          :android:unspecified > com.android.tools.build:gradle:1.5.0 > com.android.tools.build:gradle-core:1.5.0 > com.android.tools.build:builder:1.5.0 > com.android.tools:sdklib:24.5.0 > org.apache.httpcomponents:httpclient:4.1.1       > not parse pom https://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.pom          > resetting invalid mark    > not resolve com.android.tools.external.lombok:lombok-ast:0.2.3.      required by:          :android:unspecified > com.android.tools.build:gradle:1.5.0 > com.android.tools.build:gradle-core:1.5.0 > com.android.tools.lint:lint:24.5.0 > com.android.tools.lint:lint-checks:24.5.0 > com.android.tools.lint:lint-api:24.5.0       > not parse pom https://repo1.maven.org/maven2/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.pom          > content not allowed in prolog.    > not resolve org.abego.treelayout:org.abego.treelayout.core:1.0.1.      required by:          :android:unspecified > com.android.tools.build:gradle:1.5.0 > com.android.tools.build:gradle-core:1.5.0 > com.android.databinding:compilercommon:1.0-rc5 > com.tunnelvisionlabs:antlr4:4.5 > com.tunnelvisionlabs:antlr4-runtime:4.5       > not parse pom https://repo1.maven.org/maven2/org/abego/treelayout/org.abego.treelayout.core/1.0.1/org.abego.treelayout.core-1.0.1.pom          > content not allowed in prolog. 

so created new application cordova, test build android:

cordova create test com.example.test test cd test cordova platform add android cordova build android 

and following error:

[fatal error] oss-parent-7.pom:2:1: content not allowed in prolog.  failure: build failed exception.  * went wrong: problem occurred configuring root project 'android'. > not resolve dependencies configuration ':classpath'.    > not resolve com.google.guava:guava:17.0.      required by:          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:common:24.0.0       > not parse pom https://repo1.maven.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom          > not resolve com.google.guava:guava-parent:17.0.             > not parse pom file:/c:/users/renan/.gradle/caches/modules-2/files-2.1/org.sonatype.oss/oss-parent/7/46b8a785b60a2767095b8611613b58577e96d4c9/oss-parent-7.pom                > content not allowed in prolog.    > not resolve commons-logging:commons-logging:1.1.1.      required by:          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0 > org.apache.httpcomponents:httpclient:4.1.1          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0 > org.apache.httpcomponents:httpmime:4.1       > not parse pom https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom          > resetting invalid mark    > not resolve commons-codec:commons-codec:1.4.      required by:          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0 > org.apache.httpcomponents:httpclient:4.1.1       > not parse pom https://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.pom          > resetting invalid mark    > not resolve com.google.guava:guava:17.0.      required by:          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.lint:lint:24.0.0 > com.android.tools.lint:lint-checks:24.0.0 > com.android.tools.lint:lint-api:24.0.0 > com.android.tools.external.lombok:lombok-ast:0.2.2       > not parse pom https://repo1.maven.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom          > not resolve com.google.guava:guava-parent:17.0.             > not parse pom file:/c:/users/renan/.gradle/caches/modules-2/files-2.1/org.sonatype.oss/oss-parent/7/46b8a785b60a2767095b8611613b58577e96d4c9/oss-parent-7.pom                > content not allowed in prolog.  * try: run --stacktrace option stack trace. run --info or --debug option more log output.  build failed  total time: 13.909 secs error: cmd: command failed exit code 1 

i've tried download again android sdk, uninstall cordova , ionic, update , clean npm , them install again. still did'nt solve error.

android sdk:  24.4.1 (with api 23) cordova:      6.2.0 ionic:        1.7.15 gradle:       2.13 groovy:       2.4.4 ant:          apache ant(tm) version 1.9.6 compiled on june 29 2015 jvm:          1.8.0_65 (oracle corporation 25.65-b01) os:           windows 10 10.0 amd64 

any on appreciated.

edit: changed classpath of gradle classpath 'com.android.tools.build:gradle:1.0.0+' classpath 'com.android.tools.build:gradle:1.0.1'

the error remains same, thing has changed downloads gradle 1.0.1.

download https://repo1.maven.org/maven2/com/android/tools/build/gradle/1.0.1/gradle-1.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/build/builder/1.0.1/builder-1.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/lint/lint/24.0.1/lint-24.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/build/builder-model/1.0.1/builder-model-1.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/build/builder-test-api/1.0.1/builder-test-api-1.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/sdklib/24.0.1/sdklib-24.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/sdk-common/24.0.1/sdk-common-24.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/common/24.0.1/common-24.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/build/manifest-merger/24.0.1/manifest-merger-24.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/ddms/ddmlib/24.0.1/ddmlib-24.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/lint/lint-checks/24.0.1/lint-checks-24.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/layoutlib/layoutlib-api/24.0.1/layoutlib-api-24.0.1.pom download https://repo1.maven.org/maven2/com/android/tools/dvlib/24.0.1/dvlib-24.0.1.pom [fatal error] oss-parent-7.pom:2:1: content not allowed in prolog. download https://repo1.maven.org/maven2/com/android/tools/lint/lint-api/24.0.1/lint-api-24.0.1.pom ... 

edit 2:

c:\dev\workspaces\cordova\teste>cordova build android --verbose no scripts found hook "before_build". no scripts found hook "before_prepare". checking config.xml saved platforms haven't been added project checking plugins added project have not been installed in android platform no differences found between plugins added project , installed in android platform. continuing... generating config.xml defaults platform "android" wrote out android application name "teste" wrote out android package name "com.exemple.teste" app not have launcher icons defined updated project no scripts found hook "after_prepare". checking config.xml saved plugins haven't been added project no scripts found hook "before_compile". android_home=g:\android-sdk-windows java_home=c:\dev\app\java\jdk1.8.0_65 [fatal error] oss-parent-7.pom:2:1: o conte·do nÃ’o Ú permitido no pr¾logo.  failure: build failed exception.  * went wrong: problem occurred configuring root project 'android'. > not resolve dependencies configuration ':classpath'.    > not resolve com.google.guava:guava:17.0.      required by:          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:common:24.0.0       > not parse pom https://repo1.maven.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom          > not resolve com.google.guava:guava-parent:17.0.             > not parse pom file:/c:/users/renan/.gradle/caches/modules-2/files-2.1/org.sonatype.oss/oss-parent/7/46b8a785b60a2767095b8611613b58577e96d4c9/oss-parent-7.pom                > o conte·do nÃ’o Ú permitido no pr¾logo.    > not resolve commons-logging:commons-logging:1.1.1.      required by:          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0 > org.apache.httpcomponents:httpclient:4.1.1          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0 > org.apache.httpcomponents:httpmime:4.1       > not parse pom https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom          > resetting invalid mark    > not resolve commons-codec:commons-codec:1.4.      required by:          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0 > org.apache.httpcomponents:httpclient:4.1.1       > not parse pom https://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.pom          > resetting invalid mark    > not resolve com.google.guava:guava:17.0.      required by:          :android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.lint:lint:24.0.0 > com.android.tools.lint:lint-checks:24.0.0 > com.android.tools.lint:lint-api:24.0.0 > com.android.tools.external.lombok:lombok-ast:0.2.2       > not parse pom https://repo1.maven.org/maven2/com/google/guava/guava/17.0/guava-17.0.pom          > not resolve com.google.guava:guava-parent:17.0.             > not parse pom file:/c:/users/renan/.gradle/caches/modules-2/files-2.1/org.sonatype.oss/oss-parent/7/46b8a785b60a2767095b8611613b58577e96d4c9/oss-parent-7.pom                > o conte·do nÃ’o Ú permitido no pr¾logo.  * try: run --stacktrace option stack trace. run --info or --debug option more log output.  build failed  total time: 29.823 secs error: cmd: command failed exit code 1     @ childprocess.whendone (c:\dev\workspaces\cordova\teste\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:139:23)     @ emittwo (events.js:87:13)     @ childprocess.emit (events.js:172:7)     @ maybeclose (internal/child_process.js:827:16)     @ process.childprocess._handle.onexit (internal/child_process.js:211:5) 


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo