Android Studio ( 0.8.14 기준 ) 에서 빌드하다보면 아래와 같은 오류가 발생할 수 있다.
0.9.0 버전에서는 수정된 이슈지만 해결 방법을 안내해본다
오후 10:04:24 UnsupportedMethodException
Failed to set up Android modules in project 'android-material-drawer-template-master': Unsupported method: SourceProvider.getJniDirectories().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
위 오류가 나는건 Gradle 버전때문이다 현재 0.8.14 기준으로 Gradle 버전이 0.14 일텐데 이걸 0.13 으로 낮춰주면 오류가 해결된다
간단하다ㅋ
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
// classpath 'com.android.tools.build:gradle:0.14.0'
classpath 'com.android.tools.build:gradle:0.13.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}