错误:无法完成Gradle执行。原因:未知。更新android studio到ver 2.2.3之后

时间:2016-12-30 08:28:07

标签: android android-studio android-gradle

我正在使用android studio 2.2.3,我正在使用

if (get_magic_quotes_gpc()) {
        $svg = stripslashes($svg);  
}
// check for malicious attack in SVG
if(strpos($svg,"<!ENTITY") !== false || strpos($svg,"<!DOCTYPE") !== false){
        exit("the posted SVG could contain code for a malicious attack");
} 

$tempName = $filename.'_'.$id;
// allow no other than predefined types
if ($type == 'image/png') {
        $typeString = '-m image/png';
        $ext = 'png';

} elseif ($type == 'image/jpeg') {
        $typeString = '-m image/jpeg';
        $ext = 'jpg';
} elseif ($type == 'application/pdf') {
        $typeString = '-m application/pdf';
        $ext = 'pdf';
} elseif ($type == 'image/svg+xml') {
        $ext = 'svg';
} else { // prevent fallthrough from global variables
        $ext = 'txt';
}

请帮助人

enter image description here

1 个答案:

答案 0 :(得分:0)

转到

文件 - &gt;设置 - &gt;构建,部署&amp;执行 - &gt;构建工具 - &gt; Gradle-&gt; Gradle Vm选项

现在将此值-Xmx256m放入框中,然后点击“应用”按钮。