After Adding quickblox-android-0.8.1.jar file in project libs folder and getting error when install on device

StackOverflow https://stackoverflow.com/questions/16482426

  •  21-04-2022
  •  | 
  •  

Вопрос

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

Это было полезно?

Решение

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

Другие советы

make sure you're NOT adding it in BOTH places (libs folder AND project properties=>java build path). It should be in one or the other, otherwise you will get DEX errors. I just spent two days chasing down the exact same (looking) problem with the google maps.jar. In the end all it was was this double reference that turned out to be the culprit. Not sure that's the problem you're facing, but it's a good place to start :)

Simple answer for Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart;

i advice you to this problem occur in two type lib references in project.one is use in the JavaBuildpath ---> Libraies

and another is in JavaBuildpath ----> Order and Export--> Android dependencis.

so i advice first remove the dependencies and after clean and run.problem slove.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top