Location menu in extended controls of Android Studio virtual device - android-studio

I need to import a .gpx file to my virtual device (something I'm attempting for the first time today), but I'm having a problem I can't find any reference to anywhere else. I'm either having a moment and missing something that should be obvious or there's an issue with the specific build I have that's causing an issue. I have Android Studio 3.5.3 installed and I've tried multiple different virtual devices.
All references to the menu page referenced in my title that I can find online look like this:
While my version of that page looks like this:
That "Import GPX/KML" button always appears to be greyed out. What am I missing here?

Eventually found the cause of this and a solution. The issue was caused by an Android emulator release that updated the Location settings to include a Google Maps based UI. Release notes here, though I've found the 29.2.11 release on 03/12 also contained the UI change: https://androidstudio.googleblog.com/2019/12/emulator-29212-stable-google-maps-ui.html. On my Windows 10 computers this also removed the option of importing a GPX file (not sure if this was an intentional choice by Google or a bug). Not sure if it will affect Linux or Mac users but I've observed the issue on multiple Windows 10 devices.
The fix I found for the issue was to downgrade my emulator to 29.2.1. That version can be found here:
http://dl.google.com/android/repository/emulator-darwin-5889189.zip
http://dl.google.com/android/repository/emulator-windows-5889189.zip
http://dl.google.com/android/repository/emulator-linux-5889189.zip
In Windows, next go to C:\Users[username]\AppData\Local\Android\Sdk\emulator. Those of a cautious disposition can backup this folder, but either way the package.xml file will be needed and everything else can be moved or deleted. Edit the details in the XML to match the version number of the downloaded emulator. Copy the downloaded files to this location along with the package.xml. Then just make sure not to download the update again when Android Studio is opened.

Related

Android Studio Stuck on Loading Start Screen Screen

This is more of a helpful tip/warning than a question. For someone else that might attempt what I did. Android Studio Dolphin (Not sure about other versions) on Mac and also Windows is stuck on Startup Screen after I installed 5 plugins for CSV support at the same time (Rainbow CSV, Cap-Hadoop, ExcelEditor, ExcelReader, and CSV).
Below is the image of the issue
enter image description here
If anyone has a solution that will be awesome.
I just encountered the same issue today, I was able to fix it by deleting those plugins from the app's data roaming folder, you can access them by typing %APPDATA% in the "Run" app (Windows Key + R) or directly in the folder explorer.
Once there, Google -> AndroidStudio2021.3 (or whatever version you are using) -> Plugins.
EDIT: Mac equivalent is User/Library/Application Support/Google/"version of Android Studio"/plugins
Library might be hidden in User folder so Shift+Command+. to show it
(thanks to TwistenTiger)
Hope it helps!

Android Studio Setup Wizard crashing upon changing SDK location

The title mostly explains my problem.
Changing the Android SDK Location within the Setup Wizard crashes the installer, and I am required to change the location due to the fact that the path chosen by default contains non-ASCII characters in my case, hindering me from pressing the "Next" button.
clicking/selecting anything becomes impossible at this point, and I can only close the Setup Wizard via Task Manager.
What I have tried:
Selecting different location paths
Restarting the Setup Wizard
Restarting my Computer
What else could I try to solve this?
Unfortunately I was unable to find other cases of this problem or possible solutions.

"Emulator: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [C:\Android\sdk]!" in Android Studio

I could use the emulator properly two days ago and now it does not work.
I understand there are many people facing this problem. I have read many of them and tried the solutions stated there (set/change the environment variable of ANDROID_SDK_ROOT & ANDROID_HOME, re-install Android Studio, check avd file, etc.), but did not solve the problem.
My sdk file is in C:\Android\sdk and that is the place where Android SDK Manager in Android Studio found Android SDK as is existing. I have set ANDROID_SDK_ROOT value to C:\Android\sdk. I do not know what else to do. Is there anyone who knows how to resolve this?
I am using Android Studio 3.5.3 on Windows 10.
Thank you in advance for your reply.
I got the same problem recently and got it solved after doing some googling and trying..
It's because the emulator can't read path that containing non-ascii strings properly and in default AVD-specific files are located at C:/Users/%USERNAME%/.android/avd/, but somehow the error log doesn't give right hint and mislead us to focus on ANDROID_SDK_ROOT, so you only need to add ANDROID_AVD_HOME variable with a ascii path like ANDROID_AVD_HOME=D:\Android_avd and restart your IDE. After that your emulator will run properly.
More info https://developer.android.com/studio/command-line/variables
Update: You may need to create a subdirectory .android like C:\test\.android and add a ANDROID_SDK_HOME=C:\test variable, then add a empty .emulator_console_auth_token file which locates at the corresponding floder according to the error log, for me it's C:\Users\鍑濈传绉嬭悓\.emulator_console_auth_token.
After that you should run it without any error, I've already tested it.
https://github.com/flutter/flutter/issues/24988
https://www.reddit.com/r/AndroidQuestions/comments/6of9kp/error_when_starting_emulator_panic_broken_avd/dkgzing/
https://inneka.com/programming/android/panic-broken-avd-system-path-check-your-android_sdk_root-value/
You might not need to setup path. Try to run without path.

Android Studio 2.2.1 - Windows 7 Ultimate 32-bit

I am new here so I would like to apologise if I do/say anything wrong firstly. I have Googled this issue and searched Stack Overflow for it as well but it was not the exact problem which I am having.
I am currently doing Rob Percivals Android N Developer course on Udemy.com . In the course they recommend that you work in Android Studio 2.2.1 (which they generously provide a download link for).
I installed this on my machine and immediately I encountered a JDK/JRE issue which I solved through a quick Google. Then when it came time for me to create a new project, a whole new problem appeared.
Here is what I am doing (I'm sure if you're reading this you are 100% familar with Anroid Studio and don't need screenshots hence why I didn't provide any):
Create new project
I am choosing "Phone and Tablet Only" with and API 15
I am checking on "Generate new layout file" and "Backwards Compatibilty"
Finish
Now immediately. an error message pops-up "Grade 'xxxxx' project refresh failed. Unable to start the daemon ... object heap"
The solution proposed on Stack Overflow was to go into the "gradle.properties" file and change "-Xmx1536m" to "-Xmx1024m" and then close and open Android Studio. While this works, my question is do I have to do this every time I start a new project? Is there no permanent fix here?
I have read through all other suggestions such as deleting the .gradle folder in my Users folder and File Menu - > Invalidate Caches/ Restart->Invalidate and Restart but none of them works for me.
I would appreciate any responses.
Answer 1 :
Steps to solve problem in android studio
Click on file and select a other setting from dropdown menu and then select default setting.
Select build,Execution,Deployment option.
Select Compiler
Here add a following line in Additional build process VM option
-Xmx3072m -XX:MaxPermSize=524m
Check This Image
Answer 2 :
Try deleting your .gradle from C:\Users\<username> directory and try again

Vuzix sdk loading error cvc-elt.1.a cannot find the declaration of element 'sdk: sdk-addon'

I am trying to load the SDK for Vuzix through the SDK manager in Android Studio but for some reason it will not display the downloads in 'SDK platforms' and 'SDK tools'.
In the 'SDK update sites' tab next to the Vuzix link I added there is a red exclamation point that displays " cvc-elt.1.a cannot find the declaration of element 'sdk: sdk-addon' " when hovered over.
I am new to SDK's and have no idea what to do for this error. I've downloaded the android SDK's and sources for 26,25,24, and 23 thinking it could help but the error still shows up.
I still don't know what the error means but I solved it by connecting to my hotspot instead of my work network.
So my guess is it was a firewall issue or something, if anyone else has this error.
This means that the parser does not know the namespace. I tried it on Win7 and android studio 2.3.3 with the same result.
I tried it without the namespace or running android studio with oracle sdk. Both failed.
At the moment I try to run it on a virtual linux machine. Android Studio 2.3.3 will parse the addon xml file and download the files.
On Win7 I installed them manually, but they were not really integrated into to system and I stucked when I wanted to use the barcode SDK. maybe I am able some day to add simply this jar lib -
On a first look using linux seems to be the solution. But than I run into problems with the case sensitve file system. The vuzix SDK seems to need a linux system on a case insensitve file system.
*facepalm* and I am quite sure that i will fail at all. On linux a simple GUI compiles only against API 26 without errors.

Resources