How to add a linked source folder in Android Studio?

前端 未结 6 1826
野的像风
野的像风 2020-11-28 05:38

In Eclipse I can add a source folder to my android project as a \"linked source folder\". How do I achieve the same thing in Android Studio?

Or is it possible to ad

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 06:07

    in your build.gradle add the following to the end of the android node

    android {
        ....
        ....
    
        sourceSets {
            main.java.srcDirs += 'src/main/'
        }
    
    }
    

提交回复
热议问题