I am getting the below mentioned error while building android projects on travis.
Could not determine the dependencies of task ':projectname:packageDebug'.
My travis.yml looks like below:-
language: java
jdk: oraclejdk7
env:
matrix:
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
before_install:
# Install base Android SDK
- sudo apt-get update -qq
- chmod +x gradlew
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch > /dev/null; fi
- wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
- tar xzf android-sdk_r22.3-linux.tgz
- export ANDROID_HOME=$PWD/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# Install required components.
# For a full list, run `android list sdk -a --extended`
# Note that sysimg-19 downloads only ARM, because only the first license query is accepted.
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
- echo yes | android update sdk --all --filter build-tools-19.0.0 --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-19 --no-ui --force > /dev/null
- echo yes | android update sdk --filter sysimg-19 --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
and my buid.gradle looks like below:-
apply plugin: 'android'
apply plugin: 'hugo'
android {
compileSdkVersion 19
buildToolsVersion "19.0.2"
defaultConfig {
minSdkVersion 19
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:19.0.1'
compile 'com.android.support:support-v4:19.0.1'
compile 'com.squareup.picasso:picasso:2.2.0'
compile 'com.squareup.retrofit:retrofit:1.4.1'
compile 'com.jakewharton.timber:timber:2.2.2'
compile 'com.netflix.rxjava:rxjava-core:0.16.1'
compile 'com.netflix.rxjava:rxjava-android:0.16.1'
compile 'com.etsy.android.grid:library:1.0.3'
compile 'com.romainpiel.shimmer:library:1.2.0@aar'
debugCompile 'com.squareup.retrofit:retrofit-mock:1.4.1'
compile fileTree(dir: 'libs', include: ['*.jar'])
}
Would anyone know what I am doing wrong...
EDIT:- the link to travis build :- The Travis build for the app