You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2013/07/16 21:40:50 UTC

[jira] [Resolved] (CB-4201) Android platform add fails if name element starts with a number

     [ https://issues.apache.org/jira/browse/CB-4201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-4201.
----------------------------

    Resolution: Won't Fix

An activity name is a Java class names, and Java class names can't begin with numbers.  This is a language rule, not just an Android rule.
                
> Android platform add fails if name element starts with a number
> ---------------------------------------------------------------
>
>                 Key: CB-4201
>                 URL: https://issues.apache.org/jira/browse/CB-4201
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.9.0
>         Environment: cordova 2.9.5
>            Reporter: Dan Moore
>            Assignee: Joe Bowser
>            Priority: Minor
>
> I saw this when running 'cordova platform add android' but tracked it down to this statement (where "hoods" is more typically drawn from config.xml / name):
> This works:
> [mooreds@localhost neighborhoodapp]$ "/home/mooreds/.cordova/lib/android/cordova/2.9.0/bin/create"  "/home/mooreds/dev/ta/android" "com.eightz.mobile" "hoods"
> This fails:
> [mooreds@localhost neighborhoodapp]$ "/home/mooreds/.cordova/lib/android/cordova/2.9.0/bin/create"  "/home/mooreds/dev/ta/android2" "com.eightz.mobile" "8hoods" 
> An unexpected error occurred: "$ANDROID_BIN" create project --target $TARGET --path "$PROJECT_PATH" --package $PACKAGE --activity $ACTIVITY &>/dev/null exited with 1
> Deleting project...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira