Ionic Build Android got Error


#1

JAVA_HOME=C:\Program Files\java\jdk1.8.0_101

Subproject Path: CordovaLib

Starting a new Gradle Daemon for this build (subsequent builds will be faster).

Parallel execution is an incubating feature.

[Fatal Error] asm-5.0.4.pom:2:1: Content is not allowed in prolog.

[Fatal Error] asm-commons-5.0.4.pom:2:1: Content is not allowed in prolog.

[Fatal Error] proguard-base-5.2.1.pom:2:1: Content is not allowed in prolog.

[Fatal Error] asm-debug-all-5.0.1.pom:2:1: Content is not allowed in prolog.

FAILURE: Build failed with an exception.

  • What went wrong:

A problem occurred configuring root project ‘android’.

Could not resolve all dependencies for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle-api:2.2.1.

 Required by:

     :android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1
  > Could not resolve com.android.tools.build:gradle-api:2.2.1.

     > Could not parse Ivy file C:\Users\acer\.gradle\caches\modules-2\metadata-2.16\descriptors\com.android.tools.build\gradle-api\2.2.1\22da77b0d76ea8df17298218f3ec1f87\ivy.xml

        > Content is not allowed in prolog.

Could not resolve com.android.databinding:compilerCommon:2.2.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1
Could not resolve com.android.databinding:compilerCommon:2.2.1.
Could not parse Ivy file C:\Users\acer.gradle\caches\modules-2\metadata-2.16\descriptors\com.android.databinding\compilerCommon\2.2.1\22da77b0d76ea8df17298218f3ec1f87\ivy.xml
Content is not allowed in prolog.
Could not resolve org.ow2.asm:asm:5.0.4.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > com.android.tools.build:builder:2.2.1

     :android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > com.android.tools.build:builder:2.2.1 > org.ow2.asm:asm-tree:5.0.4
     :android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > com.android.tools.lint:lint:25.2.1 > com.android.tools.lint:lint-checks:25.2.1 > com.android.tools.lint:lint-api:25.2.1
  > Could not resolve org.ow2.asm:asm:5.0.4.
     > Could not parse Ivy file C:\Users\acer\.gradle\caches\modules-2\metadata-2.16\descriptors\org.ow2.asm\asm\5.0.4\4471c3b2f5ea2d40ffaa8b3948cdbacd\ivy.xml
        > Content is not allowed in prolog.
  > Could not resolve org.ow2.asm:asm:5.0.4.
     > Could not parse POM https://jcenter.bintray.com/org/ow2/asm/asm/5.0.4/asm-5.0.4.pom
        > Content is not allowed in prolog.

Could not resolve org.ow2.asm:asm-commons:5.0.4.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1

  > Could not resolve org.ow2.asm:asm-commons:5.0.4.
     > Could not parse Ivy file C:\Users\acer\.gradle\caches\modules-2\metadata-2.16\descriptors\org.ow2.asm\asm-commons\5.0.4\4471c3b2f5ea2d40ffaa8b3948cdbacd\ivy.xml
        > Content is not allowed in prolog.
  > Could not resolve org.ow2.asm:asm-commons:5.0.4.
     > Could not parse POM https://jcenter.bintray.com/org/ow2/asm/asm-commons/5.0.4/asm-commons-5.0.4.pom
        > Content is not allowed in prolog.

Could not resolve net.sf.proguard:proguard-base:5.2.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > net.sf.proguard:proguard-gradle:5.2.1
Could not resolve net.sf.proguard:proguard-base:5.2.1.
Could not parse Ivy file C:\Users\acer.gradle\caches\modules-2\metadata-2.16\descriptors\net.sf.proguard\proguard-base\5.2.1\4471c3b2f5ea2d40ffaa8b3948cdbacd\ivy.xml
Content is not allowed in prolog.
Could not resolve net.sf.proguard:proguard-base:5.2.1.
Could not parse POM https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.2.1/proguard-base-5.2.1.pom
Content is not allowed in prolog.
Could not resolve org.ow2.asm:asm-debug-all:5.0.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > org.jacoco:org.jacoco.core:0.7.5.201505241946
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > org.jacoco:org.jacoco.report:0.7.5.201505241946

BUILD FAILED

Total time: 1 mins 11.128 secs

  > Could not resolve org.ow2.asm:asm-debug-all:5.0.1.
     > Could not parse Ivy file C:\Users\acer\.gradle\caches\modules-2\metadata-2.16\descriptors\org.ow2.asm\asm-debug-all\5.0.1\4471c3b2f5ea2d40ffaa8b3948cdbacd\ivy.xml
        > Content is not allowed in prolog.
  > Could not resolve org.ow2.asm:asm-debug-all:5.0.1.
     > Could not parse POM https://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.pom
        > Content is not allowed in prolog.
  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Error: cmd: Command failed with exit code 1 Error output:
[Fatal Error] asm-5.0.4.pom:2:1: Content is not allowed in prolog.
[Fatal Error] asm-commons-5.0.4.pom:2:1: Content is not allowed in prolog.
[Fatal Error] proguard-base-5.2.1.pom:2:1: Content is not allowed in prolog.
[Fatal Error] asm-debug-all-5.0.1.pom:2:1: Content is not allowed in prolog.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all dependencies for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle-api:2.2.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1
Could not resolve com.android.tools.build:gradle-api:2.2.1.
Could not parse Ivy file C:\Users\acer.gradle\caches\modules-2\metadata-2.16\descriptors\com.android.tools.build\gradle-api\2.2.1\22da77b0d76ea8df17298218f3ec1f87\ivy.xml
Content is not allowed in prolog.
Could not resolve com.android.databinding:compilerCommon:2.2.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1
Could not resolve com.android.databinding:compilerCommon:2.2.1.
Could not parse Ivy file C:\Users\acer.gradle\caches\modules-2\metadata-2.16\descriptors\com.android.databinding\compilerCommon\2.2.1\22da77b0d76ea8df17298218f3ec1f87\ivy.xml
Content is not allowed in prolog.
Could not resolve org.ow2.asm:asm:5.0.4.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > com.android.tools.build:builder:2.2.1
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > com.android.tools.build:builder:2.2.1 > org.ow2.asm:asm-tree:5.0.4
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > com.android.tools.lint:lint:25.2.1 > com.android.tools.lint:lint-checks:25.2.1 > com.android.tools.lint:lint-api:25.2.1
Could not resolve org.ow2.asm:asm:5.0.4.
Could not parse Ivy file C:\Users\acer.gradle\caches\modules-2\metadata-2.16\descriptors\org.ow2.asm\asm\5.0.4\4471c3b2f5ea2d40ffaa8b3948cdbacd\ivy.xml
Content is not allowed in prolog.
Could not resolve org.ow2.asm:asm:5.0.4.
Could not parse POM https://jcenter.bintray.com/org/ow2/asm/asm/5.0.4/asm-5.0.4.pom
Content is not allowed in prolog.
Could not resolve org.ow2.asm:asm-commons:5.0.4.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1
Could not resolve org.ow2.asm:asm-commons:5.0.4.
Could not parse Ivy file C:\Users\acer.gradle\caches\modules-2\metadata-2.16\descriptors\org.ow2.asm\asm-commons\5.0.4\4471c3b2f5ea2d40ffaa8b3948cdbacd\ivy.xml
Content is not allowed in prolog.
Could not resolve org.ow2.asm:asm-commons:5.0.4.
Could not parse POM https://jcenter.bintray.com/org/ow2/asm/asm-commons/5.0.4/asm-commons-5.0.4.pom
Content is not allowed in prolog.
Could not resolve net.sf.proguard:proguard-base:5.2.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > net.sf.proguard:proguard-gradle:5.2.1
Could not resolve net.sf.proguard:proguard-base:5.2.1.
Could not parse Ivy file C:\Users\acer.gradle\caches\modules-2\metadata-2.16\descriptors\net.sf.proguard\proguard-base\5.2.1\4471c3b2f5ea2d40ffaa8b3948cdbacd\ivy.xml
Content is not allowed in prolog.
Could not resolve net.sf.proguard:proguard-base:5.2.1.
Could not parse POM https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.2.1/proguard-base-5.2.1.pom
Content is not allowed in prolog.
Could not resolve org.ow2.asm:asm-debug-all:5.0.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > org.jacoco:org.jacoco.core:0.7.5.201505241946
:android:unspecified > com.android.tools.build:gradle:2.2.1 > com.android.tools.build:gradle-core:2.2.1 > org.jacoco:org.jacoco.report:0.7.5.201505241946
Could not resolve org.ow2.asm:asm-debug-all:5.0.1.
Could not parse Ivy file C:\Users\acer.gradle\caches\modules-2\metadata-2.16\descriptors\org.ow2.asm\asm-debug-all\5.0.1\4471c3b2f5ea2d40ffaa8b3948cdbacd\ivy.xml
Content is not allowed in prolog.
Could not resolve org.ow2.asm:asm-debug-all:5.0.1.
Could not parse POM https://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.pom
Content is not allowed in prolog.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

what is going on…thanks.


#2

Same problem… What s the solution? …