Trying to add firebase analytics I find this problem: (I already read and try this solution stackoverflow in English and it does not solve me)
Error log:
Task exception on worker thread: java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat. ()' is inaccessible to class' com.google.firebase.iid.zzg '(declaration of' com.google.firebase.iid.zzg 'appears
dependencias in app
> dependencies {
> compile fileTree(dir: 'libs', include: ['*.jar'])
> androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
> {
> exclude group: 'com.android.support', module: 'support-annotations'
> })
> //compile 'com.facebook.android:facebook-android-sdk:4.+'
> compile 'com.facebook.android:facebook-android-sdk:4.26.0'
>
> //compile 'com.android.support:appcompat-v7:25.1.0'
> //compile 'com.android.support:support-v4:25.1.0'
>
> compile 'com.android.support:appcompat-v7:25.1.0' compile 'com.android.support:support-v4:25.1.0'
>
> testCompile 'junit:junit:4.12'
> compile files('libs/Android-SimpleLocation.jar')
> compile files('libs/org.apache.http.legacy.jar') // compile 'com.google.android.gms:play-services-location:8.4.0'
> compile 'com.google.android.gms:play-services-location:9.0.0'
> compile 'com.google.code.gson:gson:2.8.0'
> compile 'com.google.firebase:firebase-ads:9.0.0'
> compile 'com.google.firebase:firebase-core:9.0.0'
>
> }