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

后端 未结 20 1824
深忆病人
深忆病人 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:26

    Just delete app>build and build folders in the project path on your computer!

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

    The problem is build caused. The best solution is to clean and rebuild the project. Go on build and clean the project.

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

    I had the same error after updating android studio and I fix the problem by only cleaning the project (Build > Clean Project) !:)

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

    All I had to do was Restart my system and go to Build > Clean Project

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

    I deleted the previous build outputs for build variant, including APK file. That's what helped me

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

    After updating to Android Studio 4.1 I faced similar issues, for me it was "entry name 'classes.dex' collided". Error arose when building the app using the option 'Generate Signed Bundle/APK'.

    The solution was simple: make sure Android Studio is not running the app when building (stop running and then try again).

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