glide icon indicating copy to clipboard operation
glide copied to clipboard

Could not get unknown property 'assembleDebug' for project ':library' of type org.gradle.api.Project.

Open x-dragonet opened this issue 10 years ago • 8 comments

Error:(68, 1) A problem occurred configuring project ':samples:gallery'.

A problem occurred configuring project ':library'. Could not get unknown property 'assembleDebug' for project ':library' of type org.gradle.api.Project.

who can tell me reason?

x-dragonet avatar Oct 24 '16 03:10 x-dragonet

Not much idea. Which branch is this? Did you write the code that fails? If so try proj.tasks.assembleDebug.

TWiStErRob avatar Oct 24 '16 07:10 TWiStErRob

Error (69,46),a problem occurred when i run the sample module . how to solve the problem?

* Where:
Build file '/Users/malingyi/AndroidStudioProjects/glide/library/build.gradle' line: 69

* What went wrong:
A problem occurred configuring project ':samples:giphy'.
> Could not resolve all dependencies for configuration ':samples:giphy:_debugApk'.
   > A problem occurred configuring project ':library'.
      > Could not get unknown property 'assembleDebug' for project ':library' of type org.gradle.api.Project.

the problem point to here:

afterEvaluate {
    task findbugs(type: FindBugs, dependsOn: assembleDebug) {

        description 'Run findbugs'
        group 'verification'

        classes = fileTree('build/intermediates/classes/debug/')
        source = fileTree('src/main/java')
        classpath = project.configurations.compile

        effort = 'max'

        excludeFilter = file("findbugs-exclude.xml")

        reports {
            xml.enabled = false
            html.enabled = true
        }
    }

David-Kuper avatar Mar 30 '17 01:03 David-Kuper

Same question: which branch? Did you modify anything? What version of Gradle are you using? Did you try a clean build in the command line?

TWiStErRob avatar Mar 30 '17 19:03 TWiStErRob

@TWiStErRob I used the master branch.and The result was builded fail that the same as what David-Kuper has said.

liwujun11111 avatar Apr 05 '17 06:04 liwujun11111

i have cloned with master branch and using latest android SUPPORT_V4_VERSION=25.3.1, SUPPORT_V7_VERSION=25.3.1, ANDROID_GRADLE_VERSION=2.3.0 . https://cloudup.com/c38CBvTf5ga

junaidTbox avatar Apr 14 '17 11:04 junaidTbox

@junaidTbox Did you try a clean build in the command line? Before changing anything in the code! If that works, only then you should try changing variables and stuff.

TWiStErRob avatar Apr 14 '17 11:04 TWiStErRob

i just download the code , didn't change a bit , clean build -> sync gradle and then make build. i switch to old commits as well but same error.

junaidTbox avatar Apr 14 '17 11:04 junaidTbox

Do a gradlew clean buildArchives, and once that's successful import it in IDEA/AS.

TWiStErRob avatar Apr 14 '17 11:04 TWiStErRob