After updating android studio, I face the attached error during the build process.
Execution failed for task ':app:compileDebugKotlin'.
> Could not isolate parameters org.jetbrains.kotlin.gradle.internal.transforms.BuildToolsApiClasspathEntrySnapshotTransform$Parameters_Decorated@3f3c1888 of artifact transform BuildToolsApiClasspathEntrySnapshotTransform
> Could not isolate value org.jetbrains.kotlin.gradle.internal.transforms.BuildToolsApiClasspathEntrySnapshotTransform$Parameters_Decorated@3f3c1888 of type BuildToolsApiClasspathEntrySnapshotTransform.Parameters
> Could not resolve all files for configuration ':app:kotlinBuildToolsApiClasspath'.
> Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.6.10.
Required by:
project :app > org.jetbrains.kotlin:kotlin-build-tools-impl:2.0.0 > org.jetbrains.kotlin:kotlin-compiler-embeddable:2.0.0
> Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.6.10.
> Could not parse POM https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.pom
> Content is not allowed in prolog.
Searching the web and other forums I have found that it is related to the version and compatibility but I don't know how to fix it manually.