Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15050] Android: "invalid mode ('wb') or filename" Build error on windows 8

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2016-08-30T21:07:49.000+0000
Affected Version/sRelease 3.1.1, Release 3.1.2
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, crash, windows8
ReporterMeenakshi Pathak
AssigneeEric Merriman
Created2013-09-05T11:15:56.000+0000
Updated2017-03-20T21:49:54.000+0000

Description

Build error comes when try to build it in Titanium Studio in Windows 8. Here are the error logs :
[ERROR] Exception occured while building Android project: 
[ERROR] Traceback (most recent call last): 
[ERROR] File "C:\Users\username\AppData\Roaming\Titanium\mobilesdk\win32\3.1.1.GA\android\builder.py", line 2604, in <module> 
[ERROR] builder.build_and_run(True, avd_id, device_args=device_args, debugger_host=debugger_host, profiler_host=profiler_host) 
[ERROR] File "C:\Users\username\AppData\Roaming\Titanium\mobilesdk\win32\3.1.1.GA\android\builder.py", line 2294, in build_and_run 
[ERROR] self.merge_internal_module_resources() 
[ERROR] File "C:\Users\username\AppData\Roaming\Titanium\mobilesdk\win32\3.1.1.GA\android\builder.py", line 2045, in merge_internal_module_resources [ERROR] zip_extractall(res_zip_file, self.project_dir) 
[ERROR] File "C:\Users\username\AppData\Roaming\Titanium\mobilesdk\win32\3.1.1.GA\android\builder.py", line 207, in zip_extractall 
[ERROR] out_file = open(file_path, "wb") 
[ERROR] IOError: [Errno 22] invalid mode ('wb') or filename: u'C:\Users\username\Documents\102030app\build\android\res\values\strings.xml' 
[ERROR] : Build process exited with code 1 [ERROR] : Project failed to build after 9s 167ms
Steps to reproduce : 1. Create a project. 2. Compile it. 3. Do some code and compile again.Now it starts happening. Note : This build error happens 80% of the time. Sometimes Titanium Studio compiles and works fine. This behavior is with all his apps.

Comments

  1. Ingo Muschenetz 2013-09-09

    [~mpathak]. Is it also Studio 3.1.2? Are you able to see this error?
  2. Meenakshi Pathak 2013-09-11

    Yes, they have updated Studio 3.1.2 and found same issue and I am not able to see the error.
  3. Chris Barber 2016-08-30

    This ticket is no longer valid. The old Python-based Android build has been replaced with a Node.js version in Titanium SDK 3.2.0. Furthermore, I tested building an Android app on Windows 10 with i18n strings and it compiled just fine.
  4. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source