build: FullDebugUnitTest fails
gradle build fails with
[...]
:app:processFullDebugUnitTestJavaRes UP-TO-DATE
:app:compileFullDebugUnitTestSources
:app:mockableAndroidJar UP-TO-DATE
:app:assembleFullDebugUnitTest
:app:testFullDebugUnitTest
org.xbmc.kore.provider.mediaprovider.SongsTest > queryArtistsSongWithArtistWithoutAlbumTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsSongWithMultipleArtistsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryAlbumSongsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryArtistSongsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsSongWithAlbumWithoutArtistTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryMultidiscAlbumSongsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsSongWithArtistWithoutAlbumTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryThirdArtistSongWithMultipleArtistsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > querySecondArtistSongWithMultipleArtistsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryFirstArtistSongWithMultipleArtistsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.SongsTest > queryAllSongsSongWithAlbumAndArtistTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumsForArtistTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumsForArtistWithVariousArtistsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumWithMultipleArtists FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAlbumWithoutArtist FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.AlbumsTest > queryAllAlbumsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.GenresTest > queryAllGenresTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.GenresTest > queryAlbumsForGenreTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.ArtistsTest > queryAllArtistsTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
org.xbmc.kore.provider.mediaprovider.ArtistsTest > queryArtistTest FAILED
org.apache.tools.ant.BuildException
Caused by: org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException
23 tests completed, 22 failed, 1 skipped
:app:testFullDebugUnitTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:testFullDebugUnitTest'.
> There were failing tests. See the report at: file:///~/git/Kore/app/build/reports/tests/fullDebug/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4 mins 2.121 secs
The release apk works fine though. I'm on Ubuntu 16.04 with latest AndroidStudio, SDK and support libraries installed.
The error you're getting should not occur. The :app:testFullDebugUnitTest should run fine.
Try running a clean before running testFullDebugUnitTest.
Note that running build does not work because we use different flavors to make sure test files and permissions do not get included into release builds as well. The build task will run testFullReleaseUnitTest which will run the local tests without the required assets. These assets are included in the testFullDebugUnitTest task.
Still the same after git pull followed by git reset --hard followed by git clean -dfx followed by ANDROID_HOME=~/Android/Sdk/ /opt/android-studio/gradle/gradle-2.14.1/bin/gradle testFullDebugUnitTest. Still, the assembleRelease target works fine.
So it's still failing at testFullDebugUnitTest? Strange, I just ran the build on a clean clone on the master branch and it succeeds at testFullDebugUnitTest and fails at testFullReleaseUnitTest, as it should.
I think you have a problem with loading the dependencies from maven.
Try running gradlew -d to see which deps fail to download.
Did you manage to get this fixed?
Closing this. Please reopen if the problem persists and you can provide more details.