This message was deleted.
# community-support
s
This message was deleted.
n
what's in your
location
module's build.gradle file? I'm suspecting a typo in the dependency declaration of the failing library...
please no screenshot btw. text can be pasted in a code snippet 😉
1
👍 1
t
almost certainly a typo. Look at the line
> could not find com...
and see that it ends in two periods. The version is specified as
16.
, which is invalid.
I have uploaded both my build.gradle, there is no location module there
n
then what is the 4th file in your screenshot about?
m
4th file?
n
in your screenshot, the editor tab with
location/.../build.gradle
m
Copy code
buildscript {
    ext.kotlin_version = '1.4.20'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
this is what's in that file
n
given the error, gradle clearly thinks there's a
location
module in your project. And the message to me indicates that it specifies an incorrect version
16..
. So you'll have to figure out where that module comes from and how the dependency that's not resolving has been declared. Given the otherwise limited information, I've got no other suggestions. Perhaps try the suggestions given by gradle and run with
--stacktrace
or the other flags?
m
can you guide me as to how do I stack trace?
d
Where does the dependency for
play-services-location
get declared. The build script is referencing version
16.
but the actual version should be 16.0.0
You also need to make sure that for the resolution, you’re specifying the source for it.
m
how do declare the dependancy for the play-services-location?, sorry in advance I am new to flutter