Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.1.0-runtime

解决方法()
在项目目录gradle.properties文件中加入

# 需要在gradle.properties中添加下面两行代码
# 这是因为混合支持库。通过添加这些行选择androidX作为您的支持库

android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m

我出现的情况,这个文件乱码了,改成上面那样就好了

猜你喜欢

转载自blog.csdn.net/ShiXinXin_Harbour/article/details/110478391
今日推荐