Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19685] Android: Build fails with SDK 5.1.0.v2015100622295 if android 6.0(API 23) is not installed

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-10-07T22:41:45.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.1.0
ComponentsAndroid
Labelsn/a
ReporterLokesh Choudhary
AssigneeChris Barber
Created2015-10-07T18:16:22.000+0000
Updated2015-10-14T18:06:59.000+0000

Description

Description:

1. Create & build an android app from CLI/Studio using 5.1.0.v2015100622295.

Actual Results:

1. The build fails with error:
[ERROR] Unable to find a suitable installed Android SDK that is >=14 and <=23
2. Looking at the package.json in the SDK we see
"android sdk": "23"
, which is high limiting the required android SDK to 23.

Expected Results:

1. The android build should be successful even with no android 6.0 (API 23) SDK installed.

Comments

  1. Chris Barber 2015-10-07

    Android SDK API 23 is required to build Android apps. The error message is not clear and I have fixed it. PR: https://github.com/appcelerator/titanium_mobile/pull/7277
  2. Lokesh Choudhary 2015-10-14

    Verified the fix. We see the below error messsage if android API 23 is not installed with better message:
       [ERROR] :  No valid Android SDK targets found.
       [ERROR] :  Please download an Android SDK target API level 23 or newer from the Android SDK Manager and try again.
       TRACE  | titanium exited with exit code 1
       ERROR  | Error: ti run exited with error code 1
           at ChildProcess.<anonymous> (/Users/lokeshchoudhary/.appcelerator/install/5.1.0-38/package/node_modules/appc-cli-titanium/plugins/run.js:92:66)
           at ChildProcess.emit (events.js:98:17)
           at Process.ChildProcess._handle.onexit (child_process.js:820:12)
       [ERROR] Application Installer abnormal process termination. Process exit value was 1
       
    Closing. Environment: Appc Studio : 4.3.1.201509302304 Ti SDK : 5.1.0.v20151014101225 Ti CLI : 5.0.5 Alloy : 1.7.16 MAC Yosemite : 10.10.5 Appc NPM : 4.2.1-1 Appc CLI : 5.1.0-38 Node: v0.10.37 Nexus 5 - Android 6.0

JSON Source