firemaples / EverTranslator

Translate text anytime and everywhere, even you are gaming!
https://play.google.com/store/apps/details?id=tw.firemaples.onscreenocr
GNU General Public License v3.0
139 stars 25 forks source link

构建失败 #428

Open Doddddd opened 8 months ago

Doddddd commented 8 months ago

./gradlew assembleDevRelease

Task :main:minifyDevReleaseWithR8 /home/runner/work/Actions/Actions/main/src/main/java/tw/firemaples/onscreenocr/floatings/translationSelectPanel/TranslationSelectPanelViewModel.kt:219: Error: Expected non-nullable value [NullSafeMutableLiveData from androidx.lifecycle] Task :main:lintVitalReportDevRelease _displayTranslationProviders.value = translationRepo.getAllProviders().first()

                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Explanation for issues of type "NullSafeMutableLiveData": This check ensures that LiveData values are not null when explicitly

Task :main:lintVitalDevRelease FAILED declared as non-nullable.

               Kotlin interoperability does not support enforcing explicit

null-safety when using generic Java type parameters. Since LiveData is a Java class its value can always be null even when its type is explicitly declared as non-nullable. This can lead
to runtime exceptions from reading a null LiveData value that is assumed to be non-nullable.

Vendor: Android Open Source Project Identifier: androidx.lifecycle Feedback: https://issuetracker.google.com/issues/new?component=413132

1 errors, 0 warnings

ASM Instrumentation process wasn't able to resolve some classes, this means that the instrumented classes might contain corrupt stack frames. Make sure the dependencies that contain these classes are on the runtime or the provided classpath. Otherwise, the jvm might fail to load the corrupt classes at runtime when running in a jvm environment like unit tests.

Classes that weren't resolved:

com.google.common.util.concurrent.ListenableFuture androidx.window.extensions.embedding.SplitPlaceholderRule androidx.window.extensions.embedding.ActivityRule androidx.window.extensions.embedding.SplitPairRule

FAILURE: Build failed with an exception.