【问题标题】:android ant build fails on ant release commandandroid ant build 在 ant release 命令上失败
【发布时间】:2011-09-20 14:56:54
【问题描述】:

我有 linux 盒子。我有它的项目。我运行了“android update project”,它运行良好。

尝试使用“ant -v release”它会抛出如下错误:-

    [javac] /home/sto/umakant/dashboard/data/android_apps/lol/project/src/com/glam/lol/Channels.java:90: error while writing <anonymous com.glam.lol.Channels$1>: could not create parent directories
    [javac]             lv.setOnItemClickListener(new OnItemClickListener() {
    [javac]                                                                 ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
/home/sto/umakant/android-sdk-linux_x86/tools/ant/main_rules.xml:384: Compile failed; see the compiler error output for details.

我不明白它有什么问题。为什么它不允许我构建应用程序?谁能帮帮我。

【问题讨论】:

  • 看起来像是权限问题。检查您对/home/sto/umakant/dashboard/data/android_apps/lol/project/的写入权限
  • 我在winscp中看到了。对于项目文件夹它的 :- rwxr-xr-x 和 Channels.java 它的 :- rw-r--r--
  • 你必须确保你可以写入你的“ant-built”文件夹和子文件夹(我认为你有一个只读的子文件夹)
  • “ant-built”文件夹?我在哪里可以找到它?
  • 很高兴它解决了你的问题:)

标签: android apache ant build


【解决方案1】:

这是权限问题。一些在项目中没有写权限的文件夹。 现在权限更正后就可以正常使用了。

【讨论】:

    猜你喜欢
    • 2013-10-29
    • 1970-01-01
    • 1970-01-01
    • 2016-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-08
    相关资源
    最近更新 更多