QMUI出现Didn‘t find class “androidx.legacy.widget.Space“ on path: DexPathList[[zip file “/data/app/~~c

Bomb components appear in the box when using QMUI framework of flash back problems and error, I researched, I found that there is a problem is to import the package, the following error
Insert picture description here
solution :
import the package change it, change the following package:

implementation 'com.qmuiteam:qmui:2.0.0-alpha10'

Originally, the previous implementation'com.qmuiteam:qmui:1.2.0' (it should be that this version is too old) will not report an error, and it can still be used. I checked the official website of QMUI and found that QMUI is updated, so the previous one The version may have the error report as shown above.

After importing the package correctly, it was found that the operation was successful
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_45137584/article/details/110729819