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

前端 未结 6 1053
醉话见心
醉话见心 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

    You need to open module settings (Right click on your app module and select Open Module Settings or just select module and press ⌘ + ↓ on Mac)

    And select compileSdk and buildTools to v20

    Another way to do it is to open build.gradle file for the "app" module to change compileSdk and buildTools.

提交回复
热议问题