Git Product home page Git Product logo

Comments (6)

pxb1988 avatar pxb1988 commented on July 26, 2024

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.

Honghe avatar Honghe commented on July 26, 2024

@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.

pxb1988 avatar pxb1988 commented on July 26, 2024

Android Studio is Intellij IDEA based. it should works, here is a tutorial for import dex2jar into Integllij IDEA

  1. Click import Project, and then select dex2jar folder
    image
  2. Select Import project from external model -> Gradle, and Click Next
    image
  3. Select Use customizable gradle wrapper, and click Finish
    image
  4. Wait patiently
    image
  5. after the import, Click Gradle on the right side of the Intellij IDEA windows. navigate to
    dex2jar/dex2jar/Tasks/other/antlr2java, right click, then select Run '/home/...'
    image
    image
  6. now click the Project Structure icon on the toolbar
    image
  7. Remove the exclusion of build folder
    selectModules -> d2j-smali -> build, then Click Excluded
    image
  8. Select build/generated-sources/antlr and Click Sources
    image
  9. Click the Depedencies of d2j-smali
    Click the + icon on the right or bottom side, then select Module Dependency
    image
    Select d2j-base-cmd and dex-writer, then Click Ok
    image
    image
  10. Repeat Step 7,8 to setup antlr code for d2j-jasmin
  11. Repeat Step 9 to add d2j-base-cmd to Depedencies of d2j-jasmin
  12. Now the code is ready on IDEA, have fun !

from dex2jar.

Honghe avatar Honghe commented on July 26, 2024

@pxb1988
Sorry, it is a bit Complicated.

  1. Cannot find d2j-base-cmd and dex-writer on the Depedencies of d2j-smali.
    image
  2. After add d2j-base-cmd to the Depedencies of d2j-jasmin, it still cannot import JasminLexer on Jasmin2JarCmd.java
    image
  3. And, What to do next after step 10?

from dex2jar.

pxb1988 avatar pxb1988 commented on July 26, 2024

update step 9,10,11
update https://github.com/pxb1988/dex2jar/wiki/BuildFromSource

from dex2jar.

Honghe avatar Honghe commented on July 26, 2024

@pxb1988
Bingo. Thanks!

from dex2jar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.