Could not determine the dependencies of task ':app:preOnlineDebugBuild'. > Could not resolve all task dependencies for configuration ':app:onlineDebugRuntimeClasspath'. > Could not find :unspecified:. Searched in the following locations: - file:/D:/xxxxxxx/xxxxxxx/libs/baseRes/libs/unspecified.jar Required by: Project: app > project: modules: mainpage > com. Sobot. Chat: sobotsupport - glidev4:1.0.10 > Com. Sobot. Chat: sobotsdk - imageloader: 1.0.4 Possible solution: - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.htmlCopy the code

Compiler error message above, let a person really confused.

Problem recurrence:

There is an alarm on disk C, so I deleted the gradle cache directory, and then compiled the project. I have tried many solutions, but no solution has been found

Problem analysis:

As you can see, the problem is ultimately pointing to this SDK, and the solution is here to start!

Com. Sobot. Chat: sobotsdk - imageloader: 1.0.4Copy the code

The internal situation of SDK is shown as follows. It is very simple, with only one abstract class. So when we introduce wisdom tooth SDK, we should exclude this SDK and replace this class. NICE~

Solve a problem:

Step 1: Eliminate introduction.

Step 2: Write your own Sobotimageloader.java class. This is actually a copy, keeping the package name and class name the same.

Step 3: Initialize (load) the class. In fact, this step is not necessary, just to ensure that the class is loaded into the virtual at the time of use, to keep the code robust. This is best done inside the Application.

Conclusion:

Through testing, the above treatment can solve this bizarre BUG. Record here, I hope you encounter similar problems can have a reference, but also hope you can have a better solution, message we can exchange about ~

Guys, Peace & Love