Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
361 views
in Technique[技术] by (71.8m points)

Can't resolve android module dependency in flutter project

Here is the settings.gradle of the flutter:

include ':app'
include ':videofeed-android'

def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()

def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')

project(':videofeed-android').projectDir = new File(rootDir, 'videofeed-android/')

if (pluginsFile.exists()) {
    pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}

plugins.each { name, path ->
    def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
    include ":$name"
    project(":$name").projectDir = pluginDirectory

dependence in app.gradle:

dependencies {
    implementation project(path:':videofeed-android')
}

error:

Could not determine the dependencies of task ':app:compileMinapi23DebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:minapi23DebugCompileClasspath'. Could not resolve project :umavideofeed-android. Required by: project :app > Unable to find a matching configuration of project :umavideofeed-android: - None of the consumable configurations have attributes.

question from:https://stackoverflow.com/questions/65920272/cant-resolve-android-module-dependency-in-flutter-project

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...