본문 바로가기
[android] 변경이 잦은 gradle 설정 분리하기 [android] 변경이 잦은 gradle 설정 분리하기 http://gmariotti.blogspot.kr/2015/07/how-to-centralize-support-libraries.html -my_settings.gradle 과 같은 형식의 별개의 gradle 파일을 만든다. -// my_settings.gradle ext { variable = value … } android{ ... } -해당 설정이 필요한 gradle 파일에서 apply from: ‘relativePath/my_settings.gradle’ -settings.gradle 은 reserved 된 gradle 파일로, 서브 프로젝트들의 공통 설정을 넣어준다. -gradle 설정을 분리하는 작업은 아래 링크를 참조해보는 것도 좋다.. 2019. 1. 22.
[android] Gradle Tutorial #2 Dependency, Android Libraries and Multi-project setup -external library jar 를 사용하려면 compile configuration 을 사용하면 된다. dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) // api 와 implementation 으로 바뀌었다.} android { ...} -compile 은 main app 을 compile 한다.compile 되는 모든 것은 compile classpath 로 잡히고, final APK 에 포함이 된다. 다음과 같은 compile configuration 을 추가할 수 있고,buildType 을 추가하면 자동으로 compile 이 .. 2018. 10. 5.
Eclipse 에서 Android Studio 로 넘어가기. Eclipse 에서 Android Studio 로 넘어가기. Work spaces 와 Sub-Projects 여 안녕~ Eclipse 에서는 Workspace 와 library projects 개념이 친숙했을 것이다.Android Studio 에서는 projects 들은 Modules, library project 들은 Library Modules 이라는 개념으로 통한다. Module 안뇽~ 반가워~ : ) Module 은 독립적으로 실행 가능하고, 테스트 되고, 디버그 되는 녀석을 이야기한다.각 모듈은 각각의 gradle build file이 필요하다.gradle build file 은 android version range, dependency, meta data 등을 포함한다. 개선된 Interfa.. 2014. 3. 27.
반응형