I recently installed Android Studio and I just wanted to run a basic app on emulator. Firstly, I have encountered several issues because Windows user name contains non-ASCI character. After I set ANDROID_SDK_ROOT, ANDROID_AVD_HOME and ANDROID_EMULATOR_HOME environment variables, I manage to run the emulator. But I couldn't compile and run the android application on it as it times out. When I start the emulator it gives the following error:
Emulator: ERROR: Unable to access 'C:\Users\.....\.emulator_console_auth_token': emulator console will not work
I believe non-ASCII issue causes this error but I have nothing else to do. I cannot change my username.
So far, I have tried to make a link folder and edit all my environment variables using that link.
Can anyone help me about this issue?
Related
Every time I run Android Studio, this loading screen pops up, but Android Studio stays here and doesn't load. It's like this following picture except that the loading bar is loaded all the way but stuck there. I am running Windows 10.
I have tried many things, including setting the system variables JDK_HOME to where my JDK is located and the same for JAVA_HOME. I have also set a path. I ran as admin many times and let AS through a firewall.
I have also restarted and reinstalled countless times.
The version of AS is 2.0, and I am running the latest versions of Java.
Any help?
Open file Android Studio setup directory/bin/idea.properties
Add disable.android.first.run=true to end
Restart Android Studio
PLEASE NOTE: This will break patch updating to the next version. We
now check full binary checksums on the whole installation to prevent
various install corruption bugs as well as to preserve application
signatures. Therefore, make a copy of this file first, and before
updating, put it back.
Please try the following method to fix that issue:
Find the folder of your AndroidStudio: based on the following directory
macOS: ~/Library/Application Support/Google/AndroidStudio[version]
Delete the AndroidStudio folder.
Restart
Ref:https://developer.android.com/studio/known-issues#studio-config-directories
In order to know how to debug the problem, I executed the bin\studio.bat script in the terminal and inspected the actual Idea exceptions in order to fix the problem.
For me, this was the issue:
ERROR - llij.ide.plugins.PluginManager - java.net.BindException: Address already in use: bind
java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
This means the plugin manager is trying to listen on a port that is not available. Is something listening on that port? For me, it was the stupid "excluded ports" by Windows, so I simply stopped the service:
net stop winnat (as administrator), and confirmed that Android Studio started to work.
No need to re-install, delete precious configuration (and plugins, etc.). Just read the log provided by the bin\studio.bat script, and I was able to fix the issue.
I have been having this problem for a couple of days now, and nothing seems to work... I have added the destination of the sdk to the environment variables under ANDRIOD_HOME and ANDROID SDK ROOT and it still won't work... I have just started app development and without Android studio I'm stuck...
what should I do to fix the problem?
where else can I run code in order to start learning how to code apps? (not a tutorial, but just an emulator that I can run my code through it)
I'm struggling with this problem too, currently I'm using Genymotion as emulator. It's mainly for businesses but you can register for personal use only.
When trying to run my device emulator on Android Studio, a pop-up appears:
Previously, I had gotten the error 'Unable to locate adb', but after replacing the default platform_tools folder with the
official version, this pop-up now replaced the last one. I don't think this is a problem with my installation, as I've uninstalled and reinstalled Android Studio and the flutter-sdk several times, each attempt met with the unable to locate adb error, then this one. Could it be the way I'm unzipping a certain file? I'm grasping at straws here.
Are there any fixes for this? To be honest, I'm not even sure where to start. I haven't seen any other page that describes getting this error while trying to launch an emulator.
Thank you for your time!
Edit: Error description in plain-text:
EventQueue.isDispatchThread()=false Toolkit.getEventQueue()=com.intellij.ide.IdeEventQueue#2c5cc720
Current thread: Thread[ApplicationImpl pooled thread 4,4,Idea Thread Group] 1175604479
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,Idea Thread Group] 1657237134
I've tried to create a new device and wipe the data on my current one, but that just results in the unable to locate adb pop-up again (I don't have an antivirus like Avaast enabled by the way), and I am absolutely certain that adb.exe is in my file-path (C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe). I have uninstalled and reinstalled platform-tools from the SDK-manager multiple times, each instance being met with this same error. I cannot run any flutter program, on any emulator. I have not yet tried with a regular Android Studio project. Any ideas?
so, i'm still not sure why the EventQueue error is showing, but what I do know is that the unable to locate adb is a negligible pop-up if you know for certain that adb.exe is in your file-directory. My issue was that I didn't have enough memory to run the emulator on my machine, so be sure to have plenty of room while developing apps (~11 gigs while using Android Studio and flutter-sdk)! That's all, it certainly was a strange experience working through it.
In my case, what helped, was to just restart an emulator.
I'm new to Android Development and I am attempting, and apparently failing, to set up the Android SDK with Eclipse. I thought I had everything working, but when I go to start the emulator I had set up I get the error message:
Starting emulator for AVD 'MyDevice'
Failed to start emulator: Cannot run program "/home/danny/android-sdk-linux//tools/emulator": error=2, No such file or directory
Note: I tried chmod-ing the directory containing the SDK as a search told me that would help, but it didn't work.
I'm on Ubuntu 13.10 and I'm using Eclipse. I also had another problem with the creation of a new project, but I'll wait and ask that in a new post in case the solution to this problem doesn't also solve that.
its your path as you have //in it..
directions on how to modify profile is at here:
install on Ubuntu
I am just beginning to work with Trigger.io on my Mac. Unfortunately I hitting an error when I am to setting up a test Android app. I able to get a web app to build but I am getting the following error when building for android.
[ERROR] failed: Error: Target id is not valid. Use 'android list targets' to get the target ids.
My andriod sdk is in /Applications/android-sdk-macosx and should be working.
If anyone can help it would be much appreciated,
Thanks guys,
kSeudo.
We have seen this problem once before, and are trying to get to the bottom of how the particular setup is causing it - it does not affect all users.
The workaround for now is to either use an actual device for testing, or create and start an AVD manually before using 'forge run android'. You can create AVDs using the AVD manager. To open it up, run 'android' at the command-line and select Tools->Manage AVDs. There are further instructions here:
http://developer.android.com/tools/devices/managing-avds.html