Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: Release 3.2.0
-
Fix Version/s: 2014 Sprint 01, 2014 Sprint 01 Core, Release 3.2.3, Release 3.3.0
-
Component/s: CLI
-
Environment:
Mac OSX 10.9.1
Titanium SDK 3.2.0.GA
Titanium Studio, build: 3.2.0.201312191547
Description
When trying to compile a ally android project, the compiler fail with the following error:
[ERROR] : Failed to compile Java source files:
|
[ERROR] :
|
[ERROR] : /Users/mor_eli/Development/Titanium_Workspace/android_alloy/build/android/gen/com/android/alloy/R.java:32: ';' expected
|
[ERROR] : public static final int space test=0x7f040001;
|
[ERROR] : ^
|
[ERROR] : /Users/mor_eli/Development/Titanium_Workspace/android_alloy/build/android/gen/com/android/alloy/R.java:32: <identifier> expected |
[ERROR] : public static final int space test=0x7f040001;
|
[ERROR] : ^
|
[ERROR] : 2 errors
|
[ERROR] Application Installer abnormal process termination. Process exit value was 1
|
The issue seemed to be linked to having a localization string file in project root/i18n/en/strings.xml
If the first string line has a space as follows:
<?xml version="1.0" encoding="UTF-8"?> |
<resources> |
<string name="space test">should not work with space/string> |
</resources> |
The compilation fails.
If the space is removed:
<?xml version="1.0" encoding="UTF-8"?> |
<resources> |
<string name="test">should work no space/string> |
</resources> |
The compilation works.