Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5370] Android SDK were not found in specified location

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2017-11-19T20:02:21.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAppcelerator Dashboard, Studio
Labelsandroid
ReporterPraveen Kumar
AssigneeShak Hossain
Created2017-11-15T09:30:58.000+0000
Updated2017-11-19T20:02:21.000+0000

Description

I got an error "Android SDK were not found in specified location" while setting android sdk path in Preference. I tried following suggestions 1) Restart Appcelerator studio 2) Delete config.json file in .titanium folder 3) moved android sdk folder to C:\ 4) Updated all android API using android sdk manager 5) download android sdk via Dashboard / andriod sdk configure in Preference Still shows same error

Comments

  1. Sharif AbuDarda 2017-11-18

    Hello, Please send the "appc ti setup check" log in here. Run the command in cmd. Thanks.
  2. Praveen Kumar 2017-11-19

  3. Praveen Kumar 2017-11-19

    Hi, $ appc ti setup check You are attempting to run appc 6.3.0 which was compiled for node 6.10.3 but you are now running node v8.9.1 Rebuilding package modules ... The rebuild was unsuccessful, please run the following command to re-build for the newer version: appc use 6.3.0 --force c:\Users\dell\.appcelerator\install\6.3.0\package\bin\appc:181 logger.error('An uncaught exception was thrown!'); ^ TypeError: Cannot read property 'error' of undefined at process.uncaughtException (c:\Users\dell\.appcelerator\install\6.3.0\package\bin\appc:181:9) at emitOne (events.js:116:13) at process.emit (events.js:211:7) at process._fatalException (bootstrap_node.js:374:26)
  4. Praveen Kumar 2017-11-19

    $ appc use 6.3.0 --force Before you can continue, the latest Appcelerator software update needs to be downloaded. Finding version 6.3.0 ... OK Validating security checksum OK Installing ... OK Compiling platform native modules ... └ alloy/deasync ... OK └ external-editor/spawn-sync ... OK └ bunyan/dtrace-provider ... OK └ bunyan/dtrace-provider ... OK └ arrow-flow/jsonpath ... Failed to install jsonpath@0.2.12; it may not support your current OS. └ bunyan/dtrace-provider ... OK └ ldapjs/dtrace-provider ... OK └ package/fsevents ... Failed to install fsevents@1.1.2; it may not support your current OS. Installed!!
  5. Praveen Kumar 2017-11-19

    HI, $ appc ti setup check Appcelerator Command-Line Interface, version 6.3.0 Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. Enter ctrl-c at any time to quit. ──────────────────┤ Check Environment ├─────────────────── Node.js √ node installed (v8.9.1) √ npm installed (v5.5.1) Titanium CLI √ cli bleeding edge (v5.0.14) Titanium CLI Dependencies √ acs up-to-date (v2.0.8) √ alloy up-to-date (v1.10.7) √ appc-cli-titanium up-to-date (v4.3.16) √ appc-inquirer up-to-date (v0.1.10) √ appc-logger up-to-date (v1.1.27) √ appc-platform-sdk up-to-date (v2.3.1) √ arrow up-to-date (v2.0.2) √ async up-to-date (v1.5.2) √ chalk up-to-date (v1.1.3) √ char-spinner up-to-date (v1.0.1) √ columnify up-to-date (v1.5.4) √ commander up-to-date (v2.9.0) √ debug up-to-date (v2.6.9) √ ejs up-to-date (v2.5.7) √ fields up-to-date (v0.1.24) √ fs-extra up-to-date (v0.26.7) × fsevents missing √ inquirer up-to-date (v0.11.4) √ ip up-to-date (v1.1.5) √ jwt-simple up-to-date (v0.3.1) √ lodash up-to-date (v3.10.1) √ mkdirp up-to-date (v0.5.1) √ node-appc up-to-date (v0.2.43) √ node-forge up-to-date (v0.6.49) √ npmconf up-to-date (v2.1.2) √ pac-proxy-agent up-to-date (v2.0.0) √ plural up-to-date (v0.2.0) √ progress up-to-date (v1.1.8) √ recursive-readdir up-to-date (v2.2.1) √ request up-to-date (v2.83.0) √ semver up-to-date (v5.4.1) √ tar up-to-date (v2.2.1) √ tar.gz up-to-date (v1.0.5) √ tiapp.xml up-to-date (v0.2.2) √ titanium up-to-date (v5.0.14) √ which up-to-date (v1.3.0) √ wrench up-to-date (v1.5.9) Titanium SDK √ latest sdk installed (v6.3.0.GA) ! selected sdk latest Titanium SDK "v4.0.0.GA" is not the selected SDK (currently v6.2.0.GA) Android Environment ! sdk Android SDK not found ! targets no targets found ! avds no avds found ! ndk Android NDK not found Java Development Kit × jdk JDK not found! Intel® Hardware Accelerated Execution Manager (HAXM) √ compatible ! installed not found; install HAXM to use Android x86 emulator Network √ online - no proxy server configured √ Network connection test √ Java-based connection test Directory Permissions √ home directory √ titanium config directory √ titanium sdk install directory √ temp directory ──────────────────────┤ Main Menu ├─────────────────────── 1) quick Quick Setup 2) check Check Environment 3) user User Information 4) app New App Defaults 5) network Network Settings 6) cli Titanium CLI Settings 7) sdk Titanium SDK Settings 8) android Android Settings 9) windows Windows Settings 10) exit Exit Where do you want to go?
  6. Praveen Kumar 2017-11-19

    ─────────────────────┤ Quick Setup ├────────────────────── What is your email address used for logging into the Appcelerator Network? []: xxxxx@gmail.com What would you like as your default locale? (examples: "en", "en-us", "de", "fr") [en-us]: en-us 1) 6.3.0.GA C:\ProgramData\Titanium\mobilesdk\win32\6.3.0.GA 2) 6.2.0.GA [active] C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.GA Enter # or SDK name [6.2.0.GA]: Path to your workspace where your projects should be created: []: F:\Appcelarator Project Path to the Android SDK Enter "none" if you don't want to build for Android. [F:\android-sdk]: F:\andriod-sdk-appcelerator Still shows Android SDK Home] No Android SDKs ...d under the specified SDK location In my system Andriod studio also installed is working as fine
  7. Praveen Kumar 2017-11-19

    Thank you.... fixed the issue
  8. Sharif AbuDarda 2017-11-19

    Thanks for letting us know.

JSON Source