kiwix / kiwix-android

Kiwix for Android
https://android.kiwix.org
GNU General Public License v3.0
888 stars 446 forks source link

Unable to build properly (in CI too) since Leakcanary dependence has been added to project #664

Closed sam1096 closed 6 years ago

sam1096 commented 6 years ago

[Bug]While building kiwix-android app in android studio found error:package com.squareup.leakcanary does not exist

Environment

The Bug:While running the app of kiwix-android on emulator there is an error occurred saying package com.squareup.leakcanary does not exist.Then I tried some of the solutions given on stackoverflow and github and have done some changes in build.gradle but still issue is not resolved.

I have added debugcompile and releasecompile in dependecies of build.gradle,but after running still I got an error.It looks like this: screenshot from 2018-03-24 03-28-57

Steps to reproduce:

  1. Build kiwix-android app in android studio from github.
  2. Run kiwix app on emulator.

    I want to run this app on android studio to have a look on its working.

kelson42 commented 6 years ago

This seems to be a problem introduced by #364. Please @srv-twry and @rashiq, try to close that problem ASAP.

dr0pdb commented 6 years ago

@sam1096

  1. You're adding the dependencies in the wrong build.gradle file.
  2. You don't need to add any dependencies in the first place.

@kelson42 Yes, it has been introduced due to it but it works absolutely fine on my local machine. I think we need others to fetch the latest code and try to run it. @brijeshshah13 @hjoshi123 @siddharth2010 @RohanBh Can you guys check and confirm the issue ?

A stackoverflow discussion here suggests cleaning and rebuilding the project.

hjoshi123 commented 6 years ago

@srv-twry @sam1096 Its working fine for me. No issues in building. @sam1096 Try invalidating cache and rebuilding it.

dr0pdb commented 6 years ago

@sam1096 Another possible case : Are you by any chance building the application in offline mode. I would suggest taking a look at your settings and disabling the offline mode in case it is enabled. You can find the settings in File -> Settings -> Build,Execution,Deployment -> Build Tools' -> 'Gradle' Uncheck "offline work".

brijeshshah13 commented 6 years ago

