2017-10-04 1 views
2

를 컴파일하는 동안, 내 compileSdkVersion 24에 내 의존성에 설정되어 안드로이드, 나는 compile 'com.android.support:support-v4:24.0.0'안드로이드 오류 현재 com.android.support:support-v4:24.0.0

을 포함했다 그러나 나는 빌드 할 때, I 다음 오류를 얻으십시오 :

java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct 

누구든지 해결 방법을 알고 있습니까?

+0

사용하는 동안 인터넷에 연결되어 있습니까? –

+0

@VinayJaju 예! – kyangy

답변

1

이것은 종속성에 호환성 문제가 있기 때문입니다. 지원 라이브러리는 Firebase/Google Play 서비스와 같은 다른 라이브러리와 호환되지 않습니다.

+0

당신의 의존성에서 Firebase/Google play 서비스를 어떻게 업데이트 할 것을 권합니다. 현재'compile ('com.google.android.gms : play-services-gcm : 8.1.0') { force = true; }' – kyangy

+0

내 play-services-gcm을 9.2.0으로 변경했습니다! – kyangy

+0

축하합니다! –