I want to learn Kotlin but I can't. I'm using Kubuntu 20.04 (with NVIDIA GeForce GT 710 graphic card and nvidia-driver-455 driver). I can open virtual device after I create new project. But device is empty and there is not started Android. I see only black page or graphic of other opened window: Screenshot of Virtual device
I see only "Loading devices" in Android studio when I import this project from GitHub: https://gist.github.com/vishnuharidas/33c95afb49ebe9c2dd3c65b5b13d534d
There stays no devices when I create configuration.
And virtual devices are empty when I cloned some another project from GitHub.
I see only "Unable to locate adb" when I open Android Virtual Device Manager.
It writes error "Module not specified" when I created configuration. There is not option File > New > New Module".
I tried reinstall Android studio many times.
Or I can test my apps in real mobile phone but I don't know how.
I finded some similar questions but nothing works for me. Can someone help me?
I tried it in Windows in VirtualBox with same error: Unable to locate adb.
I know the reason, I think. I tried Intellij and there was an error about my CPU: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3. So I tried Intellij and Android studio in my notebook with SSSE3 in CPU. It works! I see the virtual device with Android. There's some warnings/errors too but I'll try to solve these.
Finally solution: check your processor: cat /proc/cpuinfo | grep ssse3
I found another problem 🤪. My USB connector in my PC worked little bad. So check your USB too if you've got a same problem. "real emulator" (my mobile phone) works right now. Procesor without SSSE3 is not a problem in this case.
Related
Genymotion Emulator Error
I'm repeatedly getting this error
After reading this thread Android Studio doesn't see genymotion
I have successfully included my ADB Location in Genymotion
But it is still showing me Android Studio "Status Off" message
This was the default configuration of the Emulator
And this was the Oracle Virtual Box Setting !OVB_Setting
And after reducing the system processor from 4 to 2 and removing all the Emulators in my Android Studio. It's still giving me the error mentioned in the top. And this is Virtual Box Error:
What am I doing wrong here?
There are two possible issues here.
If you use Windows Creator Update and your version of VirtualBox is the one bundled with Genymotion (5.0.28), then you need to update to VirtualBox 5.1.26 (see https://www.genymotion.com/help/desktop/faq/#compatible-virtualbox-versions)
If this does not help, you might have a firewall which prevents the communication between Genymotion and VirtualBox. In this case, looking at the VBoxHardening.log file mentioned in the last screenshot can help figuring it out. You can find more information about this file in this post from VirtualBox forum.
I have tried everything(reinstalled, open as administrator, etc) and it's still not opening the Android 5.x and 6.x emulator.
The error message is :
Unable to start the virtual device.
The virtual device got no IP address.
The VirtualBox DHCP server has not assigned an IP address to the virtual device. To find a solution, please start Virtual Box.
I have followed this tip and this but the error message keeps.
I'm using a Windows 10 Pro.
Any other tip without the need of reinstalling the Windows?
Update:
Hey man I think I caught your problem.
1) Please Open VirtualBox and and Then right click on your Virutal Machine.
2) Select Settings.
3) Open General Setting from the left panel.
4) Open the Basic tab.
5) Choose Linux from the Type option.
6) Then choose Other Linux(64-bit) in the Version Section.
I have tried the option of 32-bit mode in my PC and the same problem happens as you asked in your question. So, select 64-bit mode to make it run.
Note: Android 5.x and 6.x are based on the 64-bit architecture. If you
selected the Other Linux(32-bit) option. Then Virtual Box will try to
emulate a 64-bit program in a 32-bit virtual machine type, which is
not possible.
So, Please make sure that you have selected the Other Linux(64-bit)
option for Android Versions higher than 5.x. (You can run Android
versions upto 4.x in the 32-bit mode.)
Old Answer:
No, You don't need to reinstall windows. It is not an operating system
fault.
I faced this problem.
It is due to the Antivirus Program.
If you have any antivirus program then just disable it and TRY
AGAIN.
You also don't need to set any compatibility mode.
Currently, I am using Genymotion(Version 2.6.0) and
VirtualBox(Version 5.0.12 r104815) in Windows 10 Pro without any error.
I come across a bug of Android studio. When I start my virtual device, it tells me that Unknown error and popup a window saying Intel HAXM is required to run this AVD. Unknown error. Then I reinstall Andorid studio and HAXM, but it cannot work for me. Any one can solve it?
PS: My machine is: win10 64bit Android Studio2.0
This happens when your machine does not support Virtualization. To fix this, you just have to run the emulator with the system image armeabi. Go to your Android Virtual Device Manager, and create a new device. Select your hardware, then click next. Here, it is very important to select a system image with the ABI column saying "armeabi" or "armeabi-v7a". It should look like this:
Continue with the steps, and your emulator should work and run properly.
I'm getting an error while running my AVD on Android Studio. Below screenshot is the error.
http://i.gyazo.com/cc1d9497b3f504196fe4f78fc6a2932e.png
After doing some Googling, I understand that the HAXM installer needs to be installed from the SDK Manager. I did that (screenshot below)
http://i.gyazo.com/060b1108091d497da3e9e312ec7aedcc.png
Doing some further research, it seems like I need to execute an .exe file from the Android Studio folder. However, the SDK folder seems to be missing for me.
I'm stuck in a loop here, I'm not sure what to do. Is anyone able to assist with this? I enable virtualization in my BIOS but it didn't do the trick. My processor is also supported according to the intel website. Thank you.
Use Genymotion as your emulator. Fast and reliable. The solution below is from a possible duplicate question to yours.
After you download it and make sure you run the setup located in: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
Note: in Android Studio, the command "intelhaxm.exe" has been changed to "intelhaxm-android.exe"
If you get the error "VT not supported" during the installation disable Hyper-V on windows features. You can execute this command dism.exe /Online /Disable-Feature:Microsoft-Hyper-V. You will also need "Virtualization Technology" to be enabled on your BIOS
If that doesn't work try the ARM virtual device instead because your PC might not be intel HAXM compatible(mine wasn't). There might be some other options too for other types of virtual devices you can use. I recommend you try the ARM one if it doesn't work.
I have followed all the necessary installation and setup steps for Eclipse 3.4 + ADT + Android SDK on Windows 7.
I followed the Hello, Android tutorial in Eclipse and code-completion also works like a charm. No errors shown.
unfortunately the emulator never shows up.
When I run the project. I have fullfilled the same steps in a virtual Windows XP machine and - though very slow - it does work there.
I have not found anything about known problems with Windows 7. What can I do?
Try launching the emulator from the command line with the -verbose option as this may help determine why it is failing:
emulator -verbose -avd <avd name>
To a get a list with the names of AVDs you've set up enter:
android list avd
(If nothing shows up when you list your AVDs that's your problem.)
Ensure you are running the app as an android app and as Dave Webb suggest ensure you have an emulator "profile" created. I created one to meet my HTC Hero and I use Windows 7 (x64).
NOTE: You might also want to unplug your HTC device, if its connected to the PC. I've noticed that if its plugged in the apps will download and run directly on the real device. Thats probably by design and intentional. ;-)
HTH
Philip
I am developing on Windows 7 Pro with no issues. Eclipe and Emulator are all working OK.