我尝试将kaltura/player-sdk-native-android库包含在我的项目中。
kaltura dos在maven上没有提供编译版本。所以我尝试通过jitpack.io
添加它allprojects {
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.github.kaltura:player-sdk-native-android:v2.5.4'
}
但我收到此错误消息
/Users/ralphbergmann/development/android/frameworks/MyApplication/app/build.gradle
Error:Module 'com.github.kaltura:player-sdk-native-android:v2.5.4'
depends on one or more Android Libraries but is a jar
当我open the build log时,我可以看到子模块是构建为aar但是如何通过jitpack加载它们?
答案 0 :(得分:2)
我有一个有效的KalturaSDK集成解决方案:
在依赖项块中为每个必需的子模块添加一行:
compile 'com.github.kaltura.player-sdk-native-android:playerSDK:v2.5.4'
compile 'com.github.kaltura.player-sdk-native-android:googlemediaframework:v2.5.4'