Google Firebase를 사용하기 위해 Android Studio에 추가하는 과정에서 나타난 에러

해결하는데 참고한 사이트 → 링크

 

'com.android.support:appcompat-v7:28:0.0' 에 에러가 표시된 것을 볼 수 있다.

build.gradle (Module: app)

에러가 표시된 곳에 마우스를 가져다되면 다음과 같은 힌트를 알려준다.

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 26.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:support-media-compat:26.1.0 more... (Ctrl+F1)

 

하라는데로 추가만 해주면된다.

implementation 'com.android.support:support-media-compat:28.0.0' // 추가

주의할 점은 버전 정보를 맞춰줘야 하는 점

 

아직 오류가 해결되지 않았다. 위 방법대로 또 implementation 하면 된다.

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 26.1.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:support-v4:26.1.0 more... (Ctrl+F1)
implementation 'com.android.support:support-v4:28.0.0'

 

오류 해결

build.gradle (Module: app)