洛斯,永新论坛,帅哥露鸟图
参考文章:https://blog.csdn.net/qq_24216407/article/details/72842614
在build.gradle引用了vlc的安卓包:de.mrmaffen:vlc-android-sdk:3.0.0
dependencies { implementation filetree(include: ['*.jar'], dir: 'libs') //noinspection gradlecompatible implementation 'com.android.support:appcompat-v7:28.0.0-rc02' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testimplementation 'junit:junit:4.12' androidtestimplementation 'com.android.support.test:runner:1.0.2' androidtestimplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation 'de.mrmaffen:vlc-android-sdk:3.0.0' }
编译一切正常,运行报错: 大致意思是com.android.support 包引用重复
解决办法:在依赖中排除com.android.support
dependencies { implementation filetree(include: ['*.jar'], dir: 'libs') //noinspection gradlecompatible implementation 'com.android.support:appcompat-v7:28.0.0-rc02' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testimplementation 'junit:junit:4.12' androidtestimplementation 'com.android.support.test:runner:1.0.2' androidtestimplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation ('de.mrmaffen:vlc-android-sdk:3.0.0') {exclude group: 'com.android.support'} }
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Android studio 解决logcat无过滤工具栏的操作
Android Studio 恢复小窗口停靠模式(Docked Mode)
Android studio保存logcat日志到本地的操作
Android Studio快捷键生成TAG、Log.x日志输出介绍
网友评论