Please!How to use ProGuard to obfuscate a .jar file that is converted from the classes.dex file in a complete APK file using dex2jar?

Hello, I would like to obfuscate the Java code in several packaged APK files. Since ProGuard works with code rather than complete APK files, I used dex2jar to generate the corresponding .jar files. However, I’m unsure about how to import all the dependencies of these generated .jar files into ProGuard, which has led to a huge number of errors. Manually importing these packages one by one seems very challenging, especially when just one APK contains so many issues. Is there a more effective solution to this problem?