Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-6820

Android: Build fails when Java keywords are used in project app id

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 1.8.0.1
    • Fix Version/s: Release 2.0.0, Sprint 2012-06
    • Component/s: Android
    • Environment:

      Titanium SDK version: 1.8.0.1 RC3
      Javascript Engine: Rhino & V8
      Platform & version: Android 2.2 emulator
      Host Operating System: OSX 10.7.2
      Titanium Studio version: 1.0.7.201112132151

      Description

      If you enter a Java keyword as the first part of your project's app id, it can cause Android build errors.

      Steps to Reproduce

      1. Create a new mobile project in Titanium Studio
      2. give your project the app id case.test
      3. make sure Android is selected as a deployment target
      4. Create the project
      5. Attempt to build the app

      You should get an error like this

      [ERROR] Error(s) compiling generated Java code
      [ERROR] /Users/tlukasavage/Documents/Titanium Studio Workspace/case_test/build/android/gen/case/test/ApplicationStylesheet.java:5: <identifier> expected
      

      If you look at that line in the identified file, you'll find that case from case.test is the offender

      /**
       * Appcelerator Titanium
       * WARNING: This is a generated file.  Do not modify.
       */
      package case.test; // this is line 5
       
      import java.util.HashMap;
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chaseculpepper22 Chase Culpepper
                Reporter:
                tlukasavage Tony Lukasavage
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-11483
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code