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

Unable to build to either android devices or the emulator: zipfile.BadZipfile: File is not a zip file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 3.2.0
    • Component/s: Android
    • Environment:

      Appcelerator Studio, build: 3.1.3.201309132456
      (c) Copyright 2012-2013 by Appcelerator, Inc. All rights reserved.

      Build: jenkins-appcelerator-rcp-master-25 (origin/master)
      Date: 13 September 2013, 00:57:21

      Description

      Issue description

      Trying to build any project to an android target (device or emulator) is giving this result, even projects that were working before this error first appeared.

      Building the ios simulator is working just fine. Any sample created at Appcelerator Studio fails to build.

      Console output

      TRACE :  [0.37315s] TOTAL
       
      [INFO] :
       
      [INFO] :   Alloy compiled in 0.37315s
       
      [INFO] :   Alloy compiler completed successfully
       
      [INFO] :   Running build process:  python "/Users/appuser1/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/builder.py" "install" "SupportProject" "/Users/appuser1/Documents/Android-SDK" "/Users/appuser1/Documents/Appcelerator_Studio_Workspace/SupportProject" "com.support.project" "10"
       
      [INFO] logfile =/Users/appuser1/Documents/Appcelerator_Studio_Workspace/SupportProject/build.log
       
      [DEBUG] /Users/appuser1/Library/Application
      Support/Titanium/mobilesdk/osx/3.1.3.GA/android/builder.py install SupportProject /Users/appuser1/Documents/Android-SDK /Users/appuser1/Documents/Appcelerator_Studio_Workspace/SupportProject com.support.project 10
       
      Traceback (most recent call last):
       
      File "/Users/appuser1/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/builder.py", line 2543, in <module>
          builder = Builder(project_name,sdk_dir,project_dir,template_dir,app_id,is_emulator)
       
      File "/Users/appuser1/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/builder.py", line 455, in init
          android_creator.create(parent_dir, project_dir=self.top_dir, build_time=True)
       
      File "/Users/appuser1/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/android.py", line 337, in create
          self.build_modules_info(app_bin_assets_resources_dir, app_bin_dir, include_all_ti_modules=include_all_ti_modules)
       
      File "/Users/appuser1/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/android.py", line 165, in build_modules_info
          (modules, external_child_modules) = bindings.get_all_module_bindings()
       
      File "/Users/appuser1/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/android/bindings.py", line 56, in get_all_module_bindings
          module_jar = zipfile.ZipFile(module_path)
       
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 712, in init
       
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 746, in _GetContents
       
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 761, in _RealGetContents
      zipfile.BadZipfile: File is not a zip file
       
      [ERROR] :  Build process exited with code
      [ERROR] :  Project failed to build after 940ms
      

      $ ti info

      Titanium Command-Line Interface, CLI version 3.1.2, Titanium SDK version 3.1.3.GA
      Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.

      Please report bugs to http://jira.appcelerator.org/

      Operating System
      Name = Mac OS X
      Version = 10.8.5
      Memory = 8.0GB

      node.js
      node.js Version = v0.10.13
      npm Version = 1.3.2

      Xcode
      5.0.2 (build 5A3005)
      Install Location = /Applications/Xcode.app/Contents/Developer
      iOS SDKs = 7.0
      iOS Simulators = 7.0

      iOS Certificates
      None

      Apple WWDR Certificate
      Apple WWDR = installed

      Development iOS Provisioning Profiles
      None

      Distribution iOS Provisioning Profiles
      None

      Adhoc iOS Provisioning Profiles
      None

      iOS Keychains
      System Default = System Default

      Titanium SDKs
      3.1.3.GA
      Install Location = /Users/appuser1/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA
      Platforms = iphone, tizen, mobileweb, android, blackberry
      git Hash = 222f4d1
      git Timestamp = 09/18/13 12:00
      2.1.3.GA
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      2.1.0.v20120523205530
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120523205530
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      2.0.2.v20120523112732
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/2.0.2.v20120523112732
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      2.0.2.GA
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      2.0.1.GA2
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/2.0.1.GA2
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      1.9.0.v2CUSTOM
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.9.0.v2CUSTOM
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      1.9.0.v20120117114633
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.9.0.v20120117114633
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      1.8.2
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.8.2
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      1.8.1
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.8.1
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      1.8.0.v20111114103905
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111114103905
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.8.0.v20111109103101
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20111109103101
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.8.0.v20110921124951
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.v20110921124951
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.8.0.1.RC3
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1.RC3
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      1.8.0.1.RC1
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1.RC1
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      1.8.0.1
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1
      Platforms = android, iphone, mobileweb
      git Hash = unknown
      git Timestamp = unknown
      1.7.6.v20111114104114
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.7.6.v20111114104114
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.7.6.v20111104233055
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.7.6.v20111104233055
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.7.5
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.7.5
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.7.3
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.7.3
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.7.2
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.7.2
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.7.1
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.7.1
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.7.0.yuri
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.7.0.yuri
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.7.0.RC1
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.7.0.RC1
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.7.0
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.7.0
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.6.2
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.6.2
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.6.1
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.6.1
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown
      1.2.0
      Install Location = /Library/Application Support/Titanium/mobilesdk/osx/1.2.0
      Platforms = android, iphone
      git Hash = unknown
      git Timestamp = unknown

      Android
      Android Executable = /Users/appuser1/Documents/Android SDK New/tools/android
      SDK Path = /Users/appuser1/Documents/Android SDK New
      NDK Path =
      NDK Version =
      JDK Version = 1.6.0_65

        Attachments

          Activity

            People

            • Assignee:
              ayeung Allen Yeung
              Reporter:
              egomez Eduardo Gomez (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code