Last active
December 17, 2015 09:39
-
-
Save kimukou/5589057 to your computer and use it in GitHub Desktop.
android gradle plugin test
This file contains hidden or 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
defaultTasks 'clean', 'build' | |
version = "x.y.z" | |
buildscript { | |
repositories { | |
maven { url 'http://repo1.maven.org/maven2' } | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.4' | |
} | |
} | |
apply plugin: 'android' | |
dependencies { | |
//compile files('libs/android-support-v4.jar') | |
compile fileTree(dir: 'libs', includes: ['*.jar']) | |
//[TODO] not running Error Occuerd | |
//compile project(':libraries/libP') | |
} | |
android { | |
compileSdkVersion 17 | |
buildToolsVersion "17.0.0" | |
defaultConfig { | |
minSdkVersion 4 | |
targetSdkVersion 17 | |
} | |
sourceSets { | |
main { | |
manifest.srcFile 'AndroidManifest.xml' | |
java.srcDirs = ['src'] | |
resources.srcDirs = ['src'] | |
aidl.srcDirs = ['src'] | |
//aild.srcDirs = ['src'] //mistaken written http://tools.android.com/tech-docs/new-build-system/user-guide | |
renderscript.srcDirs = ['src'] | |
res.srcDirs = ['res'] | |
assets.srcDirs = ['assets'] | |
} | |
instrumentTest.setRoot('tests') | |
} | |
} |
This file contains hidden or 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
ANDROID_HOME=/Application/android-sdks | |
JAVA_OPTS=-Dgroovy.source.encoding=UTF-8 -Dfile.encoding=UTF-8 |
This file contains hidden or 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
defaultTasks 'clean', 'build','assembleDebug' | |
buildscript { | |
repositories { | |
maven { url 'http://repo1.maven.org/maven2' } | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.4' | |
} | |
} | |
//apply plugin: 'android' | |
apply plugin: 'android-library' | |
dependencies { | |
compile fileTree(dir: 'libs', includes: ['*.jar']) | |
} | |
android { | |
compileSdkVersion 17 | |
buildToolsVersion "17.0.0" | |
defaultConfig { | |
minSdkVersion 4 | |
targetSdkVersion 17 | |
} | |
sourceSets { | |
main { | |
manifest.srcFile 'AndroidManifest.xml' | |
java.srcDirs = ['src'] | |
resources.srcDirs = ['src'] | |
aidl.srcDirs = ['src'] | |
//aild.srcDirs = ['src'] //mistaken written http://tools.android.com/tech-docs/new-build-system/user-guide | |
renderscript.srcDirs = ['src'] | |
res.srcDirs = ['res'] | |
assets.srcDirs = ['assets'] | |
} | |
instrumentTest.setRoot('tests') | |
} | |
} |
This file contains hidden or 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
need update | |
- android update sdk | |
17.0.0 | |
--------------------------------------- | |
see http://tools.android.com/tech-docs/new-build-system/user-guide | |
enviroment eclipse | |
http://andbrissyu.blogspot.jp/2013/04/gradel-android-android.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment