Last active
December 21, 2015 13:49
-
-
Save emil10001/6315075 to your computer and use it in GitHub Desktop.
android, intellij, gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lives in the project directory | |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.5.+' | |
} | |
} | |
apply plugin: 'android' | |
repositories { | |
mavenCentral() | |
} | |
android { | |
compileSdkVersion 18 | |
buildToolsVersion "18.0.1" | |
defaultConfig { | |
versionCode 1 | |
versionName '0.1' | |
minSdkVersion 8 | |
targetSdkVersion 18 | |
} | |
} | |
dependencies { | |
compile 'com.android.support:support-v4:18.0.+' | |
compile 'com.android.support:appcompat-v7:18.0.+' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this lives in the outter directory | |
task wrapper(type: org.gradle.api.tasks.wrapper.Wrapper) { | |
gradleVersion = '1.7' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this lives in the outter direcotry | |
include ':ProjectName' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
outer_project | |
+--project | |
+--src | |
| +--main | |
| | +--java | |
| | | +--com.package.name | |
| | +--res | |
| | +--AndroidManifest.xml | |
| | \--icon.png | |
| | | |
| \--build.gradle | |
| | |
+--build.gradle | |
+--settings.gradle | |
+--gradle (generated wrapper dir) | |
\--gradlew (generated wrapper script) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment