【发布时间】: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”文件夹?我在哪里可以找到它?
-
很高兴它解决了你的问题:)