This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Delete libs directory as an entry in src to deal with the Multiple dex files error.#1342
Merged
WonderCsabo merged 1 commit intoandroidannotations:developfrom Mar 15, 2015
Merged
Conversation
The `libs` directory added as entry of src in .classpath will cause `Multiple dex files define` error, such as `Multiple dex files define Lorg/androidannotations/annotations/AfterExtras;`. The concrete reason is Eclipse will copy `jar` file in the 'libs` directory to `bin/classes`dirrectory, such as follows: F:\workspace\HelloWorldEclipse\bin>tree /F │ androidannotations.log │ AndroidManifest.xml │ R.txt │ resources.ap_ │ ├─classes │ │ androidannotations-api-3.1.jar │ │ │ ├─android │ │ └─support │ │ └─v7 │ └─org │ └─androidannotations ├─dexedLibs │ android-support-v4-259169c26135dabc8292fb369fe13d18.jar │ android-support-v7-appcompat-fe8356d7d51ca5e59edf416a1b47d8dc.jar │ androidannotations-api-3.1-4d54da3f520ba51cf94de9910532a000.jar │ appcompat_v7-b77d366902bda690e3b92b10d6dba35c.jar │ └─res └─crunch So, delete the entry.
WonderCsabo
added a commit
that referenced
this pull request
Mar 15, 2015
Delete libs directory as an entry in src to deal with the Multiple dex files error.
Member
|
You are totally right, thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
libsdirectory added as entry of src in .classpath will causeMultiple dex files defineerror, such asMultiple dex files define Lorg/androidannotations/annotations/AfterExtras;.The concrete reason is the Eclipse will copy
jarfile in thelibsdirectory to thebin/classesdirectory, such as follows:So, delete the entry.