Android Studio:如何逐步调试旧版Android SDK [英] Android Studio: How to debug older version of Android SDK step-by-step

查看:122
本文介绍了Android Studio:如何逐步调试旧版Android SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个针对Android SDK v21的Android项目。现在我需要使用Android 4.4(即SDK v20)在设备上进行调试。如何告诉Android Studio将旧版本的源附加到内部类,以便我可以通过它们?

解决方案

这里最好的解决方案是将编译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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