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

Android: App won't compile if the folder contains space and dash

    Details

      Description

      Problem

      Using Titanium 7.0.2.GA, apps won't compile in android if there is a folder with space and folder (i.e. "hello - world") in the path of the project.

      Produce

      1. Using a simple app attached (basically, it is a default app named "a - b")
      2. Run in android platform
      3. You will get following error

      [INFO] :   Generating /Users/sliang/Downloads/a - b/build/android/res/values/theme.xml
      [INFO] :   Running AAPT: /Users/sliang/Library/android-sdk-macosx/build-tools/26.0.3/aapt "package" "-f" "-m" "-J" "/Users/sliang/Downloads/a - b/build/android/gen" "-M" "/Users/sliang/Downloads/a - b/build/android/AndroidManifest.xml" "-A" "/Users/sliang/Downloads/a - b/build/android/bin/assets" "-S" "/Users/sliang/Downloads/a - b/build/android/res" "-I" "/Users/sliang/Library/android-sdk-macosx/platforms/android-26/android.jar" "-F" "/Users/sliang/Downloads/a - b/build/android/bin/app.ap_" "--output-text-symbols" "/Users/sliang/Downloads/a - b/build/android/intermediates/bundles" "--no-version-vectors" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview:android.support.design:android.support.compat"
      [INFO] :   Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/javac "-J-Xmx1024M" "-encoding" "utf8" "-bootclasspath" "/Users/sliang/Library/android-sdk-macosx/platforms/android-26/android.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/kroll-v8.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/java_websocket.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-analytics.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/aps-analytics.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-android.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/jaxen-1.1.1.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/ti-commons-codec-1.3.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/kroll-common.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/titanium.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-multidex.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-filesystem.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-app.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-ui.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-media.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-appcompat.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-v4.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-v7-appcompat.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-animated-vector-drawable.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-annotations.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-core-ui.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-core-utils.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-fragment.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-media-compat.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-vector-drawable.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-transition.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-v7-recyclerview.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-cardview.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-v7-cardview.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-design.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-design.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-compat.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/android-support-compat.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-locale.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-network.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-xml.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-map.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-calendar.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-geolocation.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-database.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-platform.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-accelerometer.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-contacts.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-gesture.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/modules/titanium-utils.jar:/Users/sliang/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/android/lib/titanium-verify.jar:R.class:ABActivity.class:ABAppInfo.class:ABApplication.class" "-d" "/Users/sliang/Downloads/a - b/build/android/bin/classes" "-proc:none" "-target" "1.7" "-source" "1.7" "@/Users/sliang/Downloads/a - b/build/android/java-sources.txt"
      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      [ERROR] :  Failed to run dexer:
      [ERROR] :  
      [ERROR] :  FAILURE: Build failed with an exception.
      [ERROR] :  
      [ERROR] :  * What went wrong:
      [ERROR] :  Execution failed for task ':proguard'.
      [ERROR] :  > java.io.FileNotFoundException: /Users/sliang/Downloads/a - b/build/android/b/build/android/bin/classes (No such file or directory)
      [ERROR] :  
      [ERROR] :  * Try:
      [ERROR] :  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      [ERROR] :  
      [ERROR] :  * Get more help at https://help.gradle.org
      [ERROR] :  
      [ERROR] :  BUILD FAILED in 1m 18s
      

      Note

      1.SDK 7.0.1 works well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                sliang Shuo Liang
                Reviewer:
                Gary Mathews
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code