@srv-twry Works good for me as well. By the way, did anyone notice that @sam1096 (even though it wasn't required to add the dependencies) added them in the dependencies { } present in the buildscript { }, and not in the root dependencies { } 😄 That's the reason of the error. Please close this issue if there are no other developments.

GeVic commented 6 years ago

@srv-twry @hjoshi123 Most probably its because of the dependencies that you added. As @srv-twry already stated its not required. But sometimes doing instant run also triggers the leakcanary to report memory leaks.

sam1096 commented 6 years ago

I did all those things you told @srv-twry and I removed those lines from dependencies,still I'm getting previous errors which I was getting when I run app for first time.For only those errors I added dependencies later.Could you please help me in fixing this.I took another screen shot after removing dependencies and "off line work" is also unchecked. firstlook

brijeshshah13 commented 6 years ago

@sam1096 It is because you are building the wrong Build Variant of the app. First you need to change the build variant to kiwixDebug. LeakCanary has been added in that build variant only.

sam1096 commented 6 years ago

Changed build variant to kiwixDebug.It says about Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForKiwixDebug'.

java.lang.IllegalArgumentException (no error message) bbb

hjoshi123 commented 6 years ago

@sam1096 Have you enabled multidexing ?

sam1096 commented 6 years ago

yes. multidex

brijeshshah13 commented 6 years ago

@sam1096 I see that you have made some changes in the app level build.gradle file and KiwixApplication.java file as well. Can you please try stashing them and taking a fresh pull from the remote branch. After that, do Clean Project followed by the building of the app. Please post here if the issue persists.

kelson42 commented 6 years ago

@rashiq @srv-twry Nightlies do not build anymore since this merge. See https://download.kiwix.org/nightly/.

The problem seems to be that line:

�[31;1mThe command "./gradlew assembleKiwixRelease testdroidUploadKiwix && ./testdroid.py" exited with 1.�[0m

Here is the whole travis-ci log

travis_fold:start:worker_info
Worker information
hostname: 23ed0dff-2ec7-4c08-9821-5427992f814d@1.production-5-worker-org-f-1-gce
version: v3.6.0 https://github.com/travis-ci/worker/tree/170b2a0bb43234479fd1911ba9e4dbcc36dadfad
instance: travis-job-8b942185-a4cd-4af4-b156-acdfc0d28fac travis-ci-cookiecat-trusty-1503974222 (via amqp)
startup: 26.732225534s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: android
Build group: stable
Build dist: trusty
Build id: 357760120
Job id: 357760121
Runtime kernel version: 4.4.0-93-generic
travis-build version: cc810a942
Build image provisioning date and time
Tue Aug 29 03:00:05 UTC 2017
Operating System Details
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty
Cookbooks Version
4642454 https://github.com/travis-ci/travis-cookbooks/tree/4642454
git version
git version 2.14.1
bash version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
gcc version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

docker version
Client:
 Version:      17.03.1-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:10:36 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.1-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:10:36 2017
 OS/Arch:      linux/amd64
 Experimental: false
clang version
clang version 3.9.0 (tags/RELEASE_390/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-3.9.0/bin
jq version
jq-1.5
bats version
Bats 0.4.0
shellcheck version
0.4.6
shfmt version
v1.3.1
ccache version
ccache version 3.1.9

Copyright (C) 2002-2007 Andrew Tridgell
Copyright (C) 2009-2011 Joel Rosdahl

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later
version.
cmake version
cmake version 3.2.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
heroku version
heroku-cli/6.13.19-6cd27b3 (linux-x64) node-v8.3.0
imagemagick version
Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org
md5deep version
4.2
mercurial version
Mercurial Distributed SCM (version 4.2.2)
(see https://mercurial-scm.org for more information)

Copyright (C) 2005-2017 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
mysql version
mysql  Ver 14.14 Distrib 5.5.57, for debian-linux-gnu (x86_64) using readline 6.3
openssl version
OpenSSL 1.0.1f 6 Jan 2014
packer version
Packer v1.0.2

Your version of Packer is out of date! The latest version
is 1.0.4. You can update by downloading from www.packer.io
postgresql client version
psql (PostgreSQL) 9.3.18
ragel version
Ragel State Machine Compiler version 6.8 Feb 2013
Copyright (c) 2001-2009 by Adrian Thurston
subversion version
svn, version 1.8.8 (r1568071)
   compiled Aug 10 2017, 17:20:39 on x86_64-pc-linux-gnu

Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.3
  - handles 'http' scheme
  - handles 'https' scheme

sudo version
Sudo version 1.8.9p5
Configure options: --prefix=/usr -v --with-all-insults --with-pam --with-fqdn --with-logging=syslog --with-logfac=authpriv --with-env-editor --with-editor=/usr/bin/editor --with-timeout=15 --with-password-timeout=0 --with-passprompt=[sudo] password for %p:  --without-lecture --with-tty-tickets --disable-root-mailer --enable-admin-flag --with-sendmail=/usr/sbin/sendmail --with-timedir=/var/lib/sudo --mandir=/usr/share/man --libexecdir=/usr/lib/sudo --with-sssd --with-sssd-lib=/usr/lib/x86_64-linux-gnu --with-selinux
Sudoers policy plugin version 1.8.9p5
Sudoers file grammar version 43

Sudoers path: /etc/sudoers
Authentication methods: 'pam'
Syslog facility if syslog is being used for logging: authpriv
Syslog priority to use when user authenticates successfully: notice
Syslog priority to use when user authenticates unsuccessfully: alert
Send mail if the user is not in sudoers
Use a separate timestamp for each user/tty combo
Lecture user the first time they run sudo
Root may run sudo
Allow some information gathering to give useful error messages
Require fully-qualified hostnames in the sudoers file
Visudo will honor the EDITOR environment variable
Set the LOGNAME and USER environment variables
Length at which to wrap log file lines (0 for no wrap): 80
Authentication timestamp timeout: 15.0 minutes
Password prompt timeout: 0.0 minutes
Number of tries to enter a password: 3
Umask to use or 0777 to use user's: 022
Path to mail program: /usr/sbin/sendmail
Flags for mail program: -t
Address to send mail to: root
Subject line for mail messages: *** SECURITY information for %h ***
Incorrect password message: Sorry, try again.
Path to authentication timestamp dir: /var/lib/sudo
Default password prompt: [sudo] password for %p: 
Default user to run commands as: root
Value to override user's $PATH with: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Path to the editor for use by visudo: /usr/bin/editor
When to require a password for 'list' pseudocommand: any
When to require a password for 'verify' pseudocommand: all
File descriptors >= 3 will be closed before executing a command
Environment variables to check for sanity:
    TZ
    TERM
    LINGUAS
    LC_*
    LANGUAGE
    LANG
    COLORTERM
Environment variables to remove:
    RUBYOPT
    RUBYLIB
    PYTHONUSERBASE
    PYTHONINSPECT
    PYTHONPATH
    PYTHONHOME
    TMPPREFIX
    ZDOTDIR
    READNULLCMD
    NULLCMD
    FPATH
    PERL5DB
    PERL5OPT
    PERL5LIB
    PERLLIB
    PERLIO_DEBUG 
    JAVA_TOOL_OPTIONS
    SHELLOPTS
    GLOBIGNORE
    PS4
    BASH_ENV
    ENV
    TERMCAP
    TERMPATH
    TERMINFO_DIRS
    TERMINFO
    _RLD*
    LD_*
    PATH_LOCALE
    NLSPATH
    HOSTALIASES
    RES_OPTIONS
    LOCALDOMAIN
    CDPATH
    IFS
Environment variables to preserve:
    JAVA_HOME
    TRAVIS
    CI
    DEBIAN_FRONTEND
    XAUTHORIZATION
    XAUTHORITY
    PS2
    PS1
    PATH
    LS_COLORS
    KRB5CCNAME
    HOSTNAME
    HOME
    DISPLAY
    COLORS
Locale to use while parsing sudoers: C
Directory in which to store input/output logs: /var/log/sudo-io
File in which to store the input/output log: %{seq}
Add an entry to the utmp/utmpx file when allocating a pty
PAM service name to use
PAM service name to use for login shells
Create a new PAM session for the command to run in
Maximum I/O log sequence number: 0

Local IP address and netmask pairs:
    10.240.0.8/255.255.255.255
    172.17.0.1/255.255.0.0

Sudoers I/O plugin version 1.8.9p5
gzip version
gzip 1.6
Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.
zip version
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 3.0 (July 5th 2008), by Info-ZIP.
Currently maintained by E. Gordon.  Please send bug reports to
the authors using the web page at www.info-zip.org; see README for details.

Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,
as of above date; see http://www.info-zip.org/ for other sites.

Compiled with gcc 4.8.2 for Unix (Linux ELF) on Oct 21 2013.

Zip special compilation options:
    USE_EF_UT_TIME       (store Universal Time)
    BZIP2_SUPPORT        (bzip2 library version 1.0.6, 6-Sept-2010)
        bzip2 code and library copyright (c) Julian R Seward
        (See the bzip2 license for terms of use)
    SYMLINK_SUPPORT      (symbolic links supported)
    LARGE_FILE_SUPPORT   (can read and write large files on file system)
    ZIP64_SUPPORT        (use Zip64 to store large files in archives)
    UNICODE_SUPPORT      (store and read UTF-8 Unicode paths)
    STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field)
    UIDGID_NOT_16BIT     (old Unix 16-bit UID/GID extra field not used)
    [encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3)

Encryption notice:
    The encryption code of this program is not copyrighted and is
    put in the public domain.  It was originally written in Europe
    and, to the best of our knowledge, can be freely distributed
    in both source and object forms from any country, including
    the USA under License Exception TSU of the U.S. Export
    Administration Regulations (section 740.13(e)) of 6 June 2002.

Zip environment options:
             ZIP:  [none]
          ZIPOPT:  [none]
vim version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:43:18)
Included patches: 1-52
Extra patches: 8.0.0056
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version without GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +syntax
+arabic          +file_in_path    +mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           +mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     -tcl
++builtin_terms  -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         +gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
-clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   -perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    +keymap          +postscript      +virtualedit
+comments        +langmap         +printer         +visual
+conceal         +libcall         +profile         +visualextra
+cryptv          +linebreak       +python          +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             +rightleft       +windows
+diff            +menu            -ruby            +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
+emacs_tags      -mouseshape      -sniff           -xsmp
+eval            +mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        +mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl    -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions      
iptables version
iptables v1.4.21
curl version
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
wget version
GNU Wget 1.15 built on linux-gnu.
rsync version
rsync  version 3.1.0  protocol version 31
gimme version
v1.2.0
nvm version
0.33.2
rvm version
rvm 1.29.2 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io/]
default ruby version
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
Android SDK Tools Version
25.2.3
List of Android SDK components that can be specified in .travis.yml
addon-google_apis-google-10
addon-google_apis-google-11
addon-google_apis-google-12
addon-google_apis-google-13
addon-google_apis-google-14
addon-google_apis-google-15
addon-google_apis-google-16
addon-google_apis-google-17
addon-google_apis-google-18
addon-google_apis-google-19
addon-google_apis-google-21
addon-google_apis-google-22
addon-google_apis-google-23
addon-google_apis-google-24
addon-google_apis-google-3
addon-google_apis-google-4
addon-google_apis-google-5
addon-google_apis-google-6
addon-google_apis-google-7
addon-google_apis-google-8
addon-google_apis-google-9
addon-google_gdk-google-19
addon-google_tv_addon-google-12
addon-google_tv_addon-google-13
android-10
android-11
android-12
android-13
android-14
android-15
android-16
android-17
android-18
android-19
android-2
android-20
android-21
android-22
android-23
android-24
android-25
android-26
android-3
android-4
android-5
android-6
android-7
android-8
android-9
build-tools-17.0.0
build-tools-18.0.1
build-tools-18.1.0
build-tools-18.1.1
build-tools-19.0.0
build-tools-19.0.1
build-tools-19.0.2
build-tools-19.0.3
build-tools-19.1.0
build-tools-20.0.0
build-tools-21.0.0
build-tools-21.0.1
build-tools-21.0.2
build-tools-21.1.0
build-tools-21.1.1
build-tools-21.1.2
build-tools-22.0.0
build-tools-22.0.1
build-tools-23.0.0
build-tools-23.0.1
build-tools-23.0.2
build-tools-23.0.3
build-tools-24.0.0
build-tools-24.0.1
build-tools-24.0.2
build-tools-24.0.3
build-tools-25.0.0
build-tools-25.0.1
build-tools-25.0.2
build-tools-25.0.3
build-tools-26.0.0
build-tools-26.0.1
doc-24
extra-android-m2repository
extra-google-admob_ads_sdk
extra-google-analytics_sdk_v2
extra-google-auto
extra-google-gcm
extra-google-google_play_services
extra-google-google_play_services_froyo
extra-google-instantapps
extra-google-m2repository
extra-google-market_apk_expansion
extra-google-market_licensing
extra-google-play_billing
extra-google-simulators
extra-google-webdriver
platform-tools
source-14
source-15
source-16
source-17
source-18
source-19
source-20
source-21
source-22
source-23
source-24
source-25
sys-img-arm64-v8a-android-24
sys-img-arm64-v8a-google_apis-24
sys-img-arm64-v8a-google_apis-25
sys-img-armeabi-v7a-android-10
sys-img-armeabi-v7a-android-14
sys-img-armeabi-v7a-android-15
sys-img-armeabi-v7a-android-16
sys-img-armeabi-v7a-android-17
sys-img-armeabi-v7a-android-18
sys-img-armeabi-v7a-android-19
sys-img-armeabi-v7a-android-21
sys-img-armeabi-v7a-android-22
sys-img-armeabi-v7a-android-24
sys-img-armeabi-v7a-android-tv-21
sys-img-armeabi-v7a-android-tv-22
sys-img-armeabi-v7a-android-tv-23
sys-img-armeabi-v7a-android-wear-23
sys-img-armeabi-v7a-android-wear-25
sys-img-armeabi-v7a-google_apis-10
sys-img-armeabi-v7a-google_apis-15
sys-img-armeabi-v7a-google_apis-16
sys-img-armeabi-v7a-google_apis-17
sys-img-armeabi-v7a-google_apis-18
sys-img-armeabi-v7a-google_apis-19
sys-img-armeabi-v7a-google_apis-21
sys-img-armeabi-v7a-google_apis-22
sys-img-armeabi-v7a-google_apis-23
sys-img-armeabi-v7a-google_apis-24
sys-img-armeabi-v7a-google_apis-25
sys-img-mips-android-15
sys-img-mips-android-16
sys-img-mips-android-17
sys-img-x86_64-android-21
sys-img-x86_64-android-22
sys-img-x86_64-android-23
sys-img-x86_64-android-24
sys-img-x86_64-google_apis-21
sys-img-x86_64-google_apis-22
sys-img-x86_64-google_apis-23
sys-img-x86_64-google_apis-24
sys-img-x86_64-google_apis-25
sys-img-x86-android-10
sys-img-x86-android-15
sys-img-x86-android-16
sys-img-x86-android-17
sys-img-x86-android-18
sys-img-x86-android-19
sys-img-x86-android-21
sys-img-x86-android-22
sys-img-x86-android-23
sys-img-x86-android-24
sys-img-x86-android-tv-21
sys-img-x86-android-tv-22
sys-img-x86-android-tv-23
sys-img-x86-android-tv-24
sys-img-x86-android-tv-25
sys-img-x86-android-tv-26
sys-img-x86-android-wear-23
sys-img-x86-android-wear-25
sys-img-x86-android-wear-26
sys-img-x86-google_apis-10
sys-img-x86-google_apis-15
sys-img-x86-google_apis-16
sys-img-x86-google_apis-17
sys-img-x86-google_apis-18
sys-img-x86-google_apis-19
sys-img-x86-google_apis-21
sys-img-x86-google_apis-22
sys-img-x86-google_apis-23
sys-img-x86-google_apis-24
sys-img-x86-google_apis-25
sys-img-x86-google_apis-26
sys-img-x86-google_apis_playstore-24
sys-img-x86-google_apis_playstore-26
tools
which android && echo -e "\033[33;1mSee http://docs.travis-ci.com/user/languages/android/#How-to-install-Android-SDK-components\033[0m"
/usr/local/android-sdk/tools/android
See http://docs.travis-ci.com/user/languages/android/#How-to-install-Android-SDK-components
travis_fold:end:system_info

Network availability confirmed.

127.0.0.1 localhost nettuno travis vagrant
127.0.1.1 travis-job-8b942185-a4cd-4af4-b156-acdfc0d28fac travis-job-8b942185-a4cd-4af4-b156-acdfc0d28fac ip4-loopback trusty64

$ jdk_switcher use oraclejdk8
Switching to Oracle JDK8 (java-8-oracle), JAVA_HOME will be set to /usr/lib/jvm/java-8-oracle
travis_fold:start:git.checkout
travis_time:start:03fb8878
$ git clone --depth=50 --branch=master https://github.com/kiwix/kiwix-android.git kiwix/kiwix-android
Cloning into 'kiwix/kiwix-android'...

travis_time:end:03fb8878:start=1521894065161696768,finish=1521894067408993660,duration=2247296892
$ cd kiwix/kiwix-android
$ git checkout -qf ebac71aeed61821c7c4c443d28cca5a40afdc82c
travis_fold:end:git.checkout

Setting environment variables from repository settings
$ export TRAVIS=[secure]
$ export BITBAR_API_KEY=[secure]

$ export TERM=dumb
Disabling Gradle daemon
travis_time:start:1507038e
$ mkdir -p ~/.gradle && echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties

travis_time:end:1507038e:start=1521894067500519958,finish=1521894067505371659,duration=4851701
No build-tools version is specified in android.components. Consider adding one of:
build-tools-28.0.0-preview
build-tools-27.0.3
build-tools-27.0.2
build-tools-27.0.1
build-tools-27.0.0
build-tools-26.0.3
build-tools-26.0.2
build-tools-26.0.1
build-tools-26.0.0
build-tools-25.0.3
build-tools-25.0.2
build-tools-25.0.1
build-tools-25.0.0
build-tools-24.0.3
build-tools-24.0.2
build-tools-24.0.1
build-tools-24.0.0
build-tools-23.0.3
build-tools-23.0.2
build-tools-23.0.1
build-tools-23.0.0
build-tools-22.0.1
build-tools-22.0.0
build-tools-21.1.2
build-tools-21.1.1
build-tools-21.1.0
build-tools-21.0.2
build-tools-21.0.1
build-tools-21.0.0
build-tools-20.0.0
build-tools-19.1.0
build-tools-19.0.3
build-tools-19.0.2
build-tools-19.0.1
build-tools-19.0.0
build-tools-18.1.1
build-tools-18.1.0
build-tools-18.0.1
build-tools-17.0.0
The following versions are pre-installed:
build-tools-25.0.2

$ export PATH=/usr/local/android-sdk/tools/bin:$PATH
travis_fold:start:cache.1
Setting up build cache
$ export CASHER_DIR=$HOME/.casher
travis_time:start:11c190ab
$ Installing caching utilities

travis_time:end:11c190ab:start=1521894075748953555,finish=1521894075913313719,duration=164360164
travis_time:start:06fa9a41

travis_time:end:06fa9a41:start=1521894075919478110,finish=1521894075923950994,duration=4472884
travis_time:start:2ef1fa80
attempting to download cache archive
fetching master/cache-linux-trusty-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--jdk-oraclejdk8.tgz
found cache

travis_time:end:2ef1fa80:start=1521894075929206604,finish=1521894085566156613,duration=9636950009
travis_time:start:2222aa88

travis_time:end:2222aa88:start=1521894085572020806,finish=1521894085576149910,duration=4129104
travis_time:start:00351a4a
adding /home/travis/.gradle/caches to cache
creating directory /home/travis/.gradle/caches
adding /home/travis/.gradle/wrapper to cache
creating directory /home/travis/.gradle/wrapper
adding /home/travis/.android/build-cache to cache
creating directory /home/travis/.android/build-cache

travis_time:end:00351a4a:start=1521894085581446691,finish=1521894123520395556,duration=37938948865
travis_fold:end:cache.1
$ java -Xmx32m -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
$ javac -J-Xmx32m -version
javac 1.8.0_144
travis_fold:start:install.1
travis_time:start:0052fbf7
$ pip install --user 'requests[security]'
Requirement already satisfied: requests[security] in /usr/lib/python2.7/dist-packages
  requests 2.2.1 does not provide the extra 'security'
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A [secure] SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

travis_time:end:0052fbf7:start=1521894129756444974,finish=1521894131791544673,duration=2035099699
travis_fold:end:install.1
travis_fold:start:install.2
travis_time:start:0857d9ab
$ wget -r -nH -nd -np -R index.html* robots.txt* http://download.kiwix.org/dev/android/api/licenses/ -e robots=off -P $ANDROID_HOME/licenses || [secure]
--2018-03-24 12:22:11--  http://robots.txt*/
Resolving robots.txt* (robots.txt*)... failed: Name or service not known.
wget: unable to resolve host address ‘robots.txt*’
--2018-03-24 12:22:11--  http://download.kiwix.org/dev/android/api/licenses/
Resolving download.kiwix.org (download.kiwix.org)... 62.210.143.55
Connecting to download.kiwix.org (download.kiwix.org)|62.210.143.55|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1239 (1.2K) [text/html]
Saving to: ‘/usr/local/android-sdk//licenses/index.html’

     0K .                                                     100%  166M=0s

2018-03-24 12:22:12 (166 MB/s) - ‘/usr/local/android-sdk//licenses/index.html’ saved [1239/1239]

Removing /usr/local/android-sdk//licenses/index.html since it should be rejected.

--2018-03-24 12:22:12--  http://download.kiwix.org/dev/android/api/licenses/?C=N;O=D
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 1239 (1.2K) [text/html]
Saving to: ‘/usr/local/android-sdk//licenses/index.html?C=N;O=D’

     0K .                                                     100%  183M=0s

2018-03-24 12:22:12 (183 MB/s) - ‘/usr/local/android-sdk//licenses/index.html?C=N;O=D’ saved [1239/1239]

Removing /usr/local/android-sdk//licenses/index.html?C=N;O=D since it should be rejected.

--2018-03-24 12:22:12--  http://download.kiwix.org/dev/android/api/licenses/?C=M;O=A
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 1239 (1.2K) [text/html]
Saving to: ‘/usr/local/android-sdk//licenses/index.html?C=M;O=A’

     0K .                                                     100%  214M=0s

2018-03-24 12:22:12 (214 MB/s) - ‘/usr/local/android-sdk//licenses/index.html?C=M;O=A’ saved [1239/1239]

Removing /usr/local/android-sdk//licenses/index.html?C=M;O=A since it should be rejected.

--2018-03-24 12:22:12--  http://download.kiwix.org/dev/android/api/licenses/?C=S;O=A
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 1239 (1.2K) [text/html]
Saving to: ‘/usr/local/android-sdk//licenses/index.html?C=S;O=A’

     0K .                                                     100%  212M=0s

2018-03-24 12:22:12 (212 MB/s) - ‘/usr/local/android-sdk//licenses/index.html?C=S;O=A’ saved [1239/1239]

Removing /usr/local/android-sdk//licenses/index.html?C=S;O=A since it should be rejected.

--2018-03-24 12:22:12--  http://download.kiwix.org/dev/android/api/licenses/?C=D;O=A
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 1239 (1.2K) [text/html]
Saving to: ‘/usr/local/android-sdk//licenses/index.html?C=D;O=A’

     0K .                                                     100%  245M=0s

2018-03-24 12:22:13 (245 MB/s) - ‘/usr/local/android-sdk//licenses/index.html?C=D;O=A’ saved [1239/1239]

Removing /usr/local/android-sdk//licenses/index.html?C=D;O=A since it should be rejected.

--2018-03-24 12:22:13--  http://download.kiwix.org/dev/android/api/licenses/android-googletv-license
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 41
Saving to: ‘/usr/local/android-sdk//licenses/android-googletv-license’

     0K                                                       100% 6.74M=0s

2018-03-24 12:22:13 (6.74 MB/s) - ‘/usr/local/android-sdk//licenses/android-googletv-license’ saved [41/41]

--2018-03-24 12:22:13--  http://download.kiwix.org/dev/android/api/licenses/android-sdk-license
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 82
Saving to: ‘/usr/local/android-sdk//licenses/android-sdk-license’

     0K                                                       100% 13.7M=0s

2018-03-24 12:22:13 (13.7 MB/s) - ‘/usr/local/android-sdk//licenses/android-sdk-license’ saved [82/82]

--2018-03-24 12:22:13--  http://download.kiwix.org/dev/android/api/licenses/android-sdk-preview-license
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 41
Saving to: ‘/usr/local/android-sdk//licenses/android-sdk-preview-license’

     0K                                                       100% 8.04M=0s

2018-03-24 12:22:13 (8.04 MB/s) - ‘/usr/local/android-sdk//licenses/android-sdk-preview-license’ saved [41/41]

--2018-03-24 12:22:13--  http://download.kiwix.org/dev/android/api/licenses/google-gdk-license
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 41
Saving to: ‘/usr/local/android-sdk//licenses/google-gdk-license’

     0K                                                       100%  677K=0s

2018-03-24 12:22:13 (677 KB/s) - ‘/usr/local/android-sdk//licenses/google-gdk-license’ saved [41/41]

--2018-03-24 12:22:13--  http://download.kiwix.org/dev/android/api/licenses/mips-android-sysimage-license
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 41
Saving to: ‘/usr/local/android-sdk//licenses/mips-android-sysimage-license’

     0K                                                       100% 6.92M=0s

2018-03-24 12:22:13 (6.92 MB/s) - ‘/usr/local/android-sdk//licenses/mips-android-sysimage-license’ saved [41/41]

--2018-03-24 12:22:13--  http://download.kiwix.org/dev/android/api/licenses/?C=N;O=A
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 1239 (1.2K) [text/html]
Saving to: ‘/usr/local/android-sdk//licenses/index.html?C=N;O=A’

     0K .                                                     100%  271M=0s

2018-03-24 12:22:14 (271 MB/s) - ‘/usr/local/android-sdk//licenses/index.html?C=N;O=A’ saved [1239/1239]

Removing /usr/local/android-sdk//licenses/index.html?C=N;O=A since it should be rejected.

--2018-03-24 12:22:14--  http://download.kiwix.org/dev/android/api/licenses/?C=M;O=D
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 1239 (1.2K) [text/html]
Saving to: ‘/usr/local/android-sdk//licenses/index.html?C=M;O=D’

     0K .                                                     100% 11.1M=0s

2018-03-24 12:22:14 (11.1 MB/s) - ‘/usr/local/android-sdk//licenses/index.html?C=M;O=D’ saved [1239/1239]

Removing /usr/local/android-sdk//licenses/index.html?C=M;O=D since it should be rejected.

--2018-03-24 12:22:14--  http://download.kiwix.org/dev/android/api/licenses/?C=S;O=D
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 1239 (1.2K) [text/html]
Saving to: ‘/usr/local/android-sdk//licenses/index.html?C=S;O=D’

     0K .                                                     100%  242M=0s

2018-03-24 12:22:14 (242 MB/s) - ‘/usr/local/android-sdk//licenses/index.html?C=S;O=D’ saved [1239/1239]

Removing /usr/local/android-sdk//licenses/index.html?C=S;O=D since it should be rejected.

--2018-03-24 12:22:14--  http://download.kiwix.org/dev/android/api/licenses/?C=D;O=D
Reusing existing connection to download.kiwix.org:80.
HTTP request sent, awaiting response... 200 OK
Length: 1239 (1.2K) [text/html]
Saving to: ‘/usr/local/android-sdk//licenses/index.html?C=D;O=D’

     0K .                                                     100%  214M=0s

2018-03-24 12:22:14 (214 MB/s) - ‘/usr/local/android-sdk//licenses/index.html?C=D;O=D’ saved [1239/1239]

Removing /usr/local/android-sdk//licenses/index.html?C=D;O=D since it should be rejected.

FINISHED --2018-03-24 12:22:14--
Total wall clock time: 2.8s
Downloaded: 14 files, 11K in 0s (46.8 MB/s)

travis_time:end:0857d9ab:start=1521894131797603617,finish=1521894134565083636,duration=2767480019
travis_fold:end:install.2
travis_time:start:09a2a568
$ ./gradlew assembleKiwixRelease testdroidUploadKiwix && ./testdroid.py
WARNING: BuildType(local_download_server): buildConfigField 'KIWIX_DOWNLOAD_URL' value is being replaced: "http://download.kiwix.org/" -> "http://kiwix-download-server/"
Configuring Kiwix
Configuring customexample
File /home/travis/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 26.0.2 in /usr/local/android-sdk/licenses
License for package Android SDK Build-Tools 26.0.2 accepted.
Preparing "Install Android SDK Build-Tools 26.0.2 (revision: 26.0.2)".
"Install Android SDK Build-Tools 26.0.2 (revision: 26.0.2)" ready.
Installing Android SDK Build-Tools 26.0.2 in /usr/local/android-sdk/build-tools/26.0.2
"Install Android SDK Build-Tools 26.0.2 (revision: 26.0.2)" complete.
"Install Android SDK Build-Tools 26.0.2 (revision: 26.0.2)" finished.
Checking the license for package Android SDK Platform 27 in /usr/local/android-sdk/licenses
License for package Android SDK Platform 27 accepted.
Preparing "Install Android SDK Platform 27 (revision: 1)".
"Install Android SDK Platform 27 (revision: 1)" ready.
Installing Android SDK Platform 27 in /usr/local/android-sdk/platforms/android-27
"Install Android SDK Platform 27 (revision: 1)" complete.
"Install Android SDK Platform 27 (revision: 1)" finished.
:app:preBuild UP-TO-DATE
:app:preKiwixReleaseBuild
Download https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-android-no-op/1.5.4/leakcanary-android-no-op-1.5.4.pom
Download https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-android-no-op/1.5.4/leakcanary-android-no-op-1.5.4.aar
:app:compileKiwixReleaseAidl
:app:compileKiwixReleaseRenderscript
:app:checkKiwixReleaseManifest
:app:generateKiwixReleaseBuildConfig
:app:prepareLintJar
:app:generateKiwixReleaseResValues
:app:generateKiwixReleaseResources
:app:mergeKiwixReleaseResources
:app:createKiwixReleaseCompatibleScreenManifests
:app:processKiwixReleaseManifest
:app:splitsDiscoveryTaskKiwixRelease
:app:processKiwixReleaseResources
:app:generateKiwixReleaseSources
:app:javaPreCompileKiwixRelease
:app:compileKiwixReleaseJavaWithJavacwarning: Supported source version 'RELEASE_6' from annotation processor 'com.yahoo.squidb.processor.ModelSpecProcessor' less than -source '1.8'
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

:app:compileKiwixReleaseNdk NO-SOURCE
:app:compileKiwixReleaseSources
:app:lintVitalKiwixRelease
Download https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-android/1.5.4/leakcanary-android-1.5.4.pom
Download https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-analyzer/1.5.4/leakcanary-analyzer-1.5.4.pom
Download https://jcenter.bintray.com/com/squareup/haha/haha/2.0.3/haha-2.0.3.pom
Download https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-watcher/1.5.4/leakcanary-watcher-1.5.4.pom
Download https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-analyzer/1.5.4/leakcanary-analyzer-1.5.4.aar
Download https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-watcher/1.5.4/leakcanary-watcher-1.5.4.jar
Download https://jcenter.bintray.com/com/squareup/leakcanary/leakcanary-android/1.5.4/leakcanary-android-1.5.4.aar
Download https://jcenter.bintray.com/com/squareup/haha/haha/2.0.3/haha-2.0.3.jar
:app:mergeKiwixReleaseShaders
:app:compileKiwixReleaseShaders
:app:generateKiwixReleaseAssets
:app:mergeKiwixReleaseAssets
:app:extractTryWithResourcesSupportJarKiwixRelease
:app:transformClassesWithStackFramesFixerForKiwixRelease
:app:transformClassesWithDesugarForKiwixRelease
:app:transformClassesWithDexBuilderForKiwixRelease
D8 is used to build dex.
:app:transformClassesWithMultidexlistForKiwixRelease
:app:transformDexArchiveWithDexMergerForKiwixRelease
D8 is used to merge dex.
:app:mergeKiwixReleaseJniLibFolders
:app:transformNativeLibsWithMergeJniLibsForKiwixRelease
:app:processKiwixReleaseJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForKiwixRelease
:app:packageKiwixRelease
:app:assembleKiwixRelease
:app:preKiwixDebugBuild
:app:compileKiwixDebugAidl
:app:compileKiwixDebugRenderscript
:app:checkKiwixDebugManifest
:app:generateKiwixDebugBuildConfig
:app:generateKiwixDebugResValues
:app:generateKiwixDebugResources
:app:mergeKiwixDebugResources
:app:createKiwixDebugCompatibleScreenManifests
:app:processKiwixDebugManifest
:app:splitsDiscoveryTaskKiwixDebug
:app:processKiwixDebugResources
:app:generateKiwixDebugSources
:app:javaPreCompileKiwixDebug
:app:compileKiwixDebugJavaWithJavacwarning: Supported source version 'RELEASE_6' from annotation processor 'com.yahoo.squidb.processor.ModelSpecProcessor' less than -source '1.8'
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning

:app:bundleAppClassesKiwixDebug
:app:preKiwixDebugAndroidTestBuild
:app:compileKiwixDebugAndroidTestAidl
:app:processKiwixDebugAndroidTestManifest
:app:compileKiwixDebugAndroidTestRenderscript
:app:generateKiwixDebugAndroidTestBuildConfig
:app:generateKiwixDebugAndroidTestResValues
:app:generateKiwixDebugAndroidTestResources
:app:mergeKiwixDebugAndroidTestResources
:app:splitsDiscoveryTaskKiwixDebugAndroidTest
:app:processKiwixDebugAndroidTestResources
:app:generateKiwixDebugAndroidTestSources
:app:javaPreCompileKiwixDebugAndroidTest
:app:compileKiwixDebugAndroidTestJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/travis/build/kiwix/kiwix-android/app/build/generated/source/apt/androidTest/kiwix/debug/org/kiwix/kiwixmobile/di/components/DaggerTestComponent.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

:app:compileKiwixDebugAndroidTestNdk NO-SOURCE
:app:compileKiwixDebugAndroidTestSources
:app:mergeKiwixDebugAndroidTestShaders
:app:compileKiwixDebugAndroidTestShaders
:app:generateKiwixDebugAndroidTestAssets
:app:mergeKiwixDebugAndroidTestAssets
:app:extractTryWithResourcesSupportJarKiwixDebugAndroidTest
:app:transformClassesWithStackFramesFixerForKiwixDebugAndroidTest
:app:transformClassesWithDesugarForKiwixDebugAndroidTest
:app:transformClassesWithDexBuilderForKiwixDebugAndroidTest
D8 is used to build dex.
:app:transformDexArchiveWithExternalLibsDexMergerForKiwixDebugAndroidTest
:app:transformDexArchiveWithDexMergerForKiwixDebugAndroidTest
D8 is used to merge dex.
:app:mergeKiwixDebugAndroidTestJniLibFolders
:app:transformNativeLibsWithMergeJniLibsForKiwixDebugAndroidTest
:app:processKiwixDebugAndroidTestJavaRes
:app:transformResourcesWithMergeJavaResForKiwixDebugAndroidTest
:app:validateSigningKiwixDebugAndroidTest
:app:packageKiwixDebugAndroidTest
:app:assembleKiwixDebugAndroidTest
:app:mergeKiwixDebugShaders
:app:compileKiwixDebugShaders
:app:generateKiwixDebugAssets
:app:mergeKiwixDebugAssets
:app:extractTryWithResourcesSupportJarKiwixDebug
:app:transformClassesWithStackFramesFixerForKiwixDebug
:app:transformClassesWithDesugarForKiwixDebug
:app:transformClassesWithDexBuilderForKiwixDebug
D8 is used to build dex.
:app:transformClassesWithMultidexlistForKiwixDebug
:app:transformDexArchiveWithDexMergerForKiwixDebug
D8 is used to merge dex.
:app:compileKiwixDebugNdk NO-SOURCE
:app:mergeKiwixDebugJniLibFolders
:app:transformNativeLibsWithMergeJniLibsForKiwixDebug
:app:processKiwixDebugJavaRes NO-SOURCE
:app:transformResourcesWithMergeJavaResForKiwixDebug
:app:validateSigningKiwixDebug
:app:packageKiwixDebug
:app:testdroidUploadKiwixDebugAndroidTest
TESTDROID: Using APIClientType APIKEY

BUILD SUCCESSFUL in 3m 49s
83 actionable tasks: 83 executed
Exception in thread "Thread-15" java.lang.NoClassDefFoundError: com/android/utils/PathUtils$1
    at com.android.utils.PathUtils.deleteIfExists(PathUtils.java:47)
    at com.android.utils.PathUtils.lambda$addRemovePathHook$0(PathUtils.java:125)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.android.utils.PathUtils$1
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 3 more
Running tests
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Traceback (most recent call last):
  File "./testdroid.py", line 28, in <module>
    raise AssertionError("Success ratio only: {}".format(ratio))
AssertionError: Success ratio only: 0.909091

travis_time:end:09a2a568:start=1521894134575425857,finish=1521894971354838162,duration=836779412305

The command "./gradlew assembleKiwixRelease testdroidUploadKiwix && ./testdroid.py" exited with 1.
travis_fold:start:before_cache.1
travis_time:start:04f9aada
$ rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock

travis_time:end:04f9aada:start=1521894971364839764,finish=1521894971371290584,duration=6450820
travis_fold:end:before_cache.1
travis_fold:start:before_cache.2
travis_time:start:0fed9aec
$ rm -fr $HOME/.gradle/caches/*/plugin-resolution/

travis_time:end:0fed9aec:start=1521894971378242633,finish=1521894971384810445,duration=6567812
travis_fold:end:before_cache.2
travis_fold:start:cache.2
store build cache
travis_time:start:017a9144

travis_time:end:017a9144:start=1521894971393172366,finish=1521894971397849991,duration=4677625
travis_time:start:0702f3c5
change detected (content changed, file is created, or file is deleted):
/home/travis/.android/build-cache/02a06e7649d60173b6e8826b52fc2398b2d955c962223d7a1f00a346dd603f86/inputs
/home/travis/.android/build-cache/02a06e7649d60173b6e8826b52fc2398b2d955c962223d7a1f00a346dd603f86.lock
/home/travis/.android/build-cache/02a06e7649d60173b6e8826b52fc2398b2d955c962223d7a1f00a346dd603f86/output
/home/travis/.android/build-cache/0bb8e8d604c5670a436c7e75544dd094dc146c26044b6a02809d09f45b03da7e/inputs
/home/travis/.android/build-cache/0bb8e8d604c5670a436c7e75544dd094dc146c26044b6a02809d09f45b03da7e.lock
/home/travis/.android/build-cache/0bb8e8d604c5670a436c7e75544dd094dc146c26044b6a02809d09f45b03da7e/output
/home/travis/.android/build-cache/1314157e10f8e07c9f14f0395ae5a49eb952dbe632e81bd98636698b1e7b15c9/inputs
/home/travis/.android/build-cache/1314157e10f8e07c9f14f0395ae5a49eb952dbe632e81bd98636698b1e7b15c9.lock
/home/travis/.android/build-cache/1314157e10f8e07c9f14f0395ae5a49eb952dbe632e81bd98636698b1e7b15c9/output
/home/travis/.android/build-cache/142676f07729d886a01

...

changes detected, packing new archive
.
.
.
.
.
.
.
.
.
.
.
.
.
.
uploading archive

travis_time:end:0702f3c5:start=1521894971405440756,finish=1521895065204455480,duration=93799014724
travis_fold:end:cache.2

Done. Your build exited with 1.
dr0pdb commented 6 years ago
BUILD SUCCESSFUL in 3m 49s
83 actionable tasks: 83 executed
Exception in thread "Thread-15" java.lang.NoClassDefFoundError: com/android/utils/PathUtils$1
    at com.android.utils.PathUtils.deleteIfExists(PathUtils.java:47)
    at com.android.utils.PathUtils.lambda$addRemovePathHook$0(PathUtils.java:125)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.android.utils.PathUtils$1
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 3 more
Running tests
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Traceback (most recent call last):
  File "./testdroid.py", line 28, in <module>
    raise AssertionError("Success ratio only: {}".format(ratio))
AssertionError: Success ratio only: 0.909091

@kelson42 Are you sure this has been happening after the dependencies were introduced ? Isn't this related to #518 . Looks very similar.

From #518

BUILD SUCCESSFUL in 3m 10s
83 actionable tasks: 83 executed
Exception in thread "Thread-32" java.lang.NoClassDefFoundError: com/android/utils/PathUtils$1
    at com.android.utils.PathUtils.deleteIfExists(PathUtils.java:47)
    at com.android.utils.PathUtils.lambda$addRemovePathHook$0(PathUtils.java:125)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.android.utils.PathUtils$1
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 3 more
Running tests
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Waiting for results
Traceback (most recent call last):
  File "./testdroid.py", line 28, in <module>
    raise AssertionError("Success ratio only: {}".format(ratio))
AssertionError: Success ratio only: 0.833333
kelson42 commented 6 years ago

@srv-twry #518 is not blocking and does not make the CI fails. It exists since longer, but the CI has started to fail just after the last commit.

hjoshi123 commented 6 years ago

@kelson42 Yeah it has started recently. My PR's got built successfully but @brijeshshah13 posted a PR today whose build failed.

brijeshshah13 commented 6 years ago

@kelson42 @srv-twry After cloning the master 3 times for verifying this issue, I report that the error does occur when I build the default build variant. However, after I change to kiwixDebug, the build passes successfully and installs the app too.