Skip to content

Commit

Permalink
Fix MethodCodeTooLargeException
Browse files Browse the repository at this point in the history
Is there a better solution?
  • Loading branch information
ThexXTURBOXx committed Aug 26, 2022
1 parent 84c8f31 commit e073500
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 13 deletions.
2 changes: 1 addition & 1 deletion d2j-base-cmd/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description = 'a simple cmd parser'

dependencies {
implementation group: 'org.ow2.asm', name: 'asm', version: '9.3'
implementation fileTree(dir: '../libs', include: '*.jar')
}
17 changes: 14 additions & 3 deletions d2j-jasmin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,20 @@ dependencies {
implementation(group: 'org.antlr', name: 'antlr-runtime', version: '3.5.3') {
exclude(module: 'stringtemplate')
}
implementation group: 'org.ow2.asm', name: 'asm', version: '9.3'
implementation group: 'org.ow2.asm', name: 'asm-tree', version: '9.3'
implementation group: 'org.ow2.asm', name: 'asm-util', version: '9.3'
implementation fileTree(dir: '../libs', include: '*.jar')
// implementation group: 'org.ow2.asm', name: 'asm', version: '9.3' // Fixed MethodCodeTooLargeException
implementation(group: 'org.ow2.asm', name: 'asm-analysis', version: '9.3') {
exclude(module: 'asm')
}
implementation(group: 'org.ow2.asm', name: 'asm-commons', version: '9.3') {
exclude(module: 'asm')
}
implementation(group: 'org.ow2.asm', name: 'asm-tree', version: '9.3') {
exclude(module: 'asm')
}
implementation(group: 'org.ow2.asm', name: 'asm-util', version: '9.3') {
exclude(module: 'asm')
}
implementation project(':d2j-base-cmd')
antlr 'org.antlr:antlr:3.5.3'
}
Expand Down
2 changes: 1 addition & 1 deletion d2j-smali/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'antlr'

dependencies {
implementation 'org.antlr:antlr4-runtime:4.9.3'
implementation 'org.antlr:antlr4-runtime:4.9.3' // Newer versions only for Java 11+
implementation project(':dex-reader')
implementation project(':dex-reader-api')
antlr 'org.antlr:antlr4:4.9.3'
Expand Down
17 changes: 13 additions & 4 deletions dex-tools/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,19 @@ dependencies {
implementation project(':dex-reader')
implementation project(':d2j-base-cmd')
implementation fileTree(dir: '../libs', include: '*.jar')
implementation group: 'org.ow2.asm', name: 'asm', version: '9.3'
implementation group: 'org.ow2.asm', name: 'asm-tree', version: '9.3'
implementation group: 'org.ow2.asm', name: 'asm-util', version: '9.3'
implementation group: 'org.ow2.asm', name: 'asm-commons', version: '9.3'
// implementation group: 'org.ow2.asm', name: 'asm', version: '9.3' // Fixed MethodCodeTooLargeException
implementation(group: 'org.ow2.asm', name: 'asm-analysis', version: '9.3') {
exclude(module: 'asm')
}
implementation(group: 'org.ow2.asm', name: 'asm-commons', version: '9.3') {
exclude(module: 'asm')
}
implementation(group: 'org.ow2.asm', name: 'asm-tree', version: '9.3') {
exclude(module: 'asm')
}
implementation(group: 'org.ow2.asm', name: 'asm-util', version: '9.3') {
exclude(module: 'asm')
}
}

task bin_gen(type: JavaExec) {
Expand Down
17 changes: 13 additions & 4 deletions dex-translator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,20 @@ dependencies {
api project(':dex-reader')
api project(':dex-ir')
api project(':d2j-base-cmd')
api group: 'org.ow2.asm', name: 'asm', version: '9.3'
api group: 'org.ow2.asm', name: 'asm-tree', version: '9.3'
api group: 'org.ow2.asm', name: 'asm-util', version: '9.3'
api group: 'org.ow2.asm', name: 'asm-commons', version: '9.3'
api fileTree(dir: '../libs', include: '*.jar')
// api group: 'org.ow2.asm', name: 'asm', version: '9.3' // Fixed MethodCodeTooLargeException
api(group: 'org.ow2.asm', name: 'asm-analysis', version: '9.3') {
exclude(module: 'asm')
}
api(group: 'org.ow2.asm', name: 'asm-commons', version: '9.3') {
exclude(module: 'asm')
}
api(group: 'org.ow2.asm', name: 'asm-tree', version: '9.3') {
exclude(module: 'asm')
}
api(group: 'org.ow2.asm', name: 'asm-util', version: '9.3') {
exclude(module: 'asm')
}
testImplementation project(':d2j-smali')
testImplementation project(':d2j-jasmin')
}
Binary file added libs/asm-9.3-mctle.jar
Binary file not shown.

0 comments on commit e073500

Please sign in to comment.