简体   繁体   English

在编译jitsi项目时,转换为Dalvik格式失败,错误1

[英]Conversion to Dalvik format failed with error 1 while compiling jitsi project

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 unchecked the all the libraries from Order and Export tab,build and run it again. 最后,我取消选中Order and Export选项卡中的所有库,再次构建并运行它。

But still its giving me same error and my application is getting crashed every time i run it. 但它仍然给我同样的错误,我的应用程序每次运行时都会崩溃。

Any help will be appreciated , i really want to run this application. 任何帮助将不胜感激,我真的想运行这个应用程序。

here is my libs folder screenshot:- 这是我的libs文件夹截图: - 在此输入图像描述

I've had the same problem once. 我曾经遇到过同样的问题。

Here is what I found out when I was trying to solve my issue: 这是我在尝试解决问题时发现的:

  • The error is caused when there are two Classes/Packages with the same name (For example when LibaryX has Class org.abcSample and LibaryY has class org.abcSample aswell) 当有两个具有相同名称的类/包时会导致错误(例如,当LibaryX具有类org.abcSample且LibaryY具有类org.abcSample时)
  • Different approaches which worked for some people (So if you have the error yourself, make sure to test following things out): 对某些人有用的不同方法 (因此,如果您自己有错误,请确保测试以下内容):

A) Two Libaries have the exactly same package/class-> Delete the class in one of the Libaries A)两个Libary具有完全相同的包/类 - >删除其中一个Libaries中的类

B) One Jar is detected twice because it's for example in the project source folder and in the Java Build Path Libaries aswell B)一个Jar被检测两次,因为它在例如项目源文件夹和Java Build Path Libaries中也是如此

C) Updating Proguard often fixes it aswell (Put the new Proguard jars in [Android SDK folder]\\tools\\proguard\\lib) C)更新Proguard经常修复它(将新的Proguard罐子放在[Android SDK文件夹] \\ tools \\ proguard \\ lib中)

D) Cleaning the Project also helped many people (you already did that, so that won't be your solution) D)清理项目也帮助了很多人(你已经做过了,所以这不是你的解决方案)

When I had this issue myself it was caused because I did not follow the instructions of one of the libaries that I used. 当我自己遇到这个问题时,它是因为我没有按照我使用的其中一个库的说明而引起的。 After following the libary instructions step by step, everything worked fine again. 按照一步一步的说明后,一切都运行良好。

Greetings Felix 问候菲利克斯

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

相关问题 Android项目:转换为Dalvik格式失败,错误1 - Android project: Conversion to Dalvik format failed with error 1 如何解决转换为Dalvik格式失败并出现错误 - How to solve the Conversion to Dalvik format failed with error 在Mac上的Eclipse上,转换为Dalvik格式失败,并出现错误1 - Conversion to Dalvik format failed with error 1 on Eclipse for Mac 添加jar文件导致Android项目错误:转换为Dalvik格式失败,错误为1 - Adding jar file cause Android project error: Conversion to Dalvik format failed with error 1 将Google Play服务添加到项目后,错误:转换为Dalvik格式失败 - After adding Google Play Services to project, Error: Conversion to Dalvik format failed 转换为Dalvik格式失败,并在libgdx中出现错误1奇怪的错误 - Conversion to Dalvik format failed with error 1 Weird error in libgdx Android Grid View转换为Dalvik格式失败错误 - Conversion to Dalvik format failed error for Android Grid View 获取错误:转换为Dalvik格式失败:无法执行dex: - Getting Error: conversion to Dalvik format failed: Unable to execute dex: 自facebook SDK以来,转换为Dalvik格式失败,错误1 - Conversion to Dalvik format failed with error 1 since facebook SDK PhoneGap条码扫描器插件未导出,原因是“转换为dalvik格式失败,错误为1” - PhoneGap barcodeScanner plugin not exporting due to “conversion to dalvik format failed with error 1”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM