简体   繁体   中英

Unable to build slidingmenu with gradle, failing on lint

I am getting the following error when I try to build sliding menu project. This project was used in eclipse but I used default import in android studio to get this project.

:slidingMenu:lint FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':slidingMenu:lint'.

    [Ljava/util/HashMap$Entry;

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

BUILD FAILED

Total time: 9.59 secs Could not execute build using Gradle distribution ' http://services.gradle.org/distributions/gradle-1.9-all.zip '.

Running with --stacktrace didn't give any new info.

I've tried adding an ignore as mentioned in this answer - gradle build fails on lint task but that doesn't help.

Did the import create a build.gradle in slidingmenu? That might be the problem if it is not defined as a library:

apply plugin: 'android-library'

I don't have it set up as a library in this way though. I include it in the app's build.gradle:

dependencies {
    // ...
    compile project(':slidingmenu:library')
}

and in settings.gradle:

include ':slidingmenu:library'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM