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


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

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


      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;


          Issue Links



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


                • Created:

                  Backbone Issue Sync

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

                    Git Source Code