Reputation: 83
Error:(13, 1) A problem occurred evaluating root project 'Bible'.
Could not find method compile() for arguments [com.android.support:support-v7] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Upvotes: 2
Views: 6274
Reputation: 83
I just do InvalidateCaches 3 times and it works fine. I do that because it was working before I shut down my PC but when i start my pc again it showing this error,It means there is no error regarding code. By the way thank you sir:).
Upvotes: 1
Reputation: 2010
It appears as if you have not added compile statement to your dependencies.
Try this-
dependencies {
...
compile "com.android.support:support-core-utils:25.1.0"
}
This should go in the module's build.gradle file, not in the project's one.
Like this-
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
...
}
dependencies {
...
compile "com.android.support:support-core-utils:25.1.0"
}
Refer to docs for more info.
Upvotes: 5