事件日志中的Android第一个应用程序错误

时间:2016-03-26 15:27:31

标签: android android-studio

希望我找到一个可以帮助我使用我的第一个Android应用程序的人,我刚刚创建了一个新项目,起初我在事件日志中收到以下错误:

5:06:35 PM Gradle sync started
5:06:35 PM Gradle sync failed: Invalid Project Jdk
5:06:35 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:07:14 PM Gradle sync started
5:07:15 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:07:25 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:07:35 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:07:45 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:07:56 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:08:01 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:08:06 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:08:11 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:08:16 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:15:58 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:16:03 PM AssertionError: update failed for ActionGroup:  (The virtual device to render the layout with)[]: Already disposed: Module: 'MobileSupport'
5:16:08 PM com.intellij.diagnostic.MessagePool$TooManyErrorsException: Too many IDE fatal errors. Monitoring stopped.

我还没有做任何事情,也没有展示应该让我工作的手机。提前谢谢。

3 个答案:

答案 0 :(得分:0)

请在android-studio中尝试:

  1. 构建>>清洁项目
  2. 重启android-studio

答案 1 :(得分:0)

  1. 看起来Android工作室无法找到该文件夹 您的JDK所在的位置。如果您已经下载了JDK, 转到

    档案 - >项目结构 - > SDK位置标签 - >在JDK位置 文本框

    为它提供解压缩JDK的正确路径 文件夹中。

  2. 另一种可能性是,您的SDK路径可能包含空格             字符,要解决这个问题,请转到

    档案 - >项目结构 - > SDK位置标签 - > Android SDK 位置文本框

    确保SDK路径不包含空格             例如:C:\Program Files\Android\sdk Program Files文件夹             这里包含一个空格,所以将SDK移动到另一个文件夹             没有空格,并提供这条路径。

答案 2 :(得分:0)

尝试删除" .idea"夹