LoginSignup
1
1

More than 5 years have passed since last update.

Android Studioで Gradle DSL method not found: 'compile()'が起きた

Last updated at Posted at 2016-02-28

Android Studioでビルドしようとしたら、こんなエラーが

Error:(47, 0) Gradle DSL method not found: 'compile()'
Possible causes:<ul><li>The project 'XXXXXXX' may be using a version of Gradle that does not contain the method.
<a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
build.gradle
dependencies {
...
    compile "com.android.support:support-v4:${SUPPORT_LIB_VER}"    compile "com.android.support:appcompat-v7:${SUPPORT_LIB_VER}"
    compile "com.android.support:support-annotations:${SUPPORT_LIB_VER}"
    compile "com.android.support:design:${SUPPORT_LIB_VER}"
...
}

改行がなくなってて、2行が一行になってた。
10分くらい気づかなかった…

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1