2

我尝试在我的项目中包含kaltura/player-sdk-native-android库。

kaltura 在 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

当我打开构建日志时,我可以看到子模块是作为 aar 构建的,但是如何通过 jitpack 加载它们?

4

1 回答 1

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'
于 2016-05-04T14:39:08.800 回答