美文网首页
2018-05-16添加libvlc.aar

2018-05-16添加libvlc.aar

作者: lyblyblyblin | 来源:发表于2018-05-16 23:21 被阅读0次
    草图.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')
    

    相关文章

      网友评论

          本文标题:2018-05-16添加libvlc.aar

          本文链接:https://www.haomeiwen.com/subject/ygcvdftx.html