On Github weel / android-gradle-presentation
Choose theme to view in: Sky - Beige - Simple - Serif - Night - Default
make: *** [android] Error 2
conversation application/ └── build.gradle # Contains build script └── gradlew # Downloads gradle └── local.properties # sdk.dir= (Path to sdk) └── wrapper ├── gradle-wrapper.jar └── gradle-wrapper.properties
buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.8.+' } } apply plugin: 'android' dependencies { compile fileTree(dir: 'libs', include: '*.jar') } android { compileSdkVersion 19 buildToolsVersion "19.0.0" }
#file build.gradle android { sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src/main/java'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] }
$ ./gradlew tasks # Lists all tasks available $ ./gradlew fetchDepencencies # Fetch static dependencies from jenkins $ ./gradlew installKeystore # creates java keystore needed to sign apk $ ./gradlew build $ ./gradlew installDebug $ ./gradlew lint
Would go for Android studio as its updated more frequently. Altough it might give some more bugs.
Import project as gradle project. Structure is already defined in gradle.