gradle - Travis CI .travis.yml Configuration for Android -


i'm trying use travis ci android project builds failing. tried various configurations in .travis.yml them failed. have 4 different build.grade maybe that's problem.

my gradle files:

project:

buildscript { repositories {     jcenter() } dependencies {     classpath 'com.android.tools.build:gradle:2.2.2'     classpath "io.realm:realm-gradle-plugin:2.1.1"      // note: not place application dependencies here; belong     // in individual module build.gradle files } }  allprojects { repositories {     jcenter() } }  task clean(type: delete) { delete rootproject.builddir } 

app:

apply plugin: 'com.android.application'  android {     compilesdkversion 24     buildtoolsversion "24.0.3"     defaultconfig {         applicationid "com.github."     minsdkversion 19     targetsdkversion 24     versioncode 1     versionname "1.0"     testinstrumentationrunner "android.support.test.runner.androidjunitrunner"      renderscripttargetapi 19     renderscriptsupportmodeenabled(true) } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2',         {     exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:24.2.1' testcompile 'junit:junit:4.12' compile 'io.reactivex:rxandroid:1.1.0' compile 'io.reactivex:rxjava:1.1.0' compile 'com.jakewharton:butterknife:6.1.0' compile 'com.squareup.picasso:picasso:2.5.2' compile project(':domain') compile project(':data') } 

data:

apply plugin: 'com.android.library' apply plugin: 'realm-android'  android {     compilesdkversion 24     buildtoolsversion "24.0.3"  defaultconfig {     minsdkversion 19     targetsdkversion 24     versioncode 1     versionname "1.0"      testinstrumentationrunner "android.support.test.runner.androidjunitrunner"  } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } }  }  dependencies { compile filetree(dir: 'libs', include: ['*.jar']) androidtestcompile('com.android.support.test.espresso:espresso-core:2.2.2', {     exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:24.2.1' testcompile 'junit:junit:4.12' testcompile "org.mockito:mockito-core:1.+" // rxjava compile 'io.reactivex:rxjava:1.1.0' // retrofit compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'com.squareup.okhttp:okhttp:2.3.0' compile project(':domain') compile 'io.reactivex:rxandroid:1.1.0' } 

domain:

apply plugin: 'java'  //noinspection groovyunusedassignment sourcecompatibility = 1.7 //noinspection groovyunusedassignment targetcompatibility = 1.7  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     // rxjava     compile 'io.reactivex:rxjava:1.1.0'     compile 'junit:junit:4.12' dependencies { testcompile "org.mockito:mockito-core:1.+" }  } 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -