Unity encounters the problem of "build gradle project" failure when packaging Android apk

Unity often encounters build gradle project failures when packaging Android apk. Now the current situation is sorted out as follows:

Situation 1: After packing for a while, it shows that the packing failed, and the following error is reported:

Situation 2: When packaging, it has been stuck in "build gradle project" and does not move at all (it is still stuck after waiting for several hours, and the packaging may be successful in a very small probability)

The reason for this situation is that the network is unstable. When downloading the Gradle version or the library files that the project depends on, the download fails due to the slow network speed, so it cannot be packaged normally.

Solution:

Supongo que te gusta

Origin blog.csdn.net/m0_47975736/article/details/123472351
Recomendado
Clasificación