我使用ant工具构建android库项目,我需要指定多个源目录.
我试图通过在ant.properties文件中添加这些行来指定多个源目录
source.dir=src:src2
source.dir=src;src2
Run Code Online (Sandbox Code Playgroud)
但是无法在两种情况下构建,在这两种情况下都会生成.class,但是在创建jar文件时我遇到了这个错误
BUILD FAILED
C:\Program Files\Android\android-sdk\tools\ant\build.xml:681: The following error occurred while executing this line:
C:\Program Files\Android\android-sdk\tools\ant\build.xml:749:
C:\workarea\Android\Packages\test\src;src2 does not exist.
任何人都可以告诉我如何在ant.properties中指定多个源目录 来构建Android库项目?