目前,我的安卓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
有谁知道如何解决这个问题?
这是因为您的依赖项存在兼容性问题。您的支持库与其他库不兼容,例如 Firebase/Google Play 服务。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)