我是一名使用 Eclipse IDE 的老开发人员,现在我切换到 Android Studio。我想使用下面的教程
直播库 http://www.androidhive.info/2014/06/android-streaming-live-camera-video-to-web-page/http://
我想将 libstreaming 库导入到 Android Studio。
自由流 https://github.com/fyhertz/libstreaming
在...的帮助下Fritte对此页面的评论 https://github.com/fyhertz/libstreaming/issues/153,我执行了以下操作将 libstreaming 导入到我的 Android Studio (v1.5.1) 项目中:
- 创建一个新的Android项目
- Clone
libstreaming
进入另一个目录
- 在您的新 Android 项目中,文件 > 新建 > 导入模块 >
Path to libstreaming
然后,您可以通过添加 libstreaming 作为应用程序中的依赖项compile project(':libstreaming')
到 build.gradle (Module:app) 文件的依赖项部分。例如,我的现在看起来像这样:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile project(':libstreaming')
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)