【原创】如何在Android Studio下调试原生安卓Framework层面的源代码
2016-03-18 17:54
495 查看
1. Open Existing Android Studio Project.
2. 打开后, Projects -> Android 里面是空的。 这时候,需要选到 Projects-> Project面板,右键-> Open Module Settings.
3. 点击Settings上面的+号,然后选择Android, 点击OK。
做完上述步骤,在Run下面应该就能找到 Attach Debugger to Android Process了。
发现调试时候似乎没有进程可供选择,尝试在Modules中设置SDK后,出现可以附加到的进程。 如果所选择的SDK没有源代码,当跳转时会跳转到Decompile的版本,要是有源代码,会跳转到源代码。
参考:
http://blog.csdn.net/tuhuolong/article/details/46563739
http://www.cnblogs.com/Lefter/p/4176991.html
2. 打开后, Projects -> Android 里面是空的。 这时候,需要选到 Projects-> Project面板,右键-> Open Module Settings.
3. 点击Settings上面的+号,然后选择Android, 点击OK。
做完上述步骤,在Run下面应该就能找到 Attach Debugger to Android Process了。
发现调试时候似乎没有进程可供选择,尝试在Modules中设置SDK后,出现可以附加到的进程。 如果所选择的SDK没有源代码,当跳转时会跳转到Decompile的版本,要是有源代码,会跳转到源代码。
参考:
http://blog.csdn.net/tuhuolong/article/details/46563739
http://www.cnblogs.com/Lefter/p/4176991.html
相关文章推荐
- 10_Android的消息机制
- How to create a custom notification on Android
- 文章标题android软件安全与逆向分析 第二章练习笔记
- android 开发之 Rx开发技术总结
- Android小技巧——EditText
- ImageLoader 的一些配置
- 【Android问题集】ListView的item的listSelector在第一次时不起作用
- 【转】android布局--Android fill_parent、wrap_content和match_parent的区别
- Android中为什么需要服务?
- android private libraries 添加源码
- Android:RecyclerView详解(ListView,GirdView,瀑布流)
- 【转】在程序中设置android:gravity 和 android:layout_Gravity属性
- [IMX6Q][Android5.1]androidboot.xxx如何转换成ro.boot.xxx
- Android Studio使用技巧:导入第三方类库
- 【转】android gravity属性 和 weight属性
- Android与html5交互 -- JavascriptInterface
- Android:AIDL进程之间的通信
- Android 屏幕适配(二)增强版百分比布局库(percent-support-lib)
- Android开发中Handler的经典总结
- Android 屏幕适配(一)百分比布局库(percent-support-lib) 解析与扩展