Android Studio - java .lang.NoClassDefFoundError: com / sun / tools / javac / tree / TreeInfo $ TypeAnnotationFinder - PullRequest
0 голосов
/ 26 марта 2020

У меня есть проект, в котором все работало. Тогда студия android предложила обновить. Я это сделал. После этого мой проект больше не компилируется. ошибка

> Task :app:compileDebugJavaWithJavac FAILED
An exception has occurred in the compiler (1.8.0_212-release). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NoClassDefFoundError: com/sun/tools/javac/tree/TreeInfo$TypeAnnotationFinder
    at com.sun.tools.javac.tree.TreeInfo.containsTypeAnnotation(TreeInfo.java:1183)
    at com.sun.tools.javac.comp.Check.checkRedundantCast(Check.java:582)
    at com.sun.tools.javac.comp.Attr.visitTypeCast(Attr.java:3127)
    at com.sun.tools.javac.tree.JCTree$JCTypeCast.accept(JCTree.java:1814)

А это мой build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.company.rbk"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 4
        versionName "4.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    //implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.google.android.gms:play-services-ads:16.0.0'
    implementation 'com.android.support:support-annotations:28.0.0'
    //implementation 'com.google.android.gms:play-services-ads:11.8.0'
    //implementation 'com.google.android.gms:play-services-ads:17.2.0'
    implementation 'com.android.billingclient:billing:2.1.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'
}

Android Studio 3.6.1 Gradle 5.4.1

Как чтобы решить это?

Спасибо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...