Enable Jetpack Popup Freezes Build

I’m trying to build an apk on Unity 2018.4.29 but every time I publish, Unity would freeze with a blank popup at the first scene it’s trying to build. If I set the target API to 28, Unity can publish the apk fine but Google playstore requires the minimum target API to be set to 29 and higher. I have tried setting the minimum API to 28 and the target API to automatic but Unity would continue to freeze when publishing.

When I force Unity to quit with the task manager, my package manager would disappear and android would fail to resolve dependencies.

Share the error what the resolver outputs when it fails.
Tip : Enable Verbose mode in resolver settings to see more details

Isn’t it because all the jar files are gone when I’m forced to quit unity from the task manager?

I’m not sure if these are the logs I’m suppose to be looking for.

Can you share screenshot of your paths in Unity preferences → External tools?

Here you go.

Try toggling the checkmarks under Android section in the above preferences and restart unity. If you still see the issue, please let me know.