webrtc native api error 'vectorDrawables' & 'Task' when sync in build.grandle

by theman whosoldtheworld   Last Updated February 13, 2018 13:11 PM

I try to install on my lollipop device AppRTCMobile example containing on official repo.

i find a first little error on grandle.build file (not closing "}").Actually I obtain these error on my log file:

WARN - ect.sync.idea.ProjectSetUpTask - Could not get unknown property     

    'vectorDrawables' for source set default config of type com.android.build.gradle.internal.api.DefaultAndroidSourceSet.

Consult IDE log for more details (Help | Show Log) 
2018-02-13 13:07:01,478 [d thread 6]   INFO - e.project.sync.GradleSyncState - Gradle sync failed: Could not get unknown  property 'vectorDrawables' for source set default config of type com.android.build.gradle.internal.api.DefaultAndroidSourceSet.

my build.grandle result these:

// Generated by //build/android/generate_gradle.py

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com'
        }
    }
    dependencies {
        classpath "com.android.tools.build:gradle:3.1.0-alpha08"
    } }

and my example AppRTCMobile build.grandle result these:

// Generated by //build/android/generate_gradle.py

apply plugin: "com.android.application"

android {
    compileSdkVersion "android-27"
    buildToolsVersion "27.0.1"

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

sourceSets {
    main {
        aidl.srcDirs = []
        assets.srcDirs = []
        java.srcDirs = []
        jni.srcDirs = []
        renderscript.srcDirs = []
        res.srcDirs = []
        resources.srcDirs = []
    }
    test {
        aidl.srcDirs = []
        assets.srcDirs = []
        java.srcDirs = []
        jni.srcDirs = []
        renderscript.srcDirs = []
        res.srcDirs = []
        resources.srcDirs = []
    }
    androidTest {
        aidl.srcDirs = []
        assets.srcDirs = []
        java.srcDirs = []
        jni.srcDirs = []
        renderscript.srcDirs = []
        res.srcDirs = []
        resources.srcDirs = []
    }
    debug {
        aidl.srcDirs = []
        assets.srcDirs = []
        java.srcDirs = []
        jni.srcDirs = []
        renderscript.srcDirs = []
        res.srcDirs = []
        resources.srcDirs = []
    }
    release {
        aidl.srcDirs = []
        assets.srcDirs = []
        java.srcDirs = []
        jni.srcDirs = []
        renderscript.srcDirs = []
        res.srcDirs = []
        resources.srcDirs = []
    }

    main {
        manifest.srcFile "../../../../../examples/androidapp/AndroidManifest.xml"
        java.srcDirs = [
            "extracted-srcjars",
        ]
        java.filter.exclude(
        )
        jniLibs.srcDirs = [
            "symlinked-libs",
        ]
        res.srcDirs = [
            "extracted-res",
        ]
    }




    defaultConfig {
        vectorDrawables.useSupportLibrary = true
    } }


dependencies {
    implementation project(path: ":examples.AppRTCMobile_javalib")
    implementation project(path: ":rtc_base.base_java")
    implementation project(path: ":base.base_java")



} afterEvaluate {
    def tasksToDisable = tasks.findAll {
        return (it.name.equals('generateDebugSources')  // causes unwanted AndroidManifest.java
                || it.name.equals('generateReleaseSources')
                || it.name.endsWith('BuildConfig')  // causes unwanted BuildConfig.java
                || it.name.equals('preDebugAndroidTestBuild')
                || it.name.endsWith('Aidl')
                || it.name.endsWith('Renderscript')
                || it.name.endsWith('Shaders'))
    }
    tasksToDisable.each { Task task ->
      task.enabled = false
    } }

Why I got these error? My buld.grandle on AppRTCMobile is wrong or contain some error??

regards bkt



Related Questions


Run google-chrome with flags on Android

Updated March 26, 2015 11:03 AM

Cannot enable Google Sync in Chromium

Updated March 05, 2017 19:11 PM



Enable WebGL in Chromium on Andoid device

Updated March 01, 2017 13:11 PM