Getting error says - “Entry name 'res/layout/test_toolbar.xml' collided” while creating signed apk

后端 未结 20 1767
深忆病人
深忆病人 2020-12-29 17:27

I have updated my android studio from 3.5.x to 3.6 today and getting error while generating signed apk for build variant showing the follow

相关标签:
20条回答
  • 2020-12-29 18:17

    This may have been overkill but I:

    1. Delete project/build folder
    2. Delete project/app/build folder
    3. File > Invalidate Caches / Restart
    4. Clean Project
    0 讨论(0)
  • 2020-12-29 18:17

    I just delete all debug APKs in myProject\app\build\outputs\apk\debug directory and it worked for me.

    0 讨论(0)
  • 2020-12-29 18:17

    I had similar issue. I have solved it by doing a "Clean Project", then a build.

    0 讨论(0)
  • 2020-12-29 18:18

    try clean your build and rebuild it and then run project still did not worked then do following

    File->Invalidate Cashes /restart-> Invalidate and restart

    you can clean your build by

    Build-> Clean project

    0 讨论(0)
  • 2020-12-29 18:25

    I did an Invalidate Cache and Restart and it fixed it.

    0 讨论(0)
  • 2020-12-29 18:26

    Solved:
    Just delete the earlier apk file. That's it.
    Location would be: YourProjectFolder/app/debug/

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