1
votes

Appcelerator was working fine on my Windows 10 PC a few days ago. Today when I try to build my app I get error messages. Suddenly Appcelerator can't find the Android SDK on my machine.

enter image description here

enter image description here

I know the SDKs are there, I'm not sure why it can't find them.

I have tried reinstalling Appcelerator Studio, Appcelerator CLI, Node, Java, and the Android SDK's all to no avail.

3
Could you run the command with debug & trace level logs to see if that gets you more info on the error? cmd /C "set DEBUG=* && ti setup check -l trace" Also run cmd /C "set DEBUG=* && ti info -t android -l trace". Did you change NodeJS versions or install new Android API levels just before it stopped working? - Fokke Zandbergen
@Fokke-Appcelerator I haven't updated the Android API's or Node. Here is a dump of the errors when I run check or info with log level trace link - lawjeremy
OK, there's something in your environment that our node_appc lib is not handling well here: github.com/appcelerator/node-appc/blob/master/lib/jdk.js#L230. Could you open C:\Users\jlaw\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\lib\jdk.js and after line 288 add console.log(JSON.stringify(jdks))? - Fokke Zandbergen
I think our corporate anti virus may have been causing this problem, I disabled it and appc works again. - lawjeremy
Great! Could you add that as answer and mark is as accepted so that others can see it has been handled? - Fokke Zandbergen

3 Answers

0
votes

I have run into this issue several times, and it appears to be related to my system path pointing at the wrong version of Java. I have both the 32 bit and 64 bit versions of Java installed. Appcelerator requires the 32 bit. If my path is pointing at the 64 bit version I see this error. Changing the path fixes the problem.

-1
votes

You can try these steps:

  1. Clean your current CLI - delete .appcelerator/install/ 5.2.0-265
  2. [sudo] npm install -g [email protected]
  3. appc use 5.2.0-265

Now run appc ti info and look for android sdk.

-1
votes

Install Android SDK from here and set the path to the installation location, preferrably %APPDATA%\android-sdk or similar.