我在Android Studio中为GooglePlayGames(Git:https://github.com/playgameservices/android-samples.git)导入SampleApps时遇到问题.
我遵循了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(64Bit)
> JDK:Oracle 1.7.0_45(64位)
下面是导入项目后IDE及其当前设置的屏幕截图.
更多信息的想法日志显示以下错误:
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状态有关;)
总结以上是内存溢出为你收集整理的Android Studio:导入android-samples之后,“发生致命异常”全部内容,希望文章能够帮你解决Android Studio:导入android-samples之后,“发生致命异常”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)