Android studio error during build solution

When Android studio builds, transformclasseswithdexfordebug appears

The following problems occurred during Android studio build:

Confirm that the code is OK and the project is correct, but this problem will still occur in rebuild after clean.

Some people say "I doubt that gradle has compatibility problems with JDK 1.8. Try to reduce the JDK version that the project depends on to 1.7, and try to compile again, which is successful!", but it doesn't work for me. Finally, after searching for several minutes, we finally found the solution as follows:

Add javamaxheapsize "4G" in dexoptions to solve the problem

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>