IntelliJ IDEA 2017.3.5 Android Gradle 3.0.1 설치
우선
IntelliJ IDEA 2018.1에서Android Studio 3.0과 통합될 예정이라2018.1버전 이후를 사용하면 특별한 설정을 할 필요가 없을 것이다. 현재IntelliJ IDEA 2017.3.5를 기준으로 설명한다.
설치방법
- 기본 안드로이드 프로젝트를 설치한다.
[Project Root]/build.gradle의 dependencies의 Android Gradle 버전을3.0.1로 수정한다.buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }[Project Root]/gradle.properties에android.injected.build.model.only.versioned=3을 추가한다.[Project Root]/gradle/wrapper/gradle-wrapper.properties의distributionUrl을 변경한다.distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip[Project Root]/app/build.gradle의dependencies의complile은implementationtestCompile은testImplementationandroidTestCompile은androidTestImplementation로 변경한다.Android Gradle 3.X.X로 넘어오변서 변경되었다.
Leave a comment