User
User

Reputation: 287

How to view Dalvik bytecodes for my app in Android Studio?

Is it possible to view Dalvik bytecode for my app in Android Studio? If so, how?

Update:

My app is written in Java using Android Studio and I want to see my Java classes byte code, which is also known as Dalvik bytecode, (not the source code) inside Android Studio.

Upvotes: 14

Views: 5705

Answers (2)

Jan Slominski
Jan Slominski

Reputation: 2978

It is now possible to inspect bytecode directly from Android Studio (Since version 3.0 Canary 1). Go to Build-> Analyze APK..., select your APK file. Navigate too class you are interested in, right click on it and select "Show Bytecode". You can also use your mapping file if your APK file is generated with Proguard.

Android Studio Show Bytecode

Upvotes: 14

Ferdaus ITS
Ferdaus ITS

Reputation: 1

the apk-package of you app contains the file classes.dex which you can disassemble using tools like baksmali to get the Dalvik bytecode.

Upvotes: 0

Related Questions