Which aSmack jar file (android-14, android-15,

2019-05-21 18:53发布

问题:

I am stuck between two different errors.

  1. Unable to instantiate activity ComponentInfo

  2. unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray

In order to fix one I go with solution as mentioned in 1 , and it leads to second error , and vice versa .

1st solution instructs to remove private libraries after going into buildpath , other ask to check mark private libraries.

There is no problem with android - manifest , as there is activity Main specified

My app was working fine until I included asmack jar files to learn xmpp messaging . Now its stuck .

  • Downloaded asmack jars from : http://asmack.freakempire.de/0.8.10/

I had multiple smack jar files imported in the project that was causing such loop of errors . Now I want to know which version asmack should be imported as to support range of sdks as I am not able to import all jars which causes error as above.

回答1:

It doesn't matter, you just need to add one aSmack jar.