Trying to follow this post How to add a linked source folder in Android Studio?,
I tried
sourceSets {
main.java.srcDirs += 'src/main/\\\\10.11.12.13\\me\\workspace\\myapp\\src'
}
However it does not display the source folder. If I do
sourceSets {
main.java.srcDirs += '\\\\10.11.12.13\\me\\workspace\\myapp\\src'
}
Then the sources are visible but outside my project app tree. How to get them inside?
答案 0 :(得分:0)
这对我有用:
在app / main / build.gradle中
android {
...
sourceSets {
main.java.srcDirs += '\\\\\\10.11.12.13\\me\\workspace\\myapp\\src'
}
}