2016-06-07 8 views
5

मैं इस समस्या के समान हो गया है: Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATEDएंड्रॉयड स्टूडियो: 32-बिट Linux एंड्रॉयड एमुलेटर बाइनरी DEPRECATED रहे

मैं, Gentoo Linux/amd64 पर एंड्रॉयड स्टूडियो 2.1.1 चलाने और जब मैं Android के स्टूडियो के एमुलेटर चलाने का प्रयास मुझे त्रुटि दे:

/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.

लेकिन

$ 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

आप एमुलेटर देख सकते हैं 64b है यह बाइनरी है, मैं इसे 64 बिट ओएस चलाता हूं, टूल्स-> एंड्रॉइड-> एवीड मैनेजर दिखाता है कि नेक्सस_5 एक्स_एपीआई_23 में सीपीयू/एबीआई = x86_64,

तो "32-बिट त्रुटि" क्या है? यह कुछ अनुमति की जरूरत की तरह की वजह से मैं जड़ उपयोगकर्ता से एमुलेटर चला सकते हैं

अद्यतन

लग रहा है। लेकिन अभी भी अनुमान लगाया नहीं जा सकता कि वास्तव में इसकी क्या ज़रूरत है।

उत्तर

6

समस्या SHELL पर्यावरण चर में थी। यदि मैं emulator को SHELL=/bin/bash के साथ रूट के तहत चलाता हूं तो सभी ठीक काम करता है, लेकिन यदि मैं SHELL=bash के साथ सामान्य उपयोगकर्ता से emulator चलाता हूं तो यह विफल रहता है और 32 बिट के बारे में बेवकूफ संदेश दिखाता है।

+0

हे भगवान ... इससे मदद मिली, धन्यवाद! –

+0

आपने इस समस्या को कैसे हल किया? –

+1

@AndreyPietrov मैं उत्तर में वर्णित अनुसार पर्यावरण चर को सही मान पर सेट करता हूं। – user1244932

संबंधित मुद्दे