2016-10-19 6 views
1

현재 저는 ionic cordova 프로젝트를 구축 중입니다. 그러나 다음 오류로 인쇄됩니다. enter image description hereIonic Build Error : 루트 프로젝트 구성 'Android'

다음은 내 gradle-wrapper.properties

#Wed Apr 10 15:27:10 PDT 2013 
distributionBase=GRADLE_USER_HOME 
distributionPath=wrapper/dists 
zipStoreBase=GRADLE_USER_HOME 
zipStorePath=wrapper/dists 
distributionUrl=../gradle-2.13-all.zip 

다음 build.gradle

buildscript { 
    repositories { 
     mavenCentral(); 
     jcenter() 
    } 

    // Switch the Android Gradle plugin version requirement depending on the 
    // installed version of Gradle. This dependency is documented at 
    // http://tools.android.com/tech-docs/new-build-system/version-compatibility 
    // and https://issues.apache.org/jira/browse/CB-8143 
    dependencies { 
     classpath 'com.android.tools.build:gradle-2.13-all' 
    } 
} 

// Allow plugins to declare Maven dependencies via build-extras.gradle. 
allprojects { 
    repositories { 
     mavenCentral(); 
     jcenter() 
    } 
} 

task wrapper(type: Wrapper) { 
    gradleVersion = '2.13' 
} 

답변

1

변화

,691에

dependencies { 
     classpath 'com.android.tools.build:gradle-2.13-all' 
    } 

에서 현재 종속 클래스 경로

dependencies { 
     classpath 'com.android.tools.build:gradle:2.1.0' 
    } 

문제가 해결되지 않는 경우 알려주십시오.

+0

여전히 오류가 있습니다. 하지만 안드로이드 플랫폼의 파일과 사본으로 문제를 해결하고 안드로이드 스튜디오 폴더에 붙여 넣습니다. 다음으로 안드로이드 스튜디오에 내 안드로이드 앱을 만듭니다. –

+0

좋아요. 안드로이드 스튜디오에서 한 번 실행하면 문제가 해결 될 것입니다. – Navneeth

+0

네, 안드로이드 SDK 경로를 찾을 수 없다고 생각합니다. 어쨌든, 나는 그 문제를 해결했다. –