Android Studio 2.3.3. ,Unable to launch Emulator - android-studio

Well,i am trying to launch the emulator in android studio 2.3.3 ,the project is running ,but i am not able to see the virtual device ,anyone can help with this?

I found this answer on SO, which deals with the same problem on Ubuntu. As you did not specify the operating system you are using, I'm not sure whether this will actually help you, but maybe it can point you in the right direction.
The answer linked above recommends adding the following line to the startup script (which is called studio.sh and located in the bin directory underneath the Android Studio directory, at least it does for Linux):
# Preload shared library required by Android emulator
export LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libstdc++.so.6'
That worked perfectly for me, maybe it can help you too?
Good luck!

Related

Unable to uninstall Atom System Image SDK from Android Studio

Each time I try and remove the x86 Atom System Image from my Android Studio, I am greeted with this message. The IDE log does not provide much data about what is causing the issue.
Is there something else that I may have installed that is causing me to be unable to uninstall this SDK?
I have removed all my AVDs from this machine.
I figured this one out.
In my ~/Library/Android/sdk/system-images/android-30/google_apis/x86/ folder there was an .installer file that needed to be deleted.
Once I did that, I was able to remove the system image.

Is it possible to include Linux library in android studio project build on windows?

The idea is that I want to use non-java library compiled for android on Linux, cuz the only toolchain I managed to get working is Linux rather then windows. I don't want to put android studio onto my virtual machine cuz it will be slow or dead, and probably unnecessary. I'm curious what would be the problems if I make a library file on my virtual machine, spit it out into shared folder and then add to my android studio project on windows? Will there be any problems at all? I'm not sure if android studio executes the files before packing them to APK, or if there any filesystem related issues. Can someone elaborate on that, and if anyone knows of a better way to do that - please mention it.
Also to clarify - I don't need to run it on emulator - it will go straight to my device.
Thanks in advance :)

Android Studio 4.0 doesn't recognize any previous virtual devices

First post--be gentle. Can't find any posts on Android Studio 4.0, so I hope this isn't a repeat. I updated Android Studio from 3.6.3 to 4.0 on Windows 10 (1909). Had created a couple of virtual devices in 3.6.3 (a Pixel 2 running API 28 and a Pixel 3 running API 29)--both worked great in AS-3.6.3 and I could develop apps, compile, load, and run them with no problem.
After the update to AS-4.0, the virtual devices no longer appear in the devices box at the top of the GUI--it just says "No Devices". When I open the AVD Manager, I can see them, and I can start them (although when I start them I get a pop-up saying "AVD Manager: Unable to locate adb"), but I can't get any code to download and execute on it. On the Pixel 3 emulator, I also get another pop-up saying "Detected ADB: Could not automatically detect an ADB binary.", and it gives instructions to resolve it, which don't make any difference (jump into extended controls and toggle "Use detected ADB location").
When I try to open a past project and run it, I get the same behavior--no devices found.
I've also tried making new emulators, hoping the new setup would recognize them, but to no avail. Tried starting and restarting AS, as well as the computer, also to no avail. I have Android SDK Build-Tools 30-rc4, the latest Android SDK Command-line Tools, Android Emulator 30.0.12 Android SDK Platform-Tools 30.0.1, and the Intel x86 Emulator Accelerator all installed.
I've Googled and spoken words of fierce power over this for several days now. Any suggestions for how to get AS-4.0 to recognize the emulators? I've resisted uninstalling everything and starting over--was hoping it was just a configuration thing.
Thanks in advance,
Uber
After some more Googling, I found the answer here (I think my constraint of wanting an answer for AS-4.0 specifically kept me from finding it):
Could not automatically detect an ADB binary - Android Studio
I had to redownload the SDK platform-tools zip file and reinstall it. I don't know why the old one got messed up with the migration from AS-3.6.3 to 4.0, but there you go--such is life with complicated software.
As soon as I replaced the old platform-tools directory with the new one, all my old emulators showed up and I was back in business.
Thanks anyway!
Uber

How to resolve symbols #mipmap and #style in Flutter project?

A while ago my designed Flutter app was running like it should in simulation (virtual device) in Android Studio. After some updates of both Flutter as Android studio I am not able to get the app in simulation. I am new to Flutter and Android studio (have a little knowledge of Xcode, 2 apps in the store) so I have looked at stackoverflow first to find a solution. All tried suggestions did not worked for me and I am hoping somebody can help me.
I have an original version of the project which was running in simulation mode. Now I am working in a duplicated version to find out how to get things up and running again. It worked before but why does Flutter or Android Studio give an error now? The folders and content do exist. Perhaps it is a simple thing to solve but it is not in my knowledge.
What to do to solve the error message I get as shown in the screendump?
The problem seems to be with the resources,
this should help.
Android Studio error: cannot resolve symbol in Xml
Or try to run "flutter clean" (usually solves many problems)
Flutter studio sometimes does not resolve those (no idea why).
Try opening the same Android project in Android studio and check it from there.
Once back, try File->Invalidate Caches/Restart
If they exist and the name is right (without extension), then it could be it.

Android studio installation issues

I am not able to set the installation location on Android Studio. Also when I open the installation setup, I'm not able to view the license agreement.
I get the following:
Please help.
Well, I see this the first time and it looks strange, but...
I hope you've already installed Oracle Java 8. If not, you would find it here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
You don't need to install Android Studio. On Google's site there available also .zip file, which you need only unpack and run.
Look here: http://developer.android.com/sdk/index.html#Other
Direct link: https://dl.google.com/dl/android/studio/ide-zips/1.5.1.0/android-studio-ide-141.2456560-windows.zip
Hope it help

Resources