Android Resolve takes too long (hours!)

Hi,

I am using Applovin Max on my project (There are nearly 20 ad networks.). When the new update comes, I delete resolved libraries and I run Android Force Resolve. It takes too long and sometimes not complete! This time, I waited for 3-4 hours, still not completed.

Here are some information about the project and what I did:

  1. My computer is IMac.

  2. I tried delete External Dependency Manager and reimport it.

  3. “Custom Main Manifest” and “Custom Gradle Properties Template” are enabled at publishing settings. (Others disabled).

  4. Firebase and Facebook sdk installed.

  5. I tried delete myself aar and jar files from Plugins/Android folder.

It’s really very annoying. I am open to any help and suggestions.

ps. sorry for language.

So, I found a very similar issue on StackOverflow; hopefully, it helps you solve your problem. In essence, you have to make sure of 3 main things:

  1. Make sure you're using the latest stable version
  2. Make sure your gradle is in build.gradle
  3. Change your jcenter() to mavenCentral()

You can find the detailed answer in the StackOverflow thread here: Android build gradle is too slow (Dependency Resolution) - Stack Overflow

(Thanks for answer).

I found solution. I’ll post it here, maybe it will be useful to someone else:

  1. I removed all networks.

  2. I added them one by one and try resolve.

  3. In the end, it did not resolve on one of them. (HyprMX ad network).

So, I didn’t think it was due to networks as it didn’t give an error message. It’s working now…