输入fileTemplates //未找到Singleton.java.ft

时间:2017-08-19 19:43:25

标签: android android-studio avd

我在这里尝试了不同的解决方案,例如重新启动adb..etc,它们都没有为我工作。 我收到了这个错误:

    Error:Failed to complete Gradle execution.

    Cause:
    An existing connection was forcibly closed by the remote host

也是这个错误:

Entry fileTemplates//Singleton.java.ft not found in C:/Users/admin/Desktop/android-studio/lib/resources_en.jar

。     这是错误日志:

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x44dfd200, pid=456, tid=8188
#
# JRE version: Java(TM) SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16)
# Java VM: Java HotSpot(TM) Client VM (25.51-b03 mixed mode windows-x86 )
# Problematic frame:
# C  0x44dfd200
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

顺便说一句,我正在使用Android Studio 3.0 beta2

有人请帮帮我!!!

2 个答案:

答案 0 :(得分:3)

我遇到了完全相同的问题,我发现即使回滚到Android 2.3也无济于事!

最后我发现只有在针对Java 8更新131或144运行时才会出现此问题。如果我回滚到更新121,则一切正常!

答案 1 :(得分:3)

这是Android Studio测试版中的错误:https://youtrack.jetbrains.com/issue/IDEA-177278

要解决此问题,请添加以下行

-Djdk.util.zip.ensureTrailingSlash=false

归档~/.AndroidStudioPreview3.0/studio64.vmoptions并重新启动Android Studio。