Comments (6)
The SmaliLexer is auto generate during the maven building progress. it is located under d2j-smali/build/generated-sources/antlr3
Please refer https://github.com/pxb1988/dex2jar/wiki/BuildFromSource for building instruction.
from dex2jar.
@pxb1988 I use Gradle on Android Studio to build this project, is it OK?
And the doc https://github.com/pxb1988/dex2jar/wiki/BuildFromSource seems to be out of date, cause the project has gradle script now.
from dex2jar.
Android Studio is Intellij IDEA based. it should works, here is a tutorial for import dex2jar into Integllij IDEA
- Click
import Project
, and then select dex2jar folder
- Select
Import project from external model
->Gradle
, and ClickNext
- Select
Use customizable gradle wrapper
, and clickFinish
- Wait patiently
- after the import, Click
Gradle
on the right side of the Intellij IDEA windows. navigate to
dex2jar/dex2jar/Tasks/other/antlr2java
, right click, then selectRun '/home/...'
- now click the
Project Structure
icon on the toolbar
- Remove the exclusion of build folder
selectModules
->d2j-smali
->build
, then ClickExcluded
- Select
build/generated-sources/antlr
and ClickSources
- Click the
Depedencies
ofd2j-smali
Click the+
icon on the right or bottom side, then selectModule Dependency
Selectd2j-base-cmd
anddex-writer
, then ClickOk
- Repeat Step 7,8 to setup antlr code for
d2j-jasmin
- Repeat Step 9 to add
d2j-base-cmd
toDepedencies
ofd2j-jasmin
- Now the code is ready on IDEA, have fun !
from dex2jar.
@pxb1988
Sorry, it is a bit Complicated.
- Cannot find d2j-base-cmd and dex-writer on the Depedencies of d2j-smali.
- After add d2j-base-cmd to the Depedencies of d2j-jasmin, it still cannot import
JasminLexer
onJasmin2JarCmd.java
- And, What to do next after step
10
?
from dex2jar.
update step 9,10,11
update https://github.com/pxb1988/dex2jar/wiki/BuildFromSource
from dex2jar.
@pxb1988
Bingo. Thanks!
from dex2jar.
Related Issues (20)
- Build failing: trying to load from wrong JRE... HOT 1
- com.googlecode.d2j.DexException: fail convert code for
- java.lang.ClassCastException: class com.googlecode.dex2jar.ir.expr.InvokePolymorphicExpr cannot be cast to class com.googlecode.dex2jar.ir.expr.InvokeExpr (com.googlecode.dex2jar.ir.expr.InvokePolymorphicExpr and com.googlecode.dex2jar.ir.expr.InvokeExpr are in unnamed module of loader 'app') HOT 1
- READ THIS **BEFORE** CREATING ISSUES!
- Detail Error Information in File .\jioJoin-error.zip Please report this file HOT 3
- Dex2Jar issue A13 HOT 2
- READ THIS **BEFORE** CREATING ISSUES! HOT 1
- Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded HOT 1
- jar2dex min sdk version issue HOT 4
- decompile wechat8.0.32 error HOT 1
- E:\resources\classes2.dex
- IndexOutOfBoundsException had happened in using dex-tools-v2.4 tool to decode jar package HOT 1
- java.lang.RuntimeException: fail exe a8 = a3 HOT 1
- error on decompiling HOT 1
- Detail Error Information in File .\00O000ll111l_0-error.zip HOT 1
- 变异过程中遇到的错误 HOT 1
- Method too large during exception HOT 1
- java.lang.IllegalArgumentException: UTF8 string too large HOT 2
- dex2jar: use classes as android library? HOT 4
- So... this thing doesn't work on Windows at all? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dex2jar.