How can I add a linked source folder in Android Studio?

In your build.gradle file, add the following to the end of the Android node:

android {
    ....
    ....

    sourceSets {
        main.java.srcDirs += 'src/main/<YOUR DIRECTORY>'
    }

}

Leave a Comment