jenkinsci / peass-ci-plugin

Jenkins plugin for peass to support performance measurement in CI
https://plugins.jenkins.io/peass-ci/
GNU Affero General Public License v3.0
4 stars 13 forks source link

Adapt android.packagingOptions for emulated tests #173

Closed alex-iotiq closed 1 year ago

alex-iotiq commented 2 years ago

To avoid build errors like this:

Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'META-INF/LICENSE.md'.

You have to add exclude options for the files mentioned below to build.gradle:

android.packagingOptions {
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/LICENSE.md'
    exclude 'META-INF/NOTICE.md'
    exclude 'META-INF/jing-copying.html'
    exclude 'META-INF/LICENSE-notice.md'
}