金山云Android播放SDK(KSYUN Live Streaming player SDK),支持RTMP HTTP-FLV HLS 协议(supporting RTMP HTTP-FLV HLS protocol),直播延时2-3秒(Living delay 2 or 3 seconds),supporting jitter control,software&hardware decode
856
stars
246
forks
source link
新建工程导入库时无法找到player只能找到media[已解决] #102
Closed
lczxxx123 closed 7 years ago
三分钟后自己来更新…… 简直被自己蠢哭了…… 竟然把demo工程当成库了…… 然而找不到issues的删除键和close键在哪……
--------------------------------------------------分割线----------------------- 你好 我对android还不是很熟悉,在写activity的时候发现,如果只import com.ksyun.media.player.前缀的库的话没有什么问题,但是import com.ksyun.player.前缀的库就会提示无法resolved。 我是照着demo的方式来做的,把playerlib和src/main/libs拷贝到了新工程的相应位置。gradle也是复制的,只是修改了一下sdk版本(最小版本依然是16)。下面附上app的gradle,不知道是不是gradle的问题?
ps:另外还有一个新手问题:要使用这个库的话,主要是不是就是要 compile fileTree(include: '/so', dir: 'libs/armeabi-v7a'),compile fileTree(include: '/so', dir: 'libs/arm64-v8a'), compile project(':playerlib') 这三步就可以使用了?
-------------------------------------------------分割线-------------------- apply plugin: 'com.android.application'
android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.example.admin.acase" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" ndk { abiFilters "armeabi-v7a","arm64-v8a" } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets.main { jniLibs.srcDirs 'src/main/libs' jni.srcDirs = [] // This prevents the auto generation of Android.mk } }
dependencies { compile fileTree(include: ['.jar'], dir: 'libs') compile fileTree(include: '/so', dir: 'libs/armeabi-v7a') compile fileTree(include: '*/so', dir: 'libs/arm64-v8a') compile files('src/main/libs/zxing.jar') compile files('src/main/libs/bugly_crash_release.jar') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:25.2.0' compile 'com.android.support:design:25.2.0' compile project(':playerlib') }