Android Studio: How to debug older version of Android SDK step-by-step

前端 未结 6 1051
醉话见心
醉话见心 2021-01-03 20:43

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

6条回答
  •  感情败类
    2021-01-03 21:02

    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.

提交回复
热议问题