Не удалось инициализировать класс com.android.tools.analytics.UsageTracker - PullRequest
0 голосов
/ 29 апреля 2019

Внезапно я получаю ошибку ниже при синхронизации проекта Android в Android Studio 3.3.1,

Could not initialize class com.android.tools.analytics.UsageTracker
Open File

При нажатии Открыть файл, он открывает файл градации приложения и указывает на нижнюю строку,

apply plugin: 'com.android.application'

Файл моего приложения:

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
        maven {
            url "https://jitpack.io"
        }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.27.0'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
    maven { url 'https://maven.fabric.io/public' }
    maven { url "https://dl.bintray.com/consp1racy/maven" }
}


android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.spectra.ess"
        minSdkVersion 22
        targetSdkVersion 26
        versionCode 51
        versionName "2.21"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            debuggable false
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        targetCompatibility 1.8
        sourceCompatibility 1.8
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support:cardview-v7:26.1.0'
    implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
    implementation 'com.google.android.gms:play-services-maps:16.1.0'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'com.google.android.gms:play-services-places:16.0.0'
    implementation 'com.google.firebase:firebase-messaging:17.6.0'
    implementation 'com.scottyab:rootbeer-lib:0.0.7'
    implementation 'com.nabinbhandari.android:permissions:3.6'
    implementation 'com.android.support:design:26.1.0'

    implementation 'de.hdodenhof:circleimageview:2.2.0'

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    implementation 'com.android.support:recyclerview-v7:26.1.0'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.github.mancj:MaterialSearchBar:0.7.6'

//    implementation 'com.chaos.view:pinview:1.3.0'
    implementation 'com.patrickpissurno:ripple-effect:1.3.1'
    implementation 'com.intuit.sdp:sdp-android:1.0.5'
    implementation 'com.android.volley:volley:1.1.1'
    implementation 'com.itextpdf:itext-pdfa:5.5.10'
    implementation 'com.itextpdf:itextg:5.5.9'
    implementation 'com.github.douglasjunior:android-simple-tooltip:0.2.2'
    implementation project(path: ':android-image-zoom-crop')
    implementation('com.crashlytics.sdk.android:crashlytics:2.9.2@aar') {
        transitive = true;
    }
    implementation 'com.android.support:multidex:1.0.3'
}

apply plugin: 'com.google.gms.google-services'

configurations.all {
    resolutionStrategy.eachDependency { details ->
        def requested = details.requested
        if (requested.group == 'com.android.support' && requested.name == 'appcompat-v7') {
            details.useTarget 'net.xpece.android:support-appcompat-v7-fixed:26.1.0-1'
        }
    }
}

Я уже потратил много времени, чтобы решить эту проблему, но не повезло.Пожалуйста, помогите мне решить эту проблему.Дайте мне знать, если потребуется дополнительная информация.

...