You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jacob Weber (JIRA)" <ji...@apache.org> on 2014/03/11 21:22:42 UTC
[jira] [Created] (CB-6226) Can't build with ant: ant-build
directory
Jacob Weber created CB-6226:
-------------------------------
Summary: Can't build with ant: ant-build directory
Key: CB-6226
URL: https://issues.apache.org/jira/browse/CB-6226
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 3.4.0
Reporter: Jacob Weber
Priority: Minor
For various reasons, I'm not using the CLI tools to build my Cordova apps.
On Android, if I create a new app (using the CLI tool), and run "ant debug", I get various errors like this:
{noformat}
-compile:
[javac] Compiling 9 source files to /path/to/myapp/platforms/android/bin/classes
[javac] /path/to/myapp/platforms/android/src/com/myapp/MyApp/MyApp.java:25: error: cannot find symbol
[javac] public class MyApp extends CordovaActivity
[javac] ^
[javac] symbol: class CordovaActivity
{noformat}
This seems to be due to the custom_rules.xml file, which changes the output directory from "bin" to "ant-build". However, that value isn't set everywhere.
I can fix it if I remove custom_rules.xml, or if I put an "ant.properties" file in BOTH the android and the android/CordovaLib directories, with the text "out.dir=ant-build".
--
This message was sent by Atlassian JIRA
(v6.2#6252)