Android Studio Error When Clicking On Android Device Monitor
Solution 1:
I am adding this answer because I think this will be helpful to future visitors.
I ran into the same problem, and managed to solve it. However, My solution is different from the one already mentioned.
First of all, the monitor.ini file is in C:\Users\\AppData\Local\Android\sdk\tools\lib\monitor-x86_64 and config.ini file is in ./configuration folder
When I checked log file it said (at the very end of file) :
java.io.IOException: The folder "C:\Users\.android\monitor-workspace.metadata" is read-only.
So I ran the monitor.exe
as Administrator and it worked fine.
Next I ran Android Studio as Admin and the ADM button worked fine.
Solution 2:
The config.ini file should specify org.eclipse.core.runtime@start in the osgi.bundles property. Here is the default osgi.bundles property, maybe it was (accidentally) changed during an upgrade:
You need to add the following line to the bottom of the eclipse.inimonitor.ini which is a configuration setting file located in your android-sdk\tools\lib\monitor-x86_64\ folder:
-Dosgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start
After that, run Android Device Monitor from the same folder where you have made changes instead from Android Studio and right click on monitorwith eclipse icon>Run As Administrator
Ref :"Unable to acquire application service" error while launching Eclipse
Solution 3:
Insert into search bar "monitor.exe" click up with the right mouse button and run as administrator.
Solution 4:
Error log file saying ".android\monitor-workspace\.metadata" is read-only unable to acquire application service.
After the error I saw the folder created by Android studio is called C:\Users\FirstName%20LastName\.android\monitor-workspace\.metadata
The space in the user folder name is a problem.
Make new user account and copy .android
and .AndroidStudio2.0
folder to the new user folder. Start Android Studio without "Run as Administrator".
Solution 5:
The same eclipse.ini file will be located in Eclipse in this root path of eclipse itself like:
C:\Users\username\Downloads\adt-bundle-windows-x86_64-20140702\eclipse\eclipse.ini
The same file will be located in android studio project:-
C:\Users\username\AppData\Local\Android\sdk\tools\lib\monitor-x86_64\monitor(Type:Configuration settings)
Edit the file as you want.
Post a Comment for "Android Studio Error When Clicking On Android Device Monitor"