I have a major issue with Android development on Windows 7. I was working with some Nativescript app for about a month, until Android studio performed some routine update, few days ago. Since then, i'm unable to get the environment running: Every time i open the Emulator, adb.exe "stops working" after the phone loads. I tried following the steps recommended here: How to completely uninstall Android Studio from windows(v10)?
No success. I reinstalled Android studio and android SDK multiple times. I tried also different emulator images- same result.
I will mention, that my SDK was installed initially using choco, as instructed in the Nativescript docs:
choco install android-sdk -y
Now, every time i want to reinstall it, i need to add the --force flag.
Bottom line: How can i completely reset my system to the state before any Android development environment was installed, in order to rectify this situation? Following the steps in the above link didn't help. There's probably something interfering.
Any ideas? I cant develop anything...
Had the same issue recently, adb.exe just started and kept crashing after installation of some updates offered by Android Studio.
What helped was manual re-installation of platform-tools, back to version 28.
So steps:
1) https://dl.google.com/android/repository/platform-tools_r28.0.0-windows.zip - download previous version of platform tools;
2) navigate to %AppData%\..\Local\Android\Sdk\platform-tools;
3) replace all files inside this folder with files from zip archive of version 28 downloaded in step 1.
Other steps I've tried before: full re-installation of Android Studio, SDK, emulators and so on, but I believe the actual fix was reverting back to platform-tools version 28.
After that my emulators (API 28, Android 9.0) went back to life.
Related
I installed Android Studio 3.0.1 and everything seemed to go as expected. When first starting up, I got to the point of downloading the SDK components, and received the following error.
"Android Support Repository, Android SDK Tools and 7 more SDK components were not installed"
Has anybody every seen this? Any ideas or suggestions are greatly appreciated.
I am using Windows 10 64 bit. I was able to capture some more details of the failure.
"java.nio.file.AccessDeniedException: C:\Users\gcleveland\Documents\Android\SDK2\extras\android\m2repository.backup.installer.installData -> C:\Users\gcleveland\Documents\Android\SDK2\extras\android\m2repository.installer.installData Warning: Failed to move original content of C:\Users\gcleveland\Documents\Android\SDK2\extras\android\m2repository back into place! It should be available at C:\Users\gcleveland\Documents\Android\SDK2\extras\android\m2repository.backup"
There are multiple other instances like this but different directories.
It is almost as if my permissions are not correct. I have full administrative rights and run android studio as an administrator.
I ran into similar issues with the exe file version and resolved them by instead downloading and installing the zip version of Android Studio 3.0.1 for Windows 10 (https://dl.google.com/dl/android/studio/ide-zips/3.0.1.0/android-studio-ide-171.4443003-windows.zip). After unzipping this file, I simply executed its bin/studio64.exe. I also switched my networking connection to NOT need a proxy, which may also have helped to resolve the issue.
Recently I experienced that Android Studio is hanging a lot. Right in the middle of typing in any editor it will hang and block me from doing anything else for a couple of seconds. Restarting or killing adb wouldn't help.
After a while I realized that this happens if the documentation is being loaded and displayed. This happens mostly for Android documentation, which is quite verbose and also seems to contain images and formatting.
I already tried switching off the Auto-update from source option, but that doesn't change anything.
Any ideas what could cause Android Studio to block while it's loading or displaying (or doing whatever with) the documentation?
I'm using Android Studio 2.1.1, the latest build with the security fix.
you can check this solution: https://stackoverflow.com/a/26149069/2133585
Here's what fixed it for me:
Make sure you have the Documentation package downloaded in SDK Manager.
Exit Studio if it's running.
Delete the file named "jdk.table.xml" located in ~/.AndroidStudioX.Y/config/options/ (remember to take a backup
first!).
Relaunch Android Studio. should work correctly now and it should regenerate the file automatically.
Note:
This worked for me on Ubuntu 14.04 & Android Studio 0.8.11 (EDIT: Several users are reporting this solution also works for
newer versions of Android Studio).
If it still doesn't work, try deleting and re-downloading the Documentation package from inside Android SDK Manager then try the
above steps.
If you're running Windows, the file is located at "%UserProfile%.AndroidStudio\config\options", and if you're running
OS X, it's located at "~/Library/Preferences/AndroidStudio/options"
(credits to #Gero and #Alex Lipov).
Fix still works for AS 2.2.3 and MacOS 10.12.2 Sierra
After my Visual Studio install suddenly lost the ability to deploy my Xamarin app to an android emulator, I decided to uninstall EVERYTHING (Visual Studio, Xamarin, Android SDK) and start over.
Everything has been re-installed, but the Android SDK does not include the adb.exe file. The place where I expect to find it is here:
C:\Users\costcopc\AppData\Local\Android\android-sdk\platform-tools\adb.exe
What went wrong? How can I fix this?
I opened a cmd.exe prompt and searched the entire drive (C:>) to find the file - it doesn't exist.
Re-Tracing My Steps
In case it helps, I will retrace my steps...
Uninstalling
I un-installed Xamarin first, according to instructions. I wanted a blank slate so, per those instructions, I also uninstalled:
Android SDK Tools
GTK#
I did not uninstall the Java SDK because, as my very first link explained, I had already used a system restore point to recover a stable version of the Java SDK.
Next up was Visual Studio. I used its installer for the uninstallation, and then I followed the post-uninstall "Secondary installer" instructions it gave.
Re-Installing
I re-installed VS 2015 first, then I launched the Xamarin Studio installer, which in turn installed the Android SDK for me:
With everything seemingly installed successfully, I launched Visual Studio and tried to open the Android SDK Manager with Tools -> Android -> Android SDK Manager.
It worked, but I noticed that a cmd.exe window opened and remained opened, containing a couple strange error messages.
There it is: "The process cannot access the file because it is in use by another process."
Despite the anomalies, I did use the SDK manager to install 4 more packages.
Still, I was feeling uneasy about the error messages so I figured it was time to reboot. After the reboot the situation became worse. Before, Visual Studio was at least able to launch the android SDK manager. Now it was altogether unable to launch it:
That oddball SDK path C:\Users\costcopc\AppData\Local\Android\ANDROI-1 had disappeared!
Xamarin Studio was also unable to launch the SDK Manager:
Now I chose to execute a Xamarin Studio installation "repair." Xamarin acted like the Android SDK was installed, and so it did nothing to fix it.
Again, what can I do to fix this?
I solved this issue by selecting Tools/Xamarin Account in VS 2017RC.
Then the browser opens, go into your account and download and install Xamarin from here.
I'd recommend you installing VS 2015 community ISO from here:
https://go.microsoft.com/fwlink/?LinkId=615448&clcid=0x409
after installation, open VS > tools> options > Xamarin , and check that your
SDK is detected successfully:
If something is not detected, then run android SDK manager as administrator then make sure that the SDKs are installed/updated correctly.
just Run visual studio as administrator and it will be solved(map directory up to end folder where actual tool are residing)
I recently updated my version of eclipse from 3.6 to 3.7
(Using Mac OS X 10.6.8 & Eclipse 3.7). I did this to install EGit. Since, then I have noticed that none of the changes to my App are being reflected in my AVD's.
When setting up EGit I realized that it had moved my working location to another location on my system. I figured this might be the issue, so I removed my EGit repository and restored my App from a backup. The problem continue leading me to believe the problem likely lies (I could be wrong) with the upgrade to Eclipse 3.7.
I have tried many other things, but none seem to work. So far I have..
Uninstalled my App from the AVD, and then re-ran application. This made no difference.
I have tried creating a new fresh AVD. Same deal here, same un-change version of app is applied.
I tried stop and restarting the adb.
I have tried to 'Clean up' the Project.
All attempts so far have failed.
Has anyone else out there seen this problem or have any suggestions?
I think the next thing I might try is updating my Android plug-ins. If this fails I Afraid my next option is to uninstall Eclipse completely and start from scratch.
Any suggestions would be great.
I solved the problem.
My guess of updating the Android SDK was correct.
In Elipse I went to Window -> Android SDK Manager.
I installed the available updates:
Android SDK Tools 22.0.1,
Android SDK Platform-Tools 17,
Android SDK Build Tools 17. After the install restarted Eclipse and then boom! My AVD was back and showing my newest changes. Hope this helps some one.
I am running windows 7, and am trying to configure android to work in titanium...
I have installed both 32 and 64 bit versions of Java... (android didn't seem to work with the 64 bit version)...
When you go to configure android from within titanium I am getting the following error...
Items required:
•Add-Ons Google APIs 7, Google APIs 8
When you then click install or update Android, Android SDK manager opens and selects what I need to install... I click accept and it downloads and installs...
However once that completes, I still have the same error when going back to titanium...
It should not be this hard... Any ideas?
I've had issues with the 64bit version. Have you tried uninstalling the 64bit versions of Java?
Also, have you run Android to update all the libraires?
I know it's an old question but in case anyone googles it like I have, this is what helped me:
make sure to install Google APIs at least for the latest Android SDK that you have installed
make sure to have Android 2.3.x installed. This is critical, Titanium Studio somehow couldn't link to my Android SDK (set outside titanium folder) even though I had half a dozen higher than 2.3 SDKs installed
restart Titanium Studio
Further more, in case this doesn't help, try clean-starting Titanium Studio, like so:
close Titanium Studio
go to your Titanium Studio installation folder (e.g. "C:\Program Files\Titanium Studio")
open TitaniumStudio.ini
copy these two lines at the beginning of the file:
-clean
true
save file and start Titanium Studio.
After succesfull operation you can remove those two lines from .ini file as they are not needed.