Reputation: 65
Currently, my android compileSdkVersion
is set to 24 and in my dependencies, I have included compile 'com.android.support:support-v4:24.0.0'
However when I try to build, I get an error of:
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
Does anyone know how to resolve this?
Upvotes: 2
Views: 96
Reputation: 29783
This is because there is a compatibility issue in your dependencies. Your support library is not compatible with the other library, something like Firebase/Google Play Service.
Upvotes: 1