android : Error converting byte to dex

后端 未结 30 1696
鱼传尺愫
鱼传尺愫 2020-12-01 10:25

So, I am getting the following error while running the project after upgrading build.gradle (Project) from

dependencies {
        classpath \'com.android.too         


        
相关标签:
30条回答
  • 2020-12-01 10:42

    Just clean and retry solved for me.

    0 讨论(0)
  • 2020-12-01 10:44

    Okay. I don't know how but this worked.

    First I cleaned the project and then, running the project made everything go alright.

    Inshort, First Clean and then Run.

    Edit First Clean and then Make Project also works.

    0 讨论(0)
  • 2020-12-01 10:44

    Thing that worked for me.

    1. Go to android folder of your app.
    2. Run ./gradlew clean
    0 讨论(0)
  • 2020-12-01 10:45

    I met the same problem.
    First delete build folder from project location (You can access it via android studio or using explorer), then build the project.

    0 讨论(0)
  • 2020-12-01 10:45

    In case it helps someone, in my case I was using a custom package in release mode instead of in debug mode.

    I just changed the package from "release" to "debug" and it worked.

    0 讨论(0)
  • 2020-12-01 10:47

    In My case, I First Clean the project then i press Make Project button as below image, then it start working. Rebuild doesn't work for me.

    And I also updating Google Repository is must.

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