I have got a strange error and cannot find a solution:
* What went wrong:
Execution failed for task ':app:compileDebugAndroidTestGroovy'.
> Unable to load class de.rheinfabrik.mvvm_example.activities.DetailsActivity due to missing dependency android/support/v4/view/LayoutInflaterFactory
But it´s impossible. This project works locally. Also the dependency is there.
Here my .travis.yml
language: android
jdk: oraclejdk8
env:
matrix:
- ANDROID_TARGET=android-22 ANDROID_ABI=armeabi-v7a
global:
- TERM=dumb
android:
components:
- build-tools-21.1.2
- android-22
- sys-img-armeabi-v7a-android-22
- extra
# Emulator Management: Create, Start and Wait
before_script:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script: cd MVVM-Example && ./gradlew app:connectAndroidTest --stacktrace -PdisablePreDex
Anyone have an idea why the dependency LayoutInflaterFactory is missing?
22.0.1
. Please make sure your dependencies are upgraded to22.2.0
, here: github.com/AHarazim/android-mvvm-example/blob/master/…. And you are missing- extra-android-m2repository
from the.travis.yml
. – Wieldy.travis.yml
file in your repo. – Wieldy.travis.yml
file on thedevTravisCi
branch and not on themaster
branch. – Artemas