cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <>
Subject [jira] [Resolved] (CB-6226) Can't build with ant: ant-build directory
Date Tue, 11 Mar 2014 20:38:44 GMT


Andrew Grieve resolved CB-6226.

    Resolution: Won't Fix
      Assignee: Andrew Grieve

It's pretty much impossible to make the tools work in all configuations at once.

Even without CLI, you can use the cordova scripts that come with the platform to build:

If you want to use ant directly, have a look at how it's invoked by the scripts:

> Can't build with ant: ant-build directory
> -----------------------------------------
>                 Key: CB-6226
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.4.0
>            Reporter: Jacob Weber
>            Assignee: Andrew Grieve
>            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/ 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 "" file in BOTH
the android and the android/CordovaLib directories, with the text "out.dir=ant-build".

This message was sent by Atlassian JIRA

View raw message