마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

하 미치겠네요. gradle sync error 문제 질문드려요 ㅠ

0 추천

안스 3.5 에서 https://m.blog.naver.com/PostView.nhn?blogId=ambidext&logNo=221005654512&proxyReferer=https%3A%2F%2Fwww.google.com%2F

위의 링크를 따라하면서 공부하고 있는 학생입니다. 그런데 그대로 따라하다보니

위 그림 처럼 ERROR: Gradle DSL method not found: 'implementation()'가 뜨네요. 그래서 plugin upgrade 문제인가 싶어서 

Upgrade plugin to version 3.5.0 and sync project를 클릭하면 

위와 같이 에러가 떠요. Ok를 클릭하면 

위와 같은 화면이 나오구요. 다시 run을 하면

다음과 같이 Error: Gradle project sync failed. Please fix your project and try again.가 뜹니다. 그리곤 실행이 안돼요ㅠ

어찌해야하나요... 이걸로 며칠 째 고민중입니다.ㅠ

익명사용자 님이 2019년 9월 1일 질문
참고로

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'

        apply plugin: 'java'
        implementation 'com.android.support:design:28.0.0'
        
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}




gradle-wrapper.properties

#Thu Aug 29 23:48:11 KST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

답변 달기

· 글에 소스 코드 보기 좋게 넣는 법
· 질문에 대해 추가적인 질문이나 의견이 있으면 답변이 아니라 댓글로 달아주시기 바랍니다.
표시할 이름 (옵션):
개인정보: 당신의 이메일은 이 알림을 보내는데만 사용됩니다.
스팸 차단 검사:
스팸 검사를 다시 받지 않으려면 로그인하거나 혹은 가입 하세요.
...