less than 1 minute read

우선 IntelliJ IDEA 2018.1에서 Android Studio 3.0과 통합될 예정이라 2018.1 버전 이후를 사용하면 특별한 설정을 할 필요가 없을 것이다. 현재 IntelliJ IDEA 2017.3.5를 기준으로 설명한다.

설치방법

  1. 기본 안드로이드 프로젝트를 설치한다.
  2. [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
     }
    
  3. [Project Root]/gradle.propertiesandroid.injected.build.model.only.versioned=3을 추가한다.
  4. [Project Root]/gradle/wrapper/gradle-wrapper.propertiesdistributionUrl을 변경한다.
     distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    
  5. [Project Root]/app/build.gradledependenciescomplileimplementation testCompiletestImplementation androidTestCompileandroidTestImplementation로 변경한다. Android Gradle 3.X.X로 넘어오변서 변경되었다.

Tags:

Categories:

Updated:

Leave a comment