jitsi-android代码下载地址:https://github.com/jitsi/jitsi-android
这个里边已经有编译说明了,但是按照说明没编译成功。在网上找了找原因:
具体编译如下:
1.
打开
cmd
,订位到
jitsi-android
目录,输入
ant setup-libs
,会出现下面错误信息,
编译出现
build.xml:46: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var
解决错误解决办法:ant setup-libs修改成ant -Dsdk.dir=D:\android4\newsdk\adt-bundle-windows-x86-20130729\sdk clean setup-libs compile debug,其中D:\android4\newsdk\adt-bundle-windows-x86-20130729\sdk为android sdk目录。
http://comments.gmane.org/gmane.comp.voip.jitsi.devel/6149
2.在输入ant -Dsdk.dir=D:\android4\newsdk\adt-bundle-windows-x86-20130729\sdk
clean setup-libs compile debug的时候如果出现
> C:\Workspace\jitsi-android\build.xml:70: Problem: failed to create task or> type getbuildtools> Cause: The name is undefined.> Action: Check the spelling.> Action: Check that any custom tasks/types have been declared.> Action: Check that any / declarations have taken place.请更新最新的sdk就ok了。
现在源码可以运行起来了,这是研究的第一步,代码还在研究当中,有想研究openfire和jitsi-android的童鞋们欢迎加我qq787376806来骚扰我。openfire的源码也编译成功了,现在正在研究,有想要编译openfire的童鞋也欢迎加我。
1.
打开
cmd
,订位到
jitsi-android
目录,输入
ant setup-libs
,会出现下面错误信息,
编译出现
build.xml:46: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var
现在源码可以运行起来了,这是研究的第一步,代码还在研究当中,有想研究openfire和jitsi-android的童鞋们欢迎加我qq787376806来骚扰我。openfire的源码也编译成功了,现在正在研究,有想要编译openfire的童鞋也欢迎加我。
解决错误解决办法:ant setup-libs修改成ant -Dsdk.dir=D:\android4\newsdk\adt-bundle-windows-x86-20130729\sdk clean setup-libs compile debug,其中D:\android4\newsdk\adt-bundle-windows-x86-20130729\sdk为android sdk目录。
http://comments.gmane.org/gmane.comp.voip.jitsi.devel/6149
2.在输入ant -Dsdk.dir=D:\android4\newsdk\adt-bundle-windows-x86-20130729\sdk
clean setup-libs compile debug的时候如果出现 > C:\Workspace\jitsi-android\build.xml:70: Problem: failed to create task or> type getbuildtools> Cause: The name is undefined.> Action: Check the spelling.> Action: Check that any custom tasks/types have been declared.> Action: Check that any / declarations have taken place.请更新最新的sdk就ok了。现在源码可以运行起来了,这是研究的第一步,代码还在研究当中,有想研究openfire和jitsi-android的童鞋们欢迎加我qq787376806来骚扰我。openfire的源码也编译成功了,现在正在研究,有想要编译openfire的童鞋也欢迎加我。