简体   繁体   English

Android Studio问题,无法运行应用程序,某些原因拒绝了我的设备运行该应用程序

[英]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: 已经应用了设备更改,电缆更改,Android studio重新启动,系统重新启动,adb重新启动和终止等操作,但没有任何帮助。sdk tools文件夹中的我的一个日志文件给出了以下输出:

!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. !ENTRY org.eclipse.osgi 4 0 2015-09-10 00:38:33.745!MESSAGE应用程序错误!STACK 1 java.io.IOException:文件夹“ C:\\ Users \\ Mehran%20khan.android \\ monitor-workspace。元数据”为只读。 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 在org.eclipse.org.eclipse.core.runtime.internal.adaptor.BasicLocation.lock(BasicLocation.java:206)在org.eclipse.core.runtime.internal.adaptor.BasicLocation.set(BasicLocation.java:164) com.android.ide.eclipse.monitor.MonitorApplication.start(MonitorApplication.java:53)上的.core.runtime.internal.adaptor.BasicLocation.set(BasicLocation.java:137)在org.eclipse.equinox.internal.app org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication.EclipseAppHandle.run(EclipseAppHandle.java:196)org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start处的.EclipseAppHandle.run(EclipseAppHandle.java:196) (EclipseAppLauncher.java:79)在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)上的sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)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) 于org.eclipse.equinox.launcher的java.lang.reflect.Method.invoke(Method.java:497)的atingMethodAccessorImpl.java:43)在org.eclipse.equinox.launcher的Main.invokeFramework(Main.java:629) org.eclipse.equinox.launcher.Main.run(Main.java:1438)上的.Main.basicRun(Main.java:584)

在此处输入图片说明 the log file shows eclipse problems every where while i have not installed eclipse at all. 当我根本没有安装Eclipse时,日志文件会在所有地方显示Eclipse问题。

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: 根据帖子1帖子2的说法,其他帖子已经给出了解决方案,您的问题是由您的名字中的%20引起的:

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) (在图标上按Shift + Ctrl +(输入或单击)将执行此操作)
  2. cd C:\\Users
    mklink /d "Mehran%20khan.android" "Mehran khan.android"

  3. Launch Android Studio and Sync the project 启动Android Studio并同步项目

I have not tried the solution because I have not come across the problem, if it works, please let me know~ 我没有尝试过该解决方案,因为我没有遇到问题,如果可行,请告诉我〜

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从Android Studio在我的设备中安装Android应用 - Cannot install Android app in my device from Android Studio 无法将项目应用程序从 Android Studio 运行到我的外部设备 - Unable to run project app from Android Studio to my external device Andorid Studio无法在我的Android设备上运行 - Andorid studio cannot run in my android device 从android studio运行的应用程序不再保存到我的android设备上 - Running app from android studio does not save onto my android device anymore 为什么我的Android Studio应用无法在Android设备上运行? - Why does my Android Studio app fail to run on an Android device? Android Studio - 在设备上运行应用程序 - Android Studio - run application on device 运行我的程序时,Android Studio无法找到设备 - Android studio cannot find device when I run my program visual studio-cordova-在Android设备上运行我的应用 - visual studio - cordova - running my app on an Android device 从设备上卸载我的应用程序使我无法再从 Android Studio 运行它 - Uninstalling my app from the device makes it so that I can no longer run it from Android Studio 运行android应用程序时,我的设备中安装了两个应用程序 - Two app installed in my device while running android application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM