目前,我的android compileSdkVersion
设置为24,在我的依赖项中,我已经包含了compile 'com.android.support:support-v4:24.0.0'
然而,当我尝试构建时,出现错误:
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 :(得分:1)
这是因为您的依赖项存在兼容性问题。您的支持库与其他库(如Firebase / Google Play服务)不兼容。