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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…