2014-05-01 5 views
-1
필자가 설치되어 및 줘요에서 오전을 제외하고 내가이 오류를받지 않고 오류

Gradle을 안드로이드 스튜디오를 새로 실패

> Gradle 'android' project refresh failed: 
>    Open quote is expected for attribute "{1}" associated with an element type "language". 

프로젝트를 열 수 있습니다 내 그룹 구성원 모두가 계속 있기 때문에 안드로이드 스튜디오를 재 - 설치

도움이 절실히 필요합니다. 저는 학기 중 그룹 프로젝트를 끝내고 싶습니다. 도와 줘서 고맙습니다. 응용 프로그램 폴더에

settings.gradle

include ':app' 

build.gradle

apply plugin: 'android' 

android { 
    compileSdkVersion 19 
    buildToolsVersion "19.0.1" 

    defaultConfig { 
     minSdkVersion 16 
     targetSdkVersion 19 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      runProguard false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     } 
    } 
} 

dependencies { 

    compile 'com.android.support:appcompat-v7:+' 
    compile 'com.google.android.gms:play-services:4.3.23' 
    compile 'com.android.support:support-v4:18.0.0' 
    files('libs/json-simple-1.1.1.jar') 
    compile files('libs/json-simple-1.1.1.jar') 
} 

Gradle을 폴더

// Top-level build file where you can add configuration options common to all sub-projects/modules. 

buildscript { 
    repositories { 
     mavenCentral() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:0.7.+' 
    } 
} 

allprojects { 
    repositories { 
     mavenCentral() 
    } 
} 

업데이트에 build.gradle : 또 다른 재 intstall했다 안드로이드 스튜디오 그리고 지금 나 에게이 오류를주는.

Failed to refresh Gradle project 'android' 
      Out of memory: Java heap space. Configure Gradle memory settings using '-Xmx' JVM option (e.g. '-Xmx2048m'.) 
      Please fix the project's Gradle settings. 
      Gradle settings 
+0

이 오류 주위의 코드를? – nikis

+0

당신은 당신의 "빌드를 게시 할 수 .gradle "파일,"settings.gradle "파일이 있습니다.이 파일이 팀 동료와 다른 경우가있을 수 있습니까? 사용중인 버전 제어 시스템은 무엇입니까? – AndroidGuy

+0

그래, 난 완전히 gradle 파일을 게시하지 않아 죄송합니다. 우리는 버전 관리를 위해 자식을 사용하고 있습니다 .. – Stephen

답변

0

당신은 폐쇄 따옴표 (") 대신에 개방 따옴표 (")를 입력 한 수 있습니다. 시작과 속성의 끝 부분에 따옴표를 변경합니다.

+0

OP가 정확하다고 가정 할 때, 그룹 회원들은 아무런 문제없이 어떻게 이것을 열어 냅니까? – RichieHH

+0

좋은 점, 그렇게해서는 안됩니다. – Eoin

관련 문제