簡體   English   中英

使用更新版本的Glide Library(4.7.1)會導致綁定錯誤問題

[英]Using Newer version of Glide Library(4.7.1) causing Binding error issue

當我嘗試使用更新版本的Glide Library時,在所有文件中均出現綁定錯誤。 當我恢復到較舊的版本時,它可以工作。

我使用的版本:

**api 'com.github.bumptech.glide:glide:4.3.0'**

我更新的較新版本:

**dependencies {
    compile 'com.github.bumptech.glide:glide:4.7.1'
}**

不確定問題的原因。

錯誤:包com.xxx.xxx.databinding不存在

  • 所有班級都一樣

    org.gradle.api.tasks.TaskExecutionException:任務':app:compileDebugJavaWithJavac'的執行失敗。 在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)在org.gradle .api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)位於org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)

我面臨的實際問題是這樣的: https://stackoverflow.com/questions/49976044/crash-on-using-glide-library/49976172?noredirect=1#comment86975685_49976172 : https://stackoverflow.com/questions/49976044/crash-on-using-glide-library/49976172?noredirect=1#comment86975685_49976172

最后,我可以通過將Glide依賴項放在兩個Gradle文件中來解決此問題。 以前,我試圖在這些文件之一上添加依賴項。 令人驚訝的是,較舊版本的Glide不能工作於較新的版本。 現在,我在兩個Gradle文件中都放置了新版本的Glide。 OO! 有用。

My project structure(MVVM): -core - app

implementation 'com.github.bumptech.glide:glide:4.8.0'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM