Set different minSdkVersion for testAndroid than for main app

11 views
Skip to first unread message

snehal

unread,
Aug 3, 2015, 10:23:58 AM8/3/15
to android-platform

Is it possible to set a different minSdkVersion for tests flavour than for the app itself via gradle build? I ask because I want to use the new Test Support Library and UI Automator for testing. However, this is only available on API 18+. At the same time, I still want to support older versions of Android. What do I need to add to my build.gradle file in order to do this?

 


Reply all
Reply to author
Forward
0 new messages