zoukankan      html  css  js  c++  java
  • Android重复依赖解决办法

    参考文章: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'}
    }
  • 相关阅读:
    Java之Socket与HTTP区别
    TCP/IP 、HTTP和SOCKET
    远程仓库(GitHub)的使用
    Git 中的一些其他常用命令
    Git 中关于一次完整的提交的命令
    Git的安装及配置
    网络体系应用层之万维网、http协议
    网络体系应用层之DNS系统
    phpstudy的80端口被占用问题
    网络体系之TCP/IP模型
  • 原文地址:https://www.cnblogs.com/tangchun/p/9644950.html
Copyright © 2011-2022 走看看