2

when add quickblox-android-0.8.1.jar in My Project libs folder then I'm getting an error. I have done all related for it like update Adt to 21, bin delete and clean, restart Eclipse etc but not working. Also in my project 13 jar files contains. here Only quickblox-android-0.8.1.jar is getting issue.dependency issue and Multiple dex files issue.pls help me. facing issue from last 4 days

below jar files using in Project libs folder contains

    apache-mime4j-0.6.jar
    asmack-android-7
    gcm.jar
    httpmime-4.1.2.jar
    jtwitter.jat
    PayPal_MPL.jar
    quickblox-android-0.8.1.jar
    signpost-commonshttp4-1.2.1.1.jar
    signpost-core-1.2.1.1.jar
    signpost-jetty6-1.2.1.1.jar
    twitter4j-core-android-2.2.6.jar
    universal-image-loader-1.6.1-with-src.jar
    android-support-v4.jar

error log

[2013-05-10 17:59:02 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart;
[2013-05-10 17:59:02 - Lockme] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart;
[2013-05-10 17:59:20 - Dex Loader] Unable to execute dex: Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart;
[2013-05-10 17:59:20 - Lockme] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart;

In simple when i'm adding this jar file then project not working and when Remove this jar file from Project then load (run) project well and able to install on device and Emulator, this may simple issue but coudnot resolve it.

Project.properties

# Project target.
target=Google Inc.:Google APIs:17
android.library.reference.3=../ImageViewTouch
android.library.reference.4=../android-pulltorefresh-master/pulltorefresh
android.library.reference.1=../android-mapviewballoons
android.library.reference.2=../../Android/android-sdk-windows/android-sdk-windows/android-sdk-windows/android-sdk-windows/extras/google/google_play_services/libproject/google-play-services_lib

java Buildenter image description here

Java Order - and Exportenter image description here

Error Image enter image description here

4

3 回答 3

3

Here is a list of libs which uses Android QB SDK http://quickblox.com/developers/Android#How_to:_add_SDK_to_IDE_and_connect_to_the_cloud

You can remove your lib and it will be used from QB SDK

no need in libs except Quick blox see

于 2013-05-14T13:05:26.470 回答
2

确保你没有在两个地方都添加它(libs 文件夹和项目属性=>java 构建路径)。它应该在其中一个,否则你会得到 DEX 错误。我刚刚花了两天时间来寻找与 google maps.jar 完全相同的(外观)问题。最终,结果证明是这种双重参考才是罪魁祸首。不确定这是您面临的问题,但这是一个很好的起点:)

于 2013-05-13T06:04:59.120 回答
0

简单的答案Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart;

我建议您在项目中的两种类型库引用中出现此问题。一种用于JavaBuildpath ---> Libraies

另一个在JavaBuildpath ----> Order and Export--> Android 依赖项中。

所以我建议首先删除依赖项,然后在 clean 和 run.problem slove 之后。

于 2013-05-14T08:38:25.400 回答