3

I have created build.xml in build folder. I want to create .apk file using build script. I have used the required code from build.xml file stored under /android-sdks/tools/ant folder.

Now when I run debug target; I am getting "The system cannot find the file specified" error for target; since now it cannot find AndroidManifest.xml file under /build folder.

Can anybody tell me where can I specify path of AndroidManifest.xml for android specific ant targets?

Thanks in advance.

4

1 回答 1

1

恐怕你不能,至少(仍然)还不能。

gettype.java(参见例如here)不检查manifest.file 属性,而只是一个内部常量

        File manifest = new File(antProject.getBaseDir(), SdkConstants.FN_ANDROID_MANIFEST_XML);

(另见这篇关于使用同一代码库的多个变体的博客条目,他的清单文件也有同样的问题,需要复制它们来克服它。)

于 2014-01-26T15:41:09.240 回答