В моем проекте есть субмодуль от exoplayer.В моем settings.gradle
я добавляю путь lib для exoplayer, как этот
def modulePrefix = ":exoplayer:"
def rootDir = new File('').toPath().toString()
include ':exoplayer:library'
include ':exoplayer:library'
include ':exoplayer:library-core'
include ':exoplayer:library-dash'
include ':exoplayer:library-hls'
include ':exoplayer:library-smoothstreaming'
include ':exoplayer:library-ui'
include ':exoplayer:extension-okhttp'
project(modulePrefix + 'library').projectDir = new File(rootDir,
'library/all')
project(modulePrefix + 'library-core').projectDir = new File(rootDir,
'library/core')
project(modulePrefix + 'library-dash').projectDir = new File(rootDir,
'library/dash')
project(modulePrefix + 'library-hls').projectDir = new File(rootDir,
'library/hls')
project(modulePrefix + 'library-smoothstreaming').projectDir = new
File(rootDir, 'library/smoothstreaming')
project(modulePrefix + 'library-ui').projectDir = new File(rootDir,
'library/ui')
project(modulePrefix + 'extension-okhttp').projectDir = new
File(rootDir, 'extensions/okhttp')
Теперь я добавляю зависимости библиотек exoplayer в мои build.gradle
, как это
implementation project(':exoplayer-library-core')
implementation project(':exoplayer-library-dash')
implementation project(':exoplayer-library-hls')
implementation project(':exoplayer-library-smoothstreaming')
implementation project(':exoplayer-library-ui')
implementation project(':exoplayer-extension-okhttp')
и я получаю эту ошибку
Project with path ':exoplayer-library-core' could not be found in root
project 'myProject'