Why Resources.Load is very slow in Android

I share my findings with you.

Unity Version.

  • Unity2021.3.16f1

I was experiencing a very slow Resources.Load issue on Android in my environment.
The cause was a change in the Gradle version.

(1) Export your Android Studio project

(2) Open the project and you will see the Upgrade Assistant popup
(It recommends upgrading from 4.0.1 to 4.2.2)

(3) We can also select a newer Gradle version from the pull-down here.

In my environment, I tried building with the following Gradle version.

Upgrade to Gradle Version
4.0.1 (default) => OK
4.2.2 => OK
7.3.1 => very slow

I hope this information is useful to someone.

Try opening the produced apk with 7z and check the compression method on the files inside, it might be slow, because the resource files are compressed, thus upon loading they need to be decompressed. Some people had this problem, because their gradle templates were not regenerated during Unity upgrade.