org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithDexForDebug'

前端 未结 22 2208
暗喜
暗喜 2020-12-02 21:54

Due to 65K error in my project I need it to migrate to Android Studio . While running

./gradlew assembleDebug

I am

相关标签:
22条回答
  • 2020-12-02 22:40

    Migrate to androidX library

    With Android Studio 3.2 and higher, you can migrate an existing project to AndroidX by selecting Refactor > Migrate to AndroidX from the menu bar.

    Source: https://developer.android.com/jetpack/androidx/migrate

    0 讨论(0)
  • 2020-12-02 22:41

    you just change import android.support.v7.app.ActionBarActivity; to import android.support.v7.app.AppCompatActivity;

    and extends AppCompatActivity

    0 讨论(0)
  • 2020-12-02 22:41

    clear project and then run. it will work

    0 讨论(0)
  • 2020-12-02 22:43

    first you remove this thing in your project .. its is in build.gradle(module:app) then build your app now you project show the actual error and you find what is your actual problem is .. and after you find actual problem again paste it where its is belong to

    allprojects { gradle.projectsEvaluated {

        tasks.withType(JavaCompile)
    

    { options.encoding = 'UTF-8'

            options.compilerArgs
    

    << "-Xlint:unchecked" << "-Xlint:deprecation"}]}}

    0 讨论(0)
提交回复
热议问题