Different resource folders for separate tablet & mobile APKs
问题 I am building an app that has two APKs: one for tablets and the other for mobiles. The tablet version won't use the drawable of the mobile APK and vice versa. I want to do this because of APK size. Can anyone give me pointers how to achieve this? I tried to use flavors for this but it can make the two APK. 回答1: You can use Android Flavors for this purpose. android { ... defaultConfig {...} buildTypes {...} productFlavors { tablet { applicationIdSuffix ".tablet" versionNameSuffix "-tablet" }