2

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?

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96
kyangy
  • 65
  • 1
  • 9

1 Answers1

1

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.

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96