嗨,伙计们,当我尝试运行我的应用程序时,我遇到了这个错误。我调查了这个问题,我发现这个问题只有在我添加这个谷歌实现时才会发生。当我删除实现时,应用程序工作得很好。为什么会发生这种情况以及解决方案是什么implementation 'com.google.android.gms:play-services-auth:20.1.0'
我不知道问题的原因在哪里可以通过给我解决方案或引导我阅读任何文章来帮助我
最佳答案
您必须在应用程序 gradle 中添加库:
implementation 'com.android.support:multidex:1.0.3'
之后,添加 app gradle 的 defaultConfig :multiDexEnabled true
关于android - 错误 : Cannot fit requested classes in a single dex file (# methods: 65978 > 65536),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71360514/