简体   繁体   中英

Android studio issue, application cannot be run, Something rejects my device from running the app

have already applied device change, cable change , Android studio restarting , System restarting , adb restart and killing etc nothing helped One of my log file in sdk tools folder gives this output:

!ENTRY org.eclipse.osgi 4 0 2015-09-10 00:38:33.745 !MESSAGE Application error !STACK 1 java.io.IOException: The folder "C:\\Users\\Mehran%20khan.android\\monitor-workspace.metadata" is read-only. at org.eclipse.core.runtime.internal.adaptor.BasicLocation.lock(BasicLocation.java:206) at org.eclipse.core.runtime.internal.adaptor.BasicLocation.set(BasicLocation.java:164) at org.eclipse.core.runtime.internal.adaptor.BasicLocation.set(BasicLocation.java:137) at com.android.ide.eclipse.monitor.MonitorApplication.start(MonitorApplication.java:53) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg atingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

在此处输入图片说明 the log file shows eclipse problems every where while i have not installed eclipse at all.

Other post had gave a solution for the problem, according to post 1 and post 2 , your problem is caused by %20 in your name:

The folder "C:\Users\Mehran%20khan.android\monitor-workspace.metadata" is read-only. at 

You can follow the steps:

  1. Open a command prompt as administrator. (shift+ctrl+(enter or click) on the icon will do this)
  2. cd C:\\Users
    mklink /d "Mehran%20khan.android" "Mehran khan.android"

  3. Launch Android Studio and Sync the project

I have not tried the solution because I have not come across the problem, if it works, please let me know~

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM