gpt4 book ai didi

android-studio - Windows 10 : Android Studio Start Failed: Internal error. 没有报告修复工作

转载 作者:行者123 更新时间:2023-12-03 21:48:44 25 4
gpt4 key购买 nike

我一直在努力尝试在 64 位 Windows 10 Pro 下启动 Android Studio。安装程序文件名为 android-studio-ide-193.6626763-windows,所以我假设版本是 193.6626763。
我进行了非常广泛的搜索,发现了很多关于一般“Android Studio 启动失败”的报告,并且我已经尝试了所有建议的修复程序。其中最常见的是重新启动多次(我已经尝试了 10 次但没有成功),仔细检查并验证所有环境变量(全部正确)。当然,我也尝试过多次卸载 Android Studio 和 Java 及其 JDK 和 JRE,甚至使用 Revo Uninstaller 4 Pro 卸载 JetBrains 的东西。然后,我搜索并清理注册表中留下的任何剩余痕迹(相当多),然后搜索每个驱动器和文件夹以查找任何文件系统痕迹并删除所有这些痕迹。
然后我重新启动了几次。然后我重新安装了 Java/JDK/JRE/JetBrains intellij,最后是 Android Studio。当我遇到完全相同的错误时,我重新启动了几次并再次尝试。
没有任何帮助。
以下是错误窗口的全文:

Internal error. Please refer to https://code.google.com/p/android/issues

java.util.concurrent.CompletionException: com.intellij.ide.plugins.StartupAbortedException: Fatal error initializing 'com.android.tools.idea.AndroidInitialConfigurator'
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1643)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:398)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Caused by: com.intellij.ide.plugins.StartupAbortedException: Fatal error initializing 'com.android.tools.idea.AndroidInitialConfigurator'
at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:58)
at com.intellij.serviceContainer.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.kt:247)
at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:50)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:110)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:72)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:65)
at com.intellij.serviceContainer.PlatformComponentManagerImpl.createComponents(PlatformComponentManagerImpl.kt:177)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$loadComponents$3(ApplicationImpl.java:346)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:150)
at com.intellij.openapi.application.impl.ApplicationImpl.loadComponents(ApplicationImpl.java:346)
at com.intellij.idea.ApplicationLoader$startApp$6$loadComponentInEdtFuture$1.run(ApplicationLoader.kt:204)
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640)
... 15 more Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 50: C:\Users\mjb\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\Program Files\Java\jdk-14.0.2;C:\Program Files\Java\jdk-14.0.2\bin;\analytics.settings
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at com.android.tools.analytics.AnalyticsSettings.getSettingsFile$analytics_shared(AnalyticsSettings.kt:336)
at com.android.tools.analytics.AnalyticsSettings.loadSettingsData(AnalyticsSettings.kt:199)
at com.android.tools.analytics.AnalyticsSettings.initialize(AnalyticsSettings.kt:283)
at com.intellij.internal.statistic.persistence.UsageStatisticsPersistenceComponent.initializeAndroidStudioUsageTrackerAndPublisher(UsageStatisticsPersistenceComponent.java:145)
at com.android.tools.idea.startup.AndroidStudioInitializer.setupAnalytics(AndroidStudioInitializer.java:122)
at com.android.tools.idea.startup.AndroidStudioInitializer.run(AndroidStudioInitializer.java:91)
at com.android.tools.idea.AndroidInitialConfigurator.activateAndroidStudioInitializerExtensions(AndroidInitialConfigurator.java:201)
at com.android.tools.idea.AndroidInitialConfigurator.<init>(AndroidInitialConfigurator.java:71)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:44)
at com.intellij.serviceContainer.PlatformComponentManagerImpl.instantiateClassWithConstructorInjection(PlatformComponentManagerImpl.kt:505)
at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:35)
... 28 more

----- JRE 1.8.0_242-release-1644-b01 amd64 by JetBrains s.r.o C:\Program Files\Android\Android Studio\jre\jre
顺便说一下,我无权向 Google 报告这个问题,所以请不要费心提出这个问题。
我可以请求一些帮助吗?谢谢!

最佳答案

ANDROID_SDK_HOME必须指向单个目录。在 Windows 上,有效值类似于 C:\Users\<USERNAME>\.android\哪里<USERNAME>应替换为您的帐户名。
您还可以完全删除此环境变量,以便使用默认位置。
该问题可能是由于此变量的值不正确引起的:多个目录用分号分隔 ( C:\Users\mjb\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\Program Files\Java\jdk-14.0.2;C:\Program Files\Java\jdk-14.0.2\bin; )。不像PATH并且不能指向多个目录。
请注意,您需要在更改环境变量后注销/登录或重新启动。
另见 this answer .

关于android-studio - Windows 10 : Android Studio Start Failed: Internal error. 没有报告修复工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63477517/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com