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

Android: Build fails if target SDK is lower than API 23

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.0.0
    • Fix Version/s: Release 5.0.0
    • Component/s: Tooling
    • Labels:
    • Environment:

      Windows 8.1
      Appc CLI Core: 5.0.0-37
      Appc CLI NPM: 4.2.0-1
      Ti SDK: 5.0.0.v20150906220721
      Galaxy Note 3 (4.4.2)

      Description

      Description

      When building an app for Android and API 23 (Android 6.0) is not installed or is not set as the target SDK then the build will fail with the below errors

      [ERROR] Failed to package application:
       
      [ERROR]
      [ERROR] C:\Users\Ewan\AppData\Local\Temp\11587-3632-barql9\res\values-v23\styles_base.xml:20: error: Error retrieving parent for item: No resource found that matches
       the given name 'android:Widget.Material.Button.Colored'.
      [ERROR]
      [ERROR] C:\Users\Ewan\AppData\Local\Temp\11587-3632-barql9\res\values-v23\styles_base_text.xml:19: error: Error retrieving parent for item: No resource found that ma
      tches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
      

      This error is related to app compat which has been updated in this commit

      Steps to reproduce

      1. Either uninstall API 23 or set the target SDK in the tiapp.xml using <uses-sdk android:targetSdkVersion="21"/>
      2. Build for Android using appc run -p android -T device --build-only

      Actual result

      The build will fail

      Expected result

      The build should exit and tell the user that API 23 is required to build using 5.0.0

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              eharris Ewan Harris
              Reviewer:
              cb1kenobi
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code