Could not resolve all files for configuration ':app:detachedConfiguration6'

Sorry, but here I get an error like this when I just installed Android Studio on Linux Ubuntu. I am a beginner in the Android development world. And I have tried to reinstall Android Studio 2 times, but still encounter the same error

My error is (I am sorry, I am new in this forum too, so I don’t know too much about how to write a formatted error message):

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Could not resolve all files for configuration ':app:detachedConfiguration6'.
   > Failed to transform android.jar to match attributes {artifactType=classpath-entry-snapshot, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Execution failed for ClasspathEntrySnapshotTransform: /home/panji-rajasa/Android/Sdk/platforms/android-35/android.jar.
         > Check failed.

* Try:
> 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.

That’s some Android-specific transformation that fails, so you might be better off asking in some Android community.
But besides that, as you run with --stacktrace you should also share the stacktrace you generated.
Or even better would be to share a build --scan URL.

1 Like

Thank you for your explanation sir :blush:

1 Like