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

지도 띄우려는데 자꾸 오류가 나요ㅠㅠ

0 추천
        setContentView(R.layout.activity_openmap);

이 부분에서 에러가 난다고

E/AndroidRuntime:     at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)

이런식으로 떠서 찾아보니 gradle 부분이 문제인거 같아서 버전 맞춰주고 했는데도 안되네요

 

현재 gradle 내부 코드인데

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.google.android.gms:play-services-maps:16.0.0'

    implementation 'com.google.android.gms:play-services-location:16.0.0'

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    implementation 'com.google.android.gms:play-services-maps:16.0.0'
    implementation 'com.android.support:support-v4:28.0.1'
}

노란부분에서 에러가 있다고 Failed to resolve:라고 뜨는데

어떻게 하면될까요 ㅠ

joelll (160 포인트) 님이 2018년 11월 13일 질문

답변 달기

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