Error message

  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/drupal/includes/
  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of /var/www/drupal/includes/

Counting mumber of methods on jars found in a directory

Very very very helpful when the apk reach the max of 64K method limit. "java.lang.IllegalArgumentException: Dex method index overflow [65643]"

for jar in `find . -type f -name "*.jar"`; do
echo $jar
dx --dex --output=temp.dex $jar 2> /dev/null
jarmethods=$(cat temp.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"')
echo $jarmethods
echo $totalmethods

Here is a list of libraries that worth mentioning:

  • 8112 methods
  • rhino-1.7 7323 methods
  • jackson-mapper-asl-1.9.2 5132 methods
  • support-v4-19.0.1 5301 methods
  • 5300 methods
  • google-api-services-drive-v2 2643 methods
  • gson-2.1 1080 methods



    Use this awesome java tool to effectively analyze the number of methods in an apk.