Created
January 29, 2014 18:38
-
-
Save ebridges/8694125 to your computer and use it in GitHub Desktop.
How many methods in a jar file. http://www.betaful.com/2013/10/android-too-many-methods-dex-fails/
This file contains 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
mkdir my-jars | |
cp **/*.jar my-jars | |
ANDROID_HOME=/opt/android-sdk | |
for file in my-jars/*.jar; do | |
echo $file; | |
${ANDROID_HOME}/build-tools/17.0.0/dx --dex --output=temp.dex $file 2> /dev/null | |
cat temp.dex| head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment