Я занимаюсь разработкой библиотеки видеоплеера.В этой библиотеке я импортировал exoplayer как подмодуль (по причине) и добавил модули в свой проект.Вот settings.gradle
проекта lib
gradle.ext.exoplayerRoot = new File('').toPath().toString().concat('exoplayer')
gradle.ext.exoplayerModulePrefix = 'exoplayer-'
def rootDir = gradle.ext.exoplayerRoot
def modulePrefix = ':'
if (gradle.ext.has('exoplayerModulePrefix')) {
modulePrefix += gradle.ext.exoplayerModulePrefix
}
include modulePrefix + 'library-core'
include modulePrefix + 'library-dash'
include modulePrefix + 'library-hls'
include modulePrefix + 'library-smoothstreaming'
include modulePrefix + 'library-ui'
include modulePrefix + 'testutils'
include modulePrefix + 'testutils-robolectric'
include modulePrefix + 'extension-okhttp'
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 + 'testutils').projectDir = new File(rootDir,
'testutils')
project(modulePrefix + 'testutils-robolectric').projectDir = new
File(rootDir, 'testutils_robolectric')
project(modulePrefix + 'extension-okhttp').projectDir = new
File(rootDir, 'extensions/okhttp')
и в моем build.gradle
api project('exoplayer-library-core')
api project('exoplayer-library-dash')
api project('exoplayer-library-hls')
api project('exoplayer-library-smoothstreaming')
api project('exoplayer-extension-okhttp')
api project('exoplayer-library-ui')
Итак, я успешно собрал библиотеку проигрывателя и отправил aar в менеджер репозитория.В моем клиенте я импортирую свою библиотеку видеоплеера, как это
implementation 'de.my:player-lib:x.x.x'
И я получаю это сообщение
nameOfTheBuildjob:exoplayer-library-core:unspecified