Reputation: 287
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
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.
Upvotes: 14
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