Предупреждение R8 «Отсутствует класс: javax.swing.JFrame», как получить доступ к Swing? - PullRequest
1 голос
/ 25 мая 2020

Недавно я заметил, что когда я компилирую свое приложение в выпуске мода, R8 регистрирует следующее предупреждающее сообщение: Missing class: javax.swing.JFrame вместе с другими классами Swing / Java рабочего стола, такими как Missing class: java.awt.event.WindowAdapter или Missing class: java.applet.Applet.

Если я не ошибаюсь, это не имеет никакого отношения к моему приложению Android. Как я могу узнать, откуда это взялось?

Я попытался проверить зависимости своего приложения с помощью ./gradlew app:dependencies, но не нашел ничего подходящего, поскольку эти классы взяты из JRE.

Мой список зависимостей по запросу:

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')

    implementation "io.reactivex.rxjava2:rxandroid:2.1.1"
    implementation "io.reactivex.rxjava2:rxjava:2.2.19"
    implementation "joda-time:joda-time:2.10.6"
    implementation "org.greenrobot:eventbus:3.2.0"
    debugImplementation "com.squareup.leakcanary:leakcanary-android:2.3"
    implementation("com.crashlytics.sdk.android:crashlytics:2.10.1@aar") {
        transitive = true
    }
    implementation "xom:xom:1.3.5"

    implementation "io.requery:requery-android:1.6.1"
    implementation "io.requery:requery-jackson:1.6.1"
    kapt "io.requery:requery-processor:1.6.1"

    implementation "com.squareup.okhttp3:okhttp:4.7.2"
    implementation "com.squareup.okhttp3:logging-interceptor:4.7.2"
    implementation "com.squareup.retrofit2:retrofit:2.9.0"
    implementation "com.squareup.retrofit2:converter-scalars:2.9.0"
    implementation "com.squareup.retrofit2:converter-jackson:2.9.0"
    implementation "com.fasterxml.jackson.core:jackson-databind:2.11.0"

    implementation "com.google.android.material:material:1.1.0"
    implementation "androidx.appcompat:appcompat:1.1.0"
    implementation "androidx.cardview:cardview:1.0.0"
    implementation "androidx.gridlayout:gridlayout:1.0.0"
    implementation "androidx.constraintlayout:constraintlayout:1.1.3"
    implementation("com.mikepenz:materialdrawer:6.1.2") {
        transitive = true
    }
    implementation "com.balysv.materialmenu:material-menu:2.0.0"
    implementation "com.airbnb.android:lottie:3.4.0"
    implementation "com.github.rey5137:material:1.3.0"
    implementation "com.github.sevar83:indeterminate-checkbox:1.0.5@aar"
    implementation "com.github.woxthebox:draglistview:1.7.1"
    implementation "me.philio:pinentryview:1.0.6"

    testImplementation "org.robolectric:robolectric:4.3.1"
    implementation "org.robolectric:annotations:4.3.1"
    implementation "org.robolectric:shadowapi:4.3.1"
    kaptTest "com.google.auto.service:auto-service:1.0-rc6"
    testImplementation "org.junit.jupiter:junit-jupiter-api:5.6.2"
    testImplementation "androidx.test:runner:1.2.0"
    testImplementation "androidx.test:core:1.2.0"
    testImplementation "org.mockito:mockito-core:3.3.3"
    kaptAndroidTest "org.mockito:mockito-android:3.3.3"
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...