Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11603] Android: invalid android path in bash profile results in project creation error, improve error message

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-10-19T01:21:10.000+0000
Affected Version/sRelease 3.0.0
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core, Release 3.2.0
ComponentsAndroid, Tooling
Labelsandroidbuild, cb-verified, configuration-android, qe-and100112, qe-closed-3.2.0, triage
ReporterOlga Romero
AssigneeSamuel Dowse
Created2012-10-29T21:25:14.000+0000
Updated2013-12-05T23:02:49.000+0000

Description

Failed to build a project for Android in Titanium Studio due to incorrect path to android SDK in a bash profile. *It happens only in 3.0.0.version of Studio.* It creates projects in Studio 2.1.2 Test steps: 1.Go to Titanium Studio > Preferences > Titanium 2. Browse and set Android SDK Home 3. Browse and set Android NDK Home Note the difference with a bash profile. export ANDROID_SDK=/myname/Documents/android-sdk-macosx export ANDROID_NDK=/myname/Documents/android-ndk-r8 4. Create a project for Android. Actual result: Fail to create a project. Failed to locate android-8 and android 2.2 Expected result: A project should be created successfully.

Attachments

FileDateSize
error.png2012-10-29T21:25:14.000+000070292

Comments

  1. Dustin Hyde 2012-10-29

    Cloning TISTUD-2651 into this issue. See TISTUD-2651 comments for more info.
  2. Dustin Hyde 2012-10-29

    Resolution is to improve error message in SDK.
  3. Ingo Muschenetz 2012-10-30

    To confirm, is this using the old or the new SDK?
  4. Dustin Hyde 2012-10-30

    Both SDKs.
  5. Allen Yeung 2013-10-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/4781
  6. Samuel Dowse 2013-11-26

    Assigning this ticket to myself and going to investigate further with [~emerriman] and [~thomashuelbert]
  7. Samuel Dowse 2013-12-05

    ANDROID_SDK and ANDROID_NDK variables are no longer necessary in the .bash_profile\ I have removed both lines from my .bash_profile and can sucessfully build to android device and emulator from Studio and CLI. Closing this ticket

JSON Source