개발/Android

App Inventor 2(AI2) Emulator Install

강서버 2022. 1. 9. 01:14
728x90
반응형

App Inventor 2(AI2) Emulator Install

 

* app inventor 2 emulator setup program : 32bit software

 

if you have a 64bit system : lib32z1 install

$ sudo apt install lib32z1

 

(optional) => previously instatlled the App Inventor setup software

$ sudo rm -rf /usr/google/appinventor

$ sudo rm -rf ~/.appinventor

 

download App Inventor setup installer debian package

http://appinv.us/aisetup_linux_deb

 

$ sudo dpkg --install appinventor2-setup_2.3_all.deb

* install dir : /usr/google/appinventor

 

Starting aiStarter

$ /usr/google/appinventor/commands-for-Appinventor/aiStarter &

 

or

$ cd /usr/google/appinventor/commands-for-Appinventor
$ ./aiStarter &

 

--------------------------------------------------------------------------------------------------

$ /usr/google/appinventor/commands-for-Appinventor/aiStarter &
[1] 9617
$ Bottle server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.

 

 

--------------------------------------------------------------------------------------------------

 

참조 : http://appinventor.mit.edu/explore/ai2/setup-emulator

http://appinventor.mit.edu/explore/ai2/linux

 

 

Error : libstdc++.so.6

--------------------------------------------------------------------------------------------------

$ Bottle server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.

127.0.0.1 - - [09/Jan/2022 01:36:10] "GET /ping/ HTTP/1.1" 200 38
/usr/google/appinventor/commands-for-Appinventor/adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/bottle", line 737, in _handle
  File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/bottle", line 1454, in wrapper
  File "<string>", line 61, in echeck
  File "<string>", line 98, in checkrunning
  File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/subprocess", line 573, in check_output
CalledProcessError: Command '/usr/google/appinventor/commands-for-Appinventor/adb devices' returned non-zero exit status 127

--------------------------------------------------------------------------------------------------

 

=> install lib32stdc++6

$ sudo apt install lib32stdc++6

 

참조 : https://groups.google.com/g/mitappinventortest/c/v1fZ0Ea0vMc?pli=1 

 

 

Error : Address already in use

--------------------------------------------------------------------------------------------------

$ /usr/google/appinventor/commands-for-Appinventor/aiStarter &
[2] 11230
$ Bottle server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8004/
Hit Ctrl-C to quit.

Shutdown...
Traceback (most recent call last):
  File "<string>", line 129, in <module>
  File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/bottle", line 2389, in run
  File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/bottle", line 2086, in run
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 144, in make_server
  File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/SocketServer", line 419, in __init__
  File "/usr/lib/python2.7/wsgiref/simple_server.py", line 48, in server_bind
  File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/BaseHTTPServer", line 108, in server_bind
  File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/SocketServer", line 430, in server_bind
  File "/home/mckinney/Development/repo/mit-cml/appinventor-setup/Linux/aiStarter/build/aiStarter/out00-PYZ.pyz/socket", line 224, in meth
socket.error: [Errno 98] Address already in use
Killed adb
emulator: no process found
emulator64-arm: no process found
Killed emulator

--------------------------------------------------------------------------------------------------

 

=> kill aiStarter process

$ ps -ef | grep aiStarter

--------------------------------------------------------------------------------------------------

$ ps -ef | grep aiStarter
user+   10995   10957  0 01:44 pts/2    00:00:00 /usr/google/appinventor/commands-for-Appinventor/aiStarter

--------------------------------------------------------------------------------------------------

* process id : 10957 (replace your process id)

 

$ kill -9 10957

 

728x90
반응형

'개발 > Android' 카테고리의 다른 글

Android Studio Welcome page setting  (0) 2020.10.14