Cached version error

Hi, i search on internet how to solve this problem and i couldn’t find anythings about that maybe because it’s a new version. i try turning on and off gradle toggle but it’s still not working.
i’m making a app witch use login and sing up and i’m working on the mac version.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:mergeDebugResources’.

Could not resolve all files for configuration ‘:app:_internal_aapt2_binary’.
Could not resolve com.android.tools.build:aapt2:3.6.3-6040484.
Required by:
project :app
No cached version of com.android.tools.build:aapt2:3.6.3-6040484 available for offline mode.
No cached version of com.android.tools.build:aapt2:3.6.3-6040484 available for offline mode.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 7s
6 actionable tasks: 1 executed, 5 up-to-date

Hello, maybe it’ll help: the similar messages about “No cached version of com.android.tools.build:aapt2:3.6.3-6040484” I’ve seen when “Off-line mode” for Gradle plugin in Android Studio was on.

By the way, project build.gradle had such settings
ext.kotlin_version = “1.3.61”

classpath ‘com.android.tools.build:gradle:3.6.3’

After disabling off-line mode and increasing kotlin version to 1.3.72, all problem’s disappeared.