Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3394] Appcelerator doesn't detect android SDK

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionHold
Resolution Date2016-03-25T16:08:51.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAppcelerator Dashboard
Labelsn/a
ReporterMohammad
AssigneeMostafizur Rahman
Created2016-03-18T20:51:08.000+0000
Updated2016-03-25T16:08:51.000+0000

Description

Well it's a long story started two weeks ago by trying to install Appcelerator studio... - We are a software company (15 years) and we are looking for mobile cross-platform solution - First installation didn't go well and I had issue with logging to appc studio, I googled for a solution and I read a posts in jira and finally I managed to login to appc studio. - Then came the main issue 'appc doesn't detect android sdk': there is no jira ticket or stack over flow question related to this that I didn't read it and followed the answers and suggestions: install android sdk directly in c:\android-sdk, install JDK 32bit, download .jar, add sdk xx, remove sdk yy uninstall appc and reinstall again it just drive me crazy... I don't have the whole day I work all the day and at night I find my self fighting in installing appc with no success and I see other people have the same issue but there is no clear solution from appc itself.... - I removed ndk and android sdk, uninstall appc studio, restart laptop and again to the battle I installed android sdk (all packages- I bought a secondary HD for that), Fresh and new install appcelerate studio then I stuck with again where I start from the first with logging issue, I found that related somehow to actually being logged to appc account in browser, ok the appc studio loads and my name in the right bottom corner but appc studio displays the login scree again (why?????), and then I stuck can't exit appc and can't login appc, so I use the 'task manager' to force closing appc. - I tried to use several CLI commands but I got errors and then I started a question in stackoverflow.com [http://stackoverflow.com/questions/35947640/appcelerator-doesnt-detect-android-sdk]. - When I googled for answer to my issue I saw this 'Why can not appcelerator studio run from first time'.

Comments

  1. Mostafizur Rahman 2016-03-20

    Hello, Thanks for sharing with us. Please run the following command in the administrative command prompt. sudo rm -rf ~/.appcelerator sudo rm -rf ~/.titanium sudo npm uninstall -g titanium sudo npm uninstall -g appcelerator sudo npm install -g appcelerator appc use latest appc setup Now, Did you set the environment variables for your platform. Please follow the instruction in here http://docs.appcelerator.com/platform/latest/#!/guide/Software_Locations_and_Environment_Variables and follow Configuring Environment Variables on Windows section. Now, Go to your android SDK folder and open "tools" folder and open "android". This will open the Android SDK Manager. Now install the necessary sdks it recommended. Install those and restart the pc and restart the studio go to your studio preference/studio/platforms/android and see if the issue is fixed or not. Reply with your findings. Please provide screenshots. Thanks.
  2. Mohammad 2016-03-20

    OK, I follow you but when running appc setup I get this: !http://3msoft.net/mhmd/appc_1.png! !http://3msoft.net/mhmd/appc_2.png! !http://3msoft.net/mhmd/appc_3.png! After clicking OK: !http://3msoft.net/mhmd/appc_4.png! !http://3msoft.net/mhmd/appc_5.png!
  3. Mohammad 2016-03-20

    I got windows! how can I run this: sudo rm -rf ~/.appcelerator sudo rm -rf ~/.titanium Thank you
  4. Mostafizur Rahman 2016-03-21

    Hello, Thanks for your reply. First delete the .appcelerator folder in your home directory. This folder may be hidden in your system find the folder and delete it. Now, Please run the following command in the administrative command prompt. *npm uninstall -g appcelerator* *npm install -g appcelerator* *appc use latest* *appc setup* Thanks.
  5. Mohammad 2016-03-21

    Any idea?
  6. Mohammad 2016-03-21

    Hi, I follow you and the result is not good: !http://3msoft.net/mhmd/error.png! and here what I did: [Delete appcelerator dirs] !http://3msoft.net/mhmd/appc_8.png! !http://3msoft.net/mhmd/appc_intsall.png! !http://3msoft.net/mhmd/appc_uselatest.png! !http://3msoft.net/mhmd/appc_setup.png!
  7. Mostafizur Rahman 2016-03-22

    Hello, Thanks for your reply. Please use Titanium SDK 5.2.0.RC to avoid this error. To install this update, launch *Appcelerator Studio*. In the menu *Preferences*, go to *Studio* > *Updates*. From there, choose *Release Candidate Build*. It will install the updates. After installing the updates in Studio, you will need to execute the following commands to complete the installation of the update:
       npm install -g appcelerator@4.2.3-2
       appc use 5.2.0-265
       
    If you wish to install the updates via the command line, execute these commands:
       appc ti sdk install -d 5.2.0.v20160216202526 -b 5_2_X
       npm install -g appcelerator@4.2.3-2
       appc use 5.2.0-265
       
    To get help, please check the [link](http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_SDK_5.2.0.RC_Release_Note). Thanks
  8. Mohammad 2016-03-22

    Hello, Still doesn't detect android SDK !http://3msoft.net/mhmd/appc_10.png! !http://3msoft.net/mhmd/appc_11.png! !http://3msoft.net/mhmd/appc_12.png! !http://3msoft.net/mhmd/appc_13.png! !http://3msoft.net/mhmd/appc_14.png!

    *{color:red}I didn't run the update for latest version as suggested above in the image !{color}*

    !http://3msoft.net/mhmd/appc_15.png!
  9. Mostafizur Rahman 2016-03-23

    Hello, Thanks for your feedback. Your npm version is lower. Firstly uninstall it then install the latest version. Please follow these command. *npm uninstall npm -g* *npm install npm@latest -g* To help more please check [link](http://stackoverflow.com/questions/26908899/how-do-i-update-npm-on-windows). Thanks.
  10. Sharif AbuDarda 2016-03-23

    Hello, Whats your JDK version? For windows system the JDK needs to be 32bit. Make sure you have 32bit JDK. Appcelerator won't work with 64bit JDK. http://docs.appcelerator.com/platform/latest/#!/guide/Installing_Oracle_JDK. Now, if you have 64bit JDK installed, you should uninstall studio and JDK both from your system and install the studio. It will detect when there is no JDK installed and ask you to install JDK in addition to it. Install them and set the environment variables from the instruction provided on my previous comment. Reply with your findings. Thanks.
  11. Mohammad 2016-03-23

    Hello, It's now after 01:00 AM, I have been following your suggestions guys for last 4 hours: 1. Uninstall Appcelerate studio 2. Delete all appcelerator directories 3. Uninstall node.js [to fix npm issues] 4. Uninstall all jdk/jre [all things that have java] 5. Restart laptop 6. Download Appcelerator studio 7. Let it install jdk [old version] 8. Run 'appc setup' 9. I get the same error !http://3msoft.net/mhmd/appc_20.png! !http://3msoft.net/mhmd/appc_21.png! !http://3msoft.net/mhmd/appc_30.png! !http://3msoft.net/mhmd/appc_31.png! IT WOULD BE BETTER FOR YOU AND FOR ME TO GIVE YOU ACCESS TO MY LAPTOP (TEAMVIEWER) AND LET YOU DO WHAT YOU THINK IT WILL SOLVE MY PROBLEM !! GUYS as I mentioned in my report that I have read all jira tickets related to this issue and I mean ALL (also stackoverflow), you just copy answers from other tickets that others from appcelerator ( Fokke ) said that this wrong answer I mean the npm uninstall and reinstall: it will not solve the problem.... There is one thing left to do: FORMAT my laptop AND INSTALL FRESH COPY OF WINDOWS, INSTALL APPCELERATOR AND THEN MAYBE MAYBE APPCELERATOR STUDIO WILL RUN...
  12. Sharif AbuDarda 2016-03-24

    Hello, Did you set the environment variables for your platform? Please follow the instruction in here http://docs.appcelerator.com/platform/latest/#!/guide/Software_Locations_and_Environment_Variables and follow Configuring Environment Variables on Windows section. Open the Windows Control Panel and search for 'environment'. Click Edit the system environment variables. The System Properties dialog appears displaying the Advanced tab. Click the Environment Variables button. Use the New or Edit buttons at the bottom of the dialog to add or change system variables. The full instruction is in the link. Please provide screenshots after you set the environment variables. Now after doing that run appc setup. I would also recommend a fresh operating system installation and try installing Appcelerator if the problem still persist. What happens when you click details in "problem detects in SDK settings"!http://3msoft.net/mhmd/appc_3.png!. Reply with your findings.
  13. Mohammad 2016-03-24

    Sharif "_ I would also recommend a fresh operating system installation and try installing Appcelerator if the problem still persist._" You must be kidding!!! format my laptop and wipe the whole things that installed, I prefer to leave appcelerator than formatting, no way :-)
  14. Sharif AbuDarda 2016-03-24

    Hello, That was just a suggestion. You have to understand that we had provided every possible solution to your problem. And we never had this type of problem before. So, there must be something that is not working properly. That is why based on your comment I suggested a fresh operating system installation, Then installing node.js and JDK and setting the path variables and try installing Appcelerator studio. Did you follow the other instructions that I asked on the previous comment? Thanks.
  15. Mohammad 2016-03-24

    YES.... I'll try a fresh copy of window and start from there.... Thanx again for your help.... جزاك الله خيرا
  16. Sharif AbuDarda 2016-03-25

    Hello, Thanks for your response. I am closing this ticket marked "On hold" let me know if you have any further problem. I will reopen it. Thanks. جزاك الله خيرا

JSON Source