Как установить и использовать сторонние зависимости при разработке плагина для Android - PullRequest
0 голосов
/ 07 мая 2019

Я разрабатываю плагин для флаттера, который использует send bird SDK для Android.Я не могу использовать SDK даже после добавления его в мои зависимости в android/build.gradle, который защищен flutter create --template=plugin

android/build.gradle конфигурацией

...

buildscript {
    repositories {
        google()
        jcenter()
        maven { url "https://raw.githubusercontent.com/smilefam/SendBird-SDK-Android/master/" }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
    }
}

rootProject.allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://raw.githubusercontent.com/smilefam/SendBird-SDK-Android/master/" }
    }
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion 28

    defaultConfig {
        minSdkVersion 16
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    lintOptions {
        disable 'InvalidPackage'
    }
}

dependencies {
    implementation 'com.sendbird.sdk:sendbird-android-sdk:3.0.92'
}

Ниже приведена попыткаинициализировать SDK из Android

enter image description here

выходной сигнал Gradle

WARNING: API 'variantOutput.getProcessResources()' is obsolete and has been replaced with 'variantOutput.getProcessResourcesProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variantOutput.getProcessResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Affected Modules: app

...