2016-06-07 16 views
5

mam podobny do tego problemu: Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATEDandroid studio na 64-bitowym systemie operacyjnym z systemem 64bit OS daje błąd: 32-bitowe pliki binarne emulatora Linux Android są przestarzałe

biegnę studio android 2.1.1 na Gentoo/AMD64, i gdy próbuję uruchomić emulatora Androida android studio daje mi błąd:

/home/user/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5X_API_23 ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do at least one of the following: - Use the '-force-32bit' option when invoking 'emulator'. - Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment. Either one will allow you to use the 32-bit binaries, but please be aware that these will disappear in a future Android SDK release. Consider moving to a 64-bit Linux system before that happens.

Ale

$ file /home/user/Android/Sdk/tools/emulator /home/user/Android/Sdk/tools/emulator: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.15, stripped

Jak widać jest emulator 64b to binarny go uruchomić 64bit OS, również Narzędzia-> Android-> Avd Manger pokazują, że Nexus_5X_API_23 ma CPU/ABI = x86_64

więc to, co jest "błąd 32-bit" o?

Aktualizacja

Wygląda na to, że potrzebujemy zgody, ponieważ mogę uruchomić emulator od użytkownika root. Ale wciąż nie może odgadnąć, czego dokładnie potrzebuje.

Odpowiedz

6

Problem dotyczy zmiennej środowiskowej SHELL. Jeśli uruchomię emulator pod rootem z SHELL=/bin/bash wszystko działa poprawnie, ale jeśli uruchomię emulator od zwykłego użytkownika z SHELL=bash, to się nie powiedzie i wyświetli idiotyczną wiadomość o 32bitach.

+0

O Boże ... Pomogło, dzięki! –

+0

W jaki sposób rozwiązałeś ten problem? –

+1

@AndreyPietrov Ustawiam zmienną środowiskową na właściwą wartość, zgodnie z opisem w odpowiedzi. – user1244932