Android Studio:如何逐步调试旧版Android SDK [英] Android Studio: How to debug older version of Android SDK step-by-step
本文介绍了Android Studio:如何逐步调试旧版Android SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
这里最好的解决方案是将编译SDK版本设置为20.因此,构建工具将使用SDK版本20编译项目,您可以调试应用程序。
当您在项目中使用多个模块时,需要为每个模块设置相同的编译SDK版本。
I have an Android project targetting the Android SDK v21. Now I need to debug it on a device with Android 4.4 (i.e. SDK v20). How do I tell Android Studio to attach an older version of the source to the internal classes so that I can step through them?
解决方案
Here the best solution is to set compile SDK version to 20. So that build tools will compile your project using SDK version 20 and you can debug your app.
When you use several modules in your project you need to set same compile SDK version to each module.
这篇关于Android Studio:如何逐步调试旧版Android SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文