错误:(7,0)无法获取未知属性' ANDROID_BUILD_SDK_VERSION'对于项目':vitamio'的类型为org.gradle.api.Project

时间:2017-10-25 22:46:45

标签: android sdk live-streaming vitamio

当我尝试导入vitamio sdk的模块时,会发生此错误

Error:(7, 0) Could not get unknown property 'ANDROID_BUILD_SDK_VERSION' for project ':vitamio' of type org.gradle.api.Project.

这是我的build.gradle

apply plugin: 'com.android.library'

dependencies {
}

android {
    compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
    buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION

    defaultConfig {
        minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
        targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
    }
    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            jniLibs.srcDirs = ['libs']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
        }

    }

}

我想使用vitamio sdk进行在线直播,因为libvlc sdk延迟直播steeam视频

0 个答案:

没有答案