I'm trying to run a react-native project, but it gives an error:
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform emoji2-views-helper-1.0.0.aar (androidx.emoji2:emoji2-views-helper:1.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not find emoji2-views-helper-1.0.0.aar (androidx.emoji2:emoji2-views-helper:1.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/emoji2/emoji2-views-helper/1.0.0/emoji2-views-helper-1.0.0.aar
> Failed to transform emoji2-1.0.0.aar (androidx.emoji2:emoji2:1.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not find emoji2-1.0.0.aar (androidx.emoji2:emoji2:1.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/emoji2/emoji2/1.0.0/emoji2-1.0.0.aar
> Failed to transform lifecycle-process-2.4.0.aar (androidx.lifecycle:lifecycle-process:2.4.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not find lifecycle-process-2.4.0.aar (androidx.lifecycle:lifecycle-process:2.4.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-process/2.4.0/lifecycle-process-2.4.0.aar
> Failed to transform startup-runtime-1.0.0.aar (androidx.startup:startup-runtime:1.0.0) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not find startup-runtime-1.0.0.aar (androidx.startup:startup-runtime:1.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/startup/startup-runtime/1.0.0/startup-runtime-1.0.0.aar
It seems like it can not download the files, but when I put the URLs in the browser, I could download them, the problem seems to only occur in the terminal. I used VPNs but it did not change the outcome.
Any help would be appreciated and thanks in advance.