gpt4 book ai didi

安卓工作室 : "A fatal exception has occured" after importing android-samples

转载 作者:太空宇宙 更新时间:2023-11-03 13:24:48 24 4
gpt4 key购买 nike

我在 Android Studio 中导入 GooglePlayGames 的 SampleApps(Git:https://github.com/playgameservices/android-samples.git)时遇到问题。

我遵循了 https://github.com/playgameservices/android-samples#if-youre-using-android-studio 上的指南但是 IDE 显示了一些奇怪的错误。我不得不说我没有经常使用 Android Studio 和 Gradle...

这是错误:

Gradle 'BasicSamples' project refresh failed: A fatal exception has occurred. Program will exit.

我安装了 Android Studio“0.4.2”并更新到“0.4.6”。在两个版本上都发生了错误。

  • 操作系统:Windows 7(64 位)
  • JDK:Oracle 1.7.0_45(64 位)

下面是导入项目后 IDE 及其当前设置的屏幕截图。 enter image description here

更多信息的想法日志显示以下错误:

com.intellij.openapi.externalSystem.model.ExternalSystemException: A fatal exception has occurred. Program will exit. at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:185) at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:115) at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:63) at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:41) at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:37) at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59) at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37) at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49) at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:48) at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:137) at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:123) at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:471) at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4$2.run(ExternalSystemUtil.java:549) at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:464) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178) at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171) at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:373) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:420) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:150) 2014-02-28 08:43:58,169 [ 16187] WARN - .project.GradleProjectImporter -
2014-02-28 08:43:58,169 [ 16187] INFO - .project.GradleProjectImporter - A fatal exception has occurred. Program will exit.

知道是什么导致了这次失败吗?我遵循了 android studio 0.4.2: Gradle project sync failed error 上的指南但这并没有解决问题。

最佳答案

我不知道为什么它现在可以工作...从 IDE 多次重新启动后,项目正在成功构建。现在,“.iml”文件显示在每个示例应用程序中。

没关系...我猜这是关于 Android Studio 的 beta 状态 ;)

关于安卓工作室 : "A fatal exception has occured" after importing android-samples,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22089661/

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