Unable to load class ‘org.gradle.initialization.BuildCancellationToken‘.

I downloaded the demo of the third-party library and wanted to run it to have a look, but this error was reported.

The demo uses gradle-5.1.1-all. This version of gradle exists locally on my computer, but the result is still an error!

The reason is that there is a problem with the local file, I re-download and decompress it locally and it will be fine!

Download address: link

Decompression path: C:\Users\10850\.gradle\wrapper\dists\gradle-5.1.1-all\97z1ksx6lirer3kbvdnh7jtjg

Guess you like

Origin blog.csdn.net/fromVillageCoolBoy/article/details/132006880