I\'m using a standard Android Studio directory structure and I created different build types:
buildTypes { debug { runProguard false packageN
Add this to your module's build.gradle file:
sourceSets { main.java.srcDirs += 'src/preview/java' main.java.srcDirs += 'src/release/java' }