每次在Android Studio中重新运行应用程序时,无论是使用“运行应用程序”还是“应用更改”,我都会获得随机错误列表。我必须进行清理并重新构建,然后它才能正常工作。出现的错误如下:
Program type already present: androidx.transition.R
Duplicate resources
error: class BuildConfig is public, should be declared in a file named BuildConfig.java
Program type already present: androidx.recyclerview.R$drawable
Program type already present: androidx.lifecycle.extensions.R$style
类型loadImageToStorage$2
被定义多次:
为什么我一直收到这些消息?它极大地减缓了我的工作速度。
主要似乎是关于重复资源的,但当我执行“构建”然后运行时,它总是会清除。
我已经完全卸载并重新安装了Android Studio,但仍然有同样的问题。在Mac上运行。
非常感谢。