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

后端 未结 20 1779
深忆病人
深忆病人 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: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).

提交回复
热议问题