[DAEMON-255] Appcelerator Studio not detecting android emulator and emulator doesn't come up on windows 7
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Done |
Resolution Date | 2018-10-25T13:20:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | androidlib, appcd |
Labels | n/a |
Reporter | Mostafizur Rahman |
Assignee | Chris Barber |
Created | 2018-04-25T14:42:54.000+0000 |
Updated | 2018-10-25T13:20:51.000+0000 |
Description
Hello,
We have an Enterprise customer who is facing an issue with Appcelerator Studio. Appcelerator Studio not detecting android emulator and emulator doesn't come up on windows 7. We have attached the screenshot, Studio Diagnostic log and *appc ti setup check* log file.
If any others information needed please let us know.
Thanks
Attachments
File | Date | Size |
---|---|---|
appc_ti_info_t_android.txt | 2018-04-25T14:55:49.000+0000 | 8501 |
appc_ti_setup_check.txt | 2018-04-25T14:41:59.000+0000 | 4682 |
appcd_android_info.txt | 2018-05-17T13:26:08.000+0000 | 40759 |
appcd_log.txt | 2018-04-27T13:11:14.000+0000 | 766 |
Appc Daemon Dump.txt | 2018-04-27T13:11:16.000+0000 | 464670 |
complete-Build-log.txt | 2018-06-15T12:36:27.000+0000 | 34178 |
DiagnosticTest.txt | 2018-04-25T14:42:01.000+0000 | 15302 |
image001.jpg | 2018-05-17T13:26:07.000+0000 | 16645 |
image002.jpg | 2018-05-17T13:26:07.000+0000 | 17333 |
Img-01-22-05-18.jpg | 2018-05-22T16:22:45.000+0000 | 54151 |
Img-02-22-05-2018.jpg | 2018-05-22T16:22:46.000+0000 | 55512 |
Out_Comes.jpg | 2018-05-09T16:36:54.000+0000 | 49332 |
Screenshot.jpg | 2018-04-25T14:42:32.000+0000 | 131122 |
Server_not_running.jpg | 2018-05-02T15:16:12.000+0000 | 14180 |
Stuck.jpg | 2018-05-09T13:53:55.000+0000 | 126151 |
Looking at the Screenshot.jpg -
C:\android-sdk-win
is not recognised as a valid android SDK path. Investing further on this Can you also provide the "Appc Daemon Dump" for studio In Studio, go to Help > Studio > Generate Appc Daemon Dump. It generates the appc daemon dump and provide you the location for the generated file.Looks like Appc daemon is unable to find the android emulators. To confirm on this, can you run the following command and attach
appcd.log
to the ticket.[~eharris] [~cbarber] I think we were having a similar issue earlier, do you guys recall the ticket for this
I have attached the required logs named: Appc Daemon Dump.txt and appcd_log.txt. Thanks
[~mrahman] Apologies they will have to start the daemon first, so the steps are the following 1.
appc appcd start
, should logAppc Daemon started
2.appc appcd exec /system-info/1.x/info
, check it looks ok 3.appc appcd exec /system-info/1.x/info > appcd.log
Then upload that appcd.log file[~eharris] Do you see any issue from the appc daemon dump [^Appc Daemon Dump.txt]
Maybe we can debug the below command and see where it's hanging.
Doesn't seem to be the studio issue, hence I'll move the component to DAEMON project to get the high priority
I'm not convinced this is a daemon issue. It's obvious that "ti info" cannot see the emulators, but that's not the same source that Studio pulls from to get the list of emulators. There is no
appc appcd exec /system-info/1.x/info
output attached to this ticket. It would be better to attach the output of just the Android info by running eitherappc appcd exec /system-info/1.x/info/android
orappc appcd exec /android/1.x/info
. This output would tell us if the daemon can detect the emulators, however if it doesn't detect the emulators it won't tell us _why_ it couldn't detect the emulators. To get the why, we need anappc appcd dump output.json
immediately after runningappc appcd exec /android/1.x/info
.[~cbarber], Command: appc appcd exec /android/1.x/info they are able to get the output, attached the same for reference (appcd_android_info.txt). But the Below 2 commands appc appcd exec /system-info/1.x/info appc appcd exec /system-info/1.x/info/android is running for more than 4 hrs. There was no o/p as mentioned in attached screenshot (image001, image002).
[~mrahman] They probably just need to restart the daemon:
appc appcd restart
. They also should upgrade to the latest Appcelerator CLI so that it pulls down the latest appcd version.Hello [~cbarber], They have restarted the daemon by using *appc appcd restart*. Then upgraded the latest Appcelerator CLI but still facing the same issue. Appcelerator Studio not detecting android emulator and emulator doesn't come up on windows 7. They have emulators available in Appcelerator, but they still have the error persists as “Problem detected with the SDK settings”. Due to which emulator is not selected by default. Provided the screenshot for your reference. In another screenshot, they tried to build the project in cmd prompt but getting an error as “Unable to find any emulators”. Img-02-22-05-2018.jpg and Img-01-22-05-2018.jpg reference as screenshot.
[~mrahman] I noticed is the AVD directory is
C:\android-sdk-win\.android\avd
. This is a non-standard location. Usually it is in the user's home directory. Titanium SDK *does not *support a non-standard AVD location. It must be inC:\Users\<user>\.android\avd
. Appc Daemon _does_ support non-standard AVD locations, but it must be manually set by runningappc appcd config android.avd.path C:\android-sdk-win\.android\avd
. If you do this, then runappc appcd exec /appcd/plugin/stop/android
and Studio should start displaying the list of emulators. However, if you move the AVDs to the user's home directory to make Titanium SDK happy as indicated above, then do not set theandroid.avd.path
.We have shared this with the customer and waiting for his update. Thanks
[~cbarber], We have an update from the customer. The customer replied: Sorry for the delayed response, I was on a business trip and could not get back. Here is the last error response from the compiler:
Thanks
That looks to be an Alloy error, not a Daemon related error. [~mrahman] Can we get a reproducible test case from the customer? [~fmiao] What do you make of the "Unexpected character" error above?
Why is it loading alloy from
\AppData\Roaming\npm\node_modules\
? What's the alloy version? Can we have the complete build log?[~fmiao], Here is the answers from the customer regarding your questions: 1) It is the same way it loads initially before this issue happened. 2) 1.11.0 3) Attaching the log named complete-Build-log.txt
[~mrahman], I could reproduce a similar error when I misplaced a
?
inalloy.js
. If you run appc with debug enable, you should get more information on exactly which line causes the issue.Closing based off feedback