Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dexedLibs folder in android project

So I have noticed fairly recently a folder within my Phonegap/Android project (project/bin/dexedLibs) and this folder contains two .jar files. After scratching around the internet, I found one website in which the author says ADT version 21 puts "pre-dexed Libs" in the project to enable faster build times.

I did upgrade recently to ADT 21 and was just wondering if anybody else can give me more information on what these "pre-dexed Libs" really do? I haven't been able to find any other useful info on the net.

like image 474
Boyds Avatar asked Nov 27 '12 14:11

Boyds


2 Answers

I have an Android project with about 20 external libraries. Before ADT 21, every time I changed source code it took ages to rebuild the app. Now it's quite fast!

I guess the reason is that, before ADT 21, it compiled the external libraries into dex code every time you hit the "Run" button in eclipse. Now it will compile the dex code for the external libraries only once (until they change) and use the prebuild libraries for later "Run"s.

I like that feature!

like image 135
Jane Avatar answered Oct 02 '22 14:10

Jane


Be aware! I've just spent an hour to find out why I get the exception:

Caused by: java.lang.NoSuchMethodError: 

The reason was because I changed my lib jar to new jar (the same name) with working method, and ADT 21 didn't prepare the new one in dexedLibs.

So just delete bin dir and Eclipse will recreate this.

like image 30
AppiDevo Avatar answered Oct 02 '22 14:10

AppiDevo