条目名称“classes.dex”发生冲突
在尝试生成烧焦的 apk 时,我收到此错误
Entry name 'classes.dex' collided
有人能告诉我如何解决吗?我最近将默认包名称 com.exmaple 更改为我的应用程序名称。它构建正确,但在尝试生成签名的 APK 时出现此错误
我的 android studio 版本是 4.1.2
如果您需要更多信息,请告诉我,我会相应地更新问题
回答
您可能会遇到此错误,因为您的项目的“发布”文件夹中已经有一个已签名的 APK。请检查是否存在任何现有的 APK 并将其删除,然后再次尝试生成。
- I think this will go down in history as one of the most misleading error messages of all time. - Your solution works like a charm 😉
回答
我遇到了同样的问题,这是我轻松解决的方法:
1. Build -> Clean Project
2. Build -> Generate Signed Bundle / APK..