Я просто запускаю простой пример hello world в android studio 4.0.0. это дает мне эту ошибку:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform core-1.1.0.aar (androidx.core:core:1.1.0) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\transforms-2\files-2.1\cd4879837b92e15e5ff5501be1c5771e\core-1.1.0-runtime.jar.
> Cannot parse result path string:
> Failed to transform core-1.1.0.aar (androidx.core:core:1.1.0) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\transforms-2\files-2.1\cd4879837b92e15e5ff5501be1c5771e\core-1.1.0-runtime.jar.
> Cannot parse result path string:
> Failed to transform core-1.1.0.aar (androidx.core:core:1.1.0) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\transforms-2\files-2.1\cd4879837b92e15e5ff5501be1c5771e\core-1.1.0-runtime.jar.
> Cannot parse result path string:
> Failed to transform core-1.1.0.aar (androidx.core:core:1.1.0) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\transforms-2\files-2.1\cd4879837b92e15e5ff5501be1c5771e\core-1.1.0-runtime.jar.
> Cannot parse result path string:
> Failed to transform core-1.1.0.aar (androidx.core:core:1.1.0) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\transforms-2\files-2.1\cd4879837b92e15e5ff5501be1c5771e\core-1.1.0-runtime.jar.
> Cannot parse result path string:
> Failed to transform core-1.1.0.aar (androidx.core:core:1.1.0) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\transforms-2\files-2.1\cd4879837b92e15e5ff5501be1c5771e\core-1.1.0-runtime.jar.
> Cannot parse result path string:
> Failed to transform core-1.1.0.aar (androidx.core:core:1.1.0) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\transforms-2\files-2.1\cd4879837b92e15e5ff5501be1c5771e\core-1.1.0-runtime.jar.
> Cannot parse result path string:
> Failed to transform core-1.1.0.aar (androidx.core:core:1.1.0) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\transforms-2\files-2.1\cd4879837b92e15e5ff5501be1c5771e\core-1.1.0-runtime.jar.
> Cannot parse result path string:
> Failed to transform core-1.1.0.aar (androidx.core:core:1.1.0) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\transforms-2\files-2.1\cd4879837b92e15e5ff5501be1c5771e\core-1.1.0-runtime.jar.
> Cannot parse result path string:
> Failed to transform constraintlayout-solver-1.1.3.jar (androidx.constraintlayout:constraintlayout-solver:1.1.3) to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-incremental-desugaring-v2=false, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\morteza\.gradle\caches\modules-2\files-2.1\androidx.constraintlayout\constraintlayout-solver\1.1.3\54abe9ffb22cc9019b0b6fcc10f185cc4e67b34e\constraintlayout-solver-1.1.3.jar.
> Cannot parse result path string:
* 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 2m 17s
15 actionable tasks: 15 executed
вот моя MainActivity. java file:
package com.example.app_3;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
и вот моя activity_main. xml:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Я ничего особенного не сделал, просто создал новый проект с EmptyActivity. я понятия не имею, пожалуйста, дайте мне знать, если потребуется дополнительная информация. спасибо