简体   繁体   English

jitsi-android无法编译和构建

[英]jitsi-android unable to compile and build

I am trying to compile and run the project 我正在尝试编译并运行该项目
https://github.com/jitsi/jitsi-android on Eclipse by Importing. 通过导入在Eclipse上https://github.com/jitsi/jitsi-android

I have imported the project successfully,Added External Jar files and Fix some of compilation errors. 我已成功导入项目,添加了外部Jar文件并修复了一些编译错误。

When I try to run app, It is giving 当我尝试运行应用程序时,它正在给予

Conversion to Dalvik format failed with error 1 Error on the console.So that I Clean the project, checked the all the jar files from Order and Export tab and build it again. 转换为Dalvik格式失败,错误1控制台出错。因此,我清理项目,检查订单和导出选项卡中的所有jar文件并再次构建它。

but it doesn't work for me. 但它对我不起作用。

Finally, I uncheck the all the libraries from Order and Export tab,build and run it again. 最后,我取消选中Order and Export选项卡中的所有库,再次构建并运行它。

This time it worked for me, but throws noclassdeffounderror Error and App crashed. 这次它对我有用 ,但抛出noclassdeffounderror错误和应用程序崩溃。

I want to compile and run this app. 我想编译并运行这个应用程序。

Please help, Thanks !!! 请帮忙,谢谢!

After struggle, Finally I am able to build compile the project successfully. 经过奋斗,最后我能够成功构建项目。 In the project there are contain build.xml file. 在项目中包含build.xml文件。 So, It need be run using the ant (First need to install the ant and then set the ANDROID_HOME environment variable). 因此,需要使用ant运行(首先需要安装ant然后设置ANDROID_HOME环境变量)。

Don't need to change anything in code related to importing package name. 不需要更改与导入包名相关的代码中的任何内容。 It will be fixed the error automatically after build. 它将在构建后自动修复错误。 In some classes may get the IOException error(Need to change to Exception type). 在某些类中可能会收到IOException错误(需要更改为Exception类型)。

Please follow the below step:- 请按照以下步骤操作: -

  1. After updating library bundles, when building for the first time or after clean: 更新库包后,第一次构建或清理后:

ant setup-libs ant setup-libs

  1. To make the project: 制作项目:

ant make 蚂蚁

  1. To rebuild (clean and make): 要重建(清洁和制作):

ant rebuild 蚂蚁重建

  1. To run the project (will install the apk and will run it on default test device): 要运行该项目(将安装apk并将在默认测试设备上运行它):

ant run 蚂蚁跑

  1. To make and run the project after modification: 修改后制作和运行项目:

ant make run 蚂蚁跑

I hope this will help to others. 我希望这对别人有帮助。 Thanks!! 谢谢!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM