After I upgraded the compile sdk version to 31, this problem appeared. I have changed several jdks but it doesn’t help. I am writing a library so the newest sdk version is needed. In addition, the system of my computer is Windows, can anybody help?
Source: Android Questions