2018-05-16添加libvlc.aar

草图.png
apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "hello.world.myapplication"
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    repositories {
        flatDir {
            dirs 'libs'
        }
    }

    dependencies {
//    implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs')
        implementation fileTree(include: ['*.jar'], dir: 'libs')
        compile(name: 'libvlc', ext: 'aar')
        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.android.support.constraint:constraint-layout:1.0.2'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.1'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
        implementation 'com.github.bumptech.glide:glide:4.7.1'
    }
}

也可以只添加一行

//    implementation fileTree(include: ['*.jar','*.aar'], dir: 'libs')
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 用到的组件 1、通过CocoaPods安装 2、第三方类库安装 3、第三方服务 友盟社会化分享组件 友盟用户反馈 ...
    SunnyLeong阅读 14,983评论 1 180
  • 发现 关注 消息 iOS 第三方库、插件、知名博客总结 作者大灰狼的小绵羊哥哥关注 2017.06.26 09:4...
    肇东周阅读 14,780评论 4 61
  • Spring Boot 参考指南 介绍 转载自:https://www.gitbook.com/book/qbgb...
    毛宇鹏阅读 47,221评论 6 342
  • var foo,bar;foo = foo || bar;//如果foo存在,值不变;否则把bar的值赋值给foo...
    大兵_HERG阅读 2,481评论 0 0
  • 簪花误入玲珑盏,杏蕊绯传落日红。 问月南山西岭北,泊舟左岸小桥东。 痴心难断离鸢线,长调轻缠玉指风。 道是多情人不...
    鱼爷原名牧鱼斋主阅读 2,707评论 2 8

友情链接更多精彩内容