Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13292

Cordova not building and returns this error- Could not resolve net.sf.kxml:kxml2:2.3.0

    XMLWordPrintableJSON

Details

    • Patch, Important

    Description

      I have used quasar framework for my app and I have wrapped it with cordova. I have added the platform to android, and I get error when I build with cordova build android.

      My build gives error as below,Error: /home/user/Projects/cordova/platforms/android/gradlew: Command failed with exit code 1 Error output:
      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 net.sf.kxml:kxml2:2.3.0.
        Required by:
        project : > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools.build:manifest-merger:25.2.3
        project : > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools.ddms:ddmlib:25.2.3
        project : > com.android.tools.build:gradle:2.2.3 > com.android.tools.build:gradle-core:2.2.3 > com.android.tools.build:builder:2.2.3 > com.android.tools:sdklib:25.2.3 > com.android.tools.layoutlib:layoutlib-api:25.2.3
        > Could not resolve net.sf.kxml:kxml2:2.3.0.
        > Could not get resource 'https://repo1.maven.org/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'.
        > Could not HEAD 'https://repo1.maven.org/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'.
        > repo1.maven.org: Temporary failure in name resolution
        > Could not resolve net.sf.kxml:kxml2:2.3.0.
        > Could not get resource 'https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'.
        > Could not HEAD 'https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom'.
        > jcenter.bintray.com: Temporary failure in name resolution
      • Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

      How to resolve this?

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            imashok02 Ashok S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified