Issue setting up Android SDK - Failed to Start Emulator - android

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

Related

Error installing Android Emulator through "SDK Manager", can not manually install either

When I try to run the emulator through Android Studio, I get the message the emulator is not installed, so I try to install it. Every time I get the following error:
An error occurred while preparing SDK package Android Emulator: Connection closed at byte 320157527. Expected 323030753 bytes..
So, per this solution I tried manually installing the emulator and placing it in the [Android SDK folder]\emulator folder. Upon doing this, it would still tell me it was missing the emulator & try to install it in [Android SDK folder]\emulator-2, since the "normal" folder existed.
How do you get Android Studio to recognize manually installed packages?
Fortunately, I have Android Studio working on another PC. The only difference I could find between the two installations, was the manual install of the emulator was missing the package.xml file.
I copied this from my other PC & now everything is working perfectly!
I hope this helps someone else, or really me next time I run into this & can't remember how to fix it.

Unable to access .emulator_console_auth_token

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?

Error on running new project in Android studio

I just installed Android Studio 0.3. After creating a new Project (I've not changed the code) I get error on R.layout.activity_main and every line that uses R class saying
Cannot resolve symbol R
.
Also on the bottom of the screen in warning/console segment I get this error:
Gradle: Execution failed for task ":First_Test:mergeDebugResources".
/home/alireza/AndroidStudioProjects/First_TestProject/First_Test/src/main/res/drawable-xhdpi/ic_launcher.png:
Error: Cannot run program
"/home/alireza/IDEs/android-studio/sdk/build-tools/android-4.4/aapt":
error=2, No such file or directory
It's my first time I use Android studio and I'm new to Linux (mint Olivia) so I would be very greatful if you help me this issue
The R resolution error is due to not having built the class files yet. It will go away after you build once.
The second error is likely due to your Android SDK Tools not being updated. Go to your SDK Manager (within Android, Tools > Android > SDK Manager) and update "Android SDK Build-tools". Restart Android Studio and try again.
This is funny but solution was restarting computer! After reboot android studio worked perfectly and I was able to run "Hello world!" app on my device.
If you are having this issue on a 64bit version of linux (ubuntu/mint) rebooting does not help.
This answer however worked for me on Linux mint 16:
https://stackoverflow.com/a/19623295/183091
This error has something to do with the amount of free RAM in your system.
Freeing some RAM (closing other programs) can solve this problem.

Cannot create new Android application project or access Android preferences using Eclipse Kepler

I am using Ubuntu 13.04 and Eclipse Keplar.When I try to create a new Android application project the following message is displayed:
The selected wizard could not be started.
Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizard.
An error occurred while automatically activating bundle com.android.ide.eclipse.adt (241).
I cannot access the Window->Preferences->Android page,when I try the following message is displayed:
Unable to create the selected preference page.
An error occured while automatically activating bundle.com.android.ide.eclipse.adt.
No updates for the ADT plugin or the Android SDK were found.
What should I do to restore the ADT plugin to good working order?
Thanking You
Ran into this same problem today running a Windows 7 machine. It has been a while since this question has been asked, but having an answer here might prove useful since this thread is ranking highly on Google for the error message:
I found that cleaning all projects in Eclipse and restarting it once it was finished solved the issue and I was able to successfully create a new Android project afterwards.
Eclipse menu: Project >> Clean
Similar problem/answer found on stackoverflow.
From console, run eclipse -clean (you'll need to make sure eclipse binary is in your PATH, or use full path to the binary).

Xamarin Android installation fails

I'm trying to install Xamarin for Android and I'm having a really weird issue and I can't find any help anywhere.
Once the installation starts and I click on Next button in the screen with the answer about if I want to collect information, it doesn't do anything. Checking the log file it always cancel the installation due to an internal error, I will copy the log section that's giving me the information:
[287C:256C][2013-01-13T14:02:06]: Caching bundle from: 'C:\Users\MAXIPO~1\AppData\Local\Temp\{e9ab888e-6304-4ba3-b36a-b1a350d36592}\.be\XamarinSetup.exe' to: 'C:\ProgramData\Package Cache\{e9ab888e-6304-4ba3-b36a-b1a350d36592}\XamarinSetup.exe'
[287C:256C][2013-01-13T14:02:07]: Registering bundle dependency provider: {e9ab888e-6304-4ba3-b36a-b1a350d36592}, version: 3.0.0.0
[2464:19E4][2013-01-13T14:02:07]: Prompt for source of container: WixAttachedContainer, path: C:\Soft\Android\XamarinSetup.exe
[2464:19E4][2013-01-13T14:02:07]: Failed to resolve source for file: C:\Soft\Android\XamarinSetup.exe, error: 0x80070642.
[2464:19E4][2013-01-13T14:02:07]: Error 0x80070642: Failed while prompting for source (original path 'C:\Soft\Android\XamarinSetup.exe').
[2464:19E4][2013-01-13T14:02:07]: Failed to acquire container: WixAttachedContainer to working path: C:\Users\MAXIPO~1\AppData\Local\Temp\{e9ab888e-6304-4ba3-b36a-b1a350d36592}\4675EB82A6A7F3C48F80571AB6E8495BD1C803BA, error: 0x80070642.
[2464:2930][2013-01-13T14:02:07]: Error 0x80070642: Failed while caching, aborting execution.
Failed to resolve source for file : XamarinSetup.exe. This file doesn't exist ever, I've never found it even refreshing the folder over and over during installation in case it's deleted during the process. I can see it starts copying files into the temp folder, and suddenly all of them dissapear (I'm sure due to the cancellation). I'm running it in Windows 7, any idea? I've been looking for a solution for days even changing permissions in my system, giving access to guest, my user, administrator, and so worth to all the paths just in case.
Regards.
Despite of the problem itself I could finally install everything. Thanks to the Xamarin support I knew the automatic installation doesn't work always, so it's much better to install every package manually. So the instructions they gave me are the following ones:
It looks like a manual installation would get the trial version of Mono for Android installed. Please follow the below instructions:
Please download and install packages shown below in the order listed:
JDK 1.6: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html
Please choose the jdk-6u31-windows-i586.exe installer from the list above.
Android SDK: http://dl.google.com/android/installer_r20-windows.exe
After the main installer is done, please open the SDK Manager and install the following platform APIs: 7,8,10,12,14
GTK#: http://download.xamarin.com/Installer/gtk-sharp-2.12.10.win32.msi
MonoDevelop: http://download.xamarin.com/monodevelop/Windows/MonoDevelop-3.0.5.msi
Mono for Android SDK: http://download.xamarin.com/MonoforAndroid/Windows/mono-android-4.4.55.104956787.msi
You can skip steps 3 and 4 if you don't need/want to use MonoDevelop and use VisualStudio (2010 Professional or better) instead. In that case you must have VS installed before proceeding with step 5.
Always keep in mind to install the API's in the step 2, also JDK 1.6 is not the last one anymore so it will prompt you to install 1.7 instead of this one.

Categories

Resources