org.gradle.tooling.BuildException: java.io.IOException: не удалось сгенерировать подпись v1 - PullRequest
0 голосов
/ 06 мая 2018

Время от времени мой проект не запускается в данный момент (он восстанавливается успешно, но не может работать): К сожалению, я еще не разбираюсь в Gradle, пожалуйста, помогите Q_Q

: приложение: mergeDebugJniLibFolders 4ms

: приложение: transformNativeLibsWithMergeJniLibsForDebug 359ms

: app: processDebugJavaRes

: app: transformResourcesWithMergeJavaResForDebug 436ms

: приложение: validateSigningDebug 1ms : app: packageDebug 428ms (приводит к ошибке) :

Выполнить задачу Действие 421мс

там написано: Причина: java.lang.IllegalArgumentException: отсутствует обязательный атрибут Manifest-Version

Вот содержимое файла манифеста:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="net.c7j.wna">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>


    <application
        android:name="net.c7j.wna.MyApp"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <uses-library android:name="com.google.android.maps" />

        <service android:name="net.c7j.wna.presentation.service.ForegroundService"/>
        <receiver android:name="net.c7j.wna.presentation.service.MyAlarmReceiver">
            <intent-filter>
                <action android:name="com.example.helloandroid.alarms" />
            </intent-filter>
        </receiver>

        <service android:name="net.c7j.wna.presentation.bootservice.AlarmSetService"/>
        <receiver android:name="net.c7j.wna.presentation.bootservice.BootReceiver" android:enabled="true">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>


        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="@string/google_maps_api_key" />

        <activity
            android:name="net.c7j.wna.presentation.view.ActivityPlay"
            android:windowSoftInputMode="adjustResize"
            android:screenOrientation="portrait"
            android:launchMode="singleTask"
            >

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>

</manifest>

Вот файл сборки gradle:

apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'me.tatarka.retrolambda'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "net.c7j.wna"
        minSdkVersion 21
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
            }
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    packagingOptions {
        exclude 'META-INF/services/javax.annotation.processing.Processor'
        pickFirst 'META-INF/*'
    } // for butterknife
    lintOptions {
        disable 'ContentDescription'
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

def ver = [:]
ver.butterknife = "8.8.1"
ver.constraint = "1.0.2"
ver.glide = "3.8.0"
ver.okhttp_logging_interceptor = "3.9.0"
ver.picasso = "2.71828"
ver.retrofit2 = "2.3.0"
ver.room = "1.1.0-beta2"
ver.rx_java2 = "2.1.3"
ver.rx_android2 = "2.0.1"
ver.stetho = "1.5.0"
ver.support = "27.1.0"
ver.play_services = "12.0.1";
//

dependencies {
    implementation "com.google.firebase:firebase-core:$ver.play_services"
    implementation "com.google.android.gms:play-services-ads:$ver.play_services"
    implementation "com.google.android.gms:play-services-maps:$ver.play_services"
    implementation "com.android.support:appcompat-v7:$ver.support"
    implementation "com.android.support:recyclerview-v7:$ver.support"
    implementation "com.android.support:design:$ver.support"
    implementation "com.android.support.constraint:constraint-layout:$ver.constraint"
    implementation "com.jakewharton:butterknife:$ver.butterknife"
    annotationProcessor "com.jakewharton:butterknife-compiler:$ver.butterknife"
    implementation "com.squareup.picasso:picasso:$ver.picasso"
    implementation "io.reactivex.rxjava2:rxjava:$ver.rx_java2"
    implementation "io.reactivex.rxjava2:rxandroid:$ver.rx_android2"
    implementation "com.squareup.retrofit2:retrofit:$ver.retrofit2"
    implementation "com.squareup.retrofit2:converter-gson:$ver.retrofit2"
    implementation "com.squareup.retrofit2:adapter-rxjava2:$ver.retrofit2"
    implementation "android.arch.persistence.room:runtime:$ver.room"
    implementation "android.arch.persistence.room:rxjava2:$ver.room"
    annotationProcessor "android.arch.persistence.room:compiler:$ver.room"
    implementation "com.facebook.stetho:stetho:$ver.stetho"
}

//gradle assemble --stacktrace
//Don't move this apply plugin above or project will fail to build
apply plugin: 'com.google.gms.google-services'

Root build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.


buildscript {

    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1'
        classpath 'com.google.gms:google-services:3.2.0'
        classpath 'me.tatarka:gradle-retrolambda:3.7.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

После запуска Сборка грейдера --stacktrace :

Ошибка: СБОЙ: Сбой сборки с исключением.

  • Что пошло не так: Задача «gradle» не найдена в корневом проекте «wna3».

  • Попробуйте: Запустите задачи gradle, чтобы получить список доступных задач. Запустите с параметром --info или --debug, чтобы получить больше вывода журнала. Запустите с --scan, чтобы получить полное представление.

  • Исключение составляют: org.gradle.execution.TaskSelectionException: задача 'gradle' не найдена в корневом проекте 'wna3'. в org.gradle.execution.TaskSelector.getSelection (TaskSelector.java:116) в org.gradle.execution.TaskSelector.getSelection (TaskSelector.java:81) в org.gradle.execution.commandline.CommandLineTaskParser.parseTasks (CommandLineTaskParser.java:42) в org.gradle.execution.TaskNameResolvingBuildConfigurationAction.configure (TaskNameResolvingBuildConfigurationAction.java:44) в org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure (DefaultBuildConfigurationActionExecuter.java:48) в org.gradle.execution.DefaultBuildConfigurationActionExecuter.access $ 000 (DefaultBuildConfigurationActionExecuter.java:25) в org.gradle.execution.DefaultBuildConfigurationActionExecuter $ 1.proceed (DefaultBuildConfigurationActionExecuter.java:54) в org.gradle.execution.DefaultTasksBuildExecutionAction.configure (DefaultTasksBuildExecutionAction.java:44) в org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure (DefaultBuildConfigurationActionExecuter.java:48) в org.gradle.execution.DefaultBuildConfigurationActionExecuter.access $ 000 (DefaultBuildConfigurationActionExecuter.java:25) в org.gradle.execution.DefaultBuildConfigurationActionExecuter $ 1.proceed (DefaultBuildConfigurationActionExecuter.java:54) в org.gradle.execution.ExcludedTaskFilteringBuildConfigurationAction.configure (ExcludedTaskFilteringBuildConfigurationAction.java:47) в org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure (DefaultBuildConfigurationActionExecuter.java:48) в org.gradle.execution.DefaultBuildConfigurationActionExecuter.select (DefaultBuildConfigurationActionExecuter.java:36) в org.gradle.initialization.DefaultGradleLauncher $ CalculateTaskGraph.run (DefaultGradleLauncher.java:268) в org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:336) в org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:328) в org.gradle.internal.progress.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:199)в org.gradle.internal.progress.DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor.java:110) в org.gradle.initialization.DefaultGradleLauncher.constructTaskGraph (DefaultGradleLauncher.java:175) в org.gradle.initialization.DefaultGradleLauncher.doBuildStages (DefaultGradleLauncher.java:130) в org.gradle.initialization.DefaultGradleLauncher.executeTasks (DefaultGradleLauncher.java:109) в org.gradle.internal.invocation.GradleBuildController $ 1.call (GradleBuildController.java:78) в org.gradle.internal.invocation.GradleBuildController $ 1.call (GradleBuildController.java:75) в org.gradle.internal.work.DefaultWorkerLeaseService.withLocks (DefaultWorkerLeaseService.java:152) в org.gradle.internal.invocation.GradleBuildController.doBuild (GradleBuildController.java:100) в org.gradle.internal.invocation.GradleBuildController.run (GradleBuildController.java:75) в org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run (BuildModelActionRunner.java:53) в org.gradle.launcher.exec.ChainingBuildActionRunner.run (ChainingBuildActionRunner.java:35) в org.gradle.launcher.exec.ChainingBuildActionRunner.run (ChainingBuildActionRunner.java:35) в org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run (ValidatingBuildActionRunner.java:32) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner $ 1.run (RunAsBuildOperationBuildActionRunner.java:43) в org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:336) в org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:328) в org.gradle.internal.progress.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:199) в org.gradle.internal.progress.DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor.java:110) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run (RunAsBuildOperationBuildActionRunner.java:40) at org.gradle.tooling.internal.provider.SubscribeableBuildActionRunner.run (SubscribeableBuildActionRunner.java:51) в org.gradle.launcher.exec.InProcessBuildActionExecuter.execute (InProcessBuildActionExecuter.java:47) в org.gradle.launcher.exec.InProcessBuildActionExecuter.execute (InProcessBuildActionExecuter.java:30) в org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute (BuildTreeScopeBuildActionExecuter.java:39) в org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute (BuildTreeScopeBuildActionExecuter.java:25) в org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute (ContinuousBuildActionExecuter.java:80) в org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute (ContinuousBuildActionExecuter.java:53) в org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute (ServicesSetupBuildActionExecuter.java:57) в org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute (ServicesSetupBuildActionExecuter.java:32) в org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute (GradleThreadBuildActionExecuter.java:36) в org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute (GradleThreadBuildActionExecuter.java:25) в org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute (ParallelismConfigurationBuildActionExecuter.java:43) в org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute (ParallelismConfigurationBuildActionExecuter.java:29) в org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute (StartParamsValidatingActionExecuter.java:69) в org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute (StartParamsValidatingActionExecuter.java:30) в org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute (SessionFailureReportingActionExecuter.java:59)в org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute (SessionFailureReportingActionExecuter.java:44) в org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute (SetupLoggingActionExecuter.java:45) в org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute (SetupLoggingActionExecuter.java:30) в org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild (ExecuteBuild.java:67) в org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute (BuildCommandOnly.java:36) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute (WatchForDisconnection.java:37) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute (ResetDeprecationLogger.java:26) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute (RequestStopIfSingleUsedDaemon.java:34) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.gradle.launcher.daemon.server.exec.ForwardClientInput $ 2.call (ForwardClientInput.java:74) в org.gradle.launcher.daemon.server.exec.ForwardClientInput $ 2.call (ForwardClientInput.java:72) в org.gradle.util.Swapper.swap (Swapper.java:38) в org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute (ForwardClientInput.java:72) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute (LogAndCheckHealth.java:55) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.gradle.launcher.daemon.server.exec.LogToClient.doBuild (LogToClient.java:62) в org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute (BuildCommandOnly.java:36) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild (EstablishBuildEnvironment.java:82) в org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute (BuildCommandOnly.java:36) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy $ 1.run (StartBuildOrRespondWithBusy.java:50) в org.gradle.launcher.daemon.server.DaemonStateCoordinator $ 1.run (DaemonStateCoordinator.java:295) в org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute (ExecutorPolicy.java:63) в org.gradle.internal.concurrent.ManagedExecutorImpl $ 1.run (ManagedExecutorImpl.java:46) в org.gradle.internal.concurrent.ThreadFactoryImpl $ ManagedThreadRunnable.run (ThreadFactoryImpl.java:55)

  • Получите дополнительную помощь по https://help.gradle.org

СТРОИТЬ СБОЙ за 3 с

Полная трассировка стека:

org.gradle.api.tasks.TaskExecutionException: не удалось выполнить задачу ': app: packageDebug'. в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions (ExecuteActionsTaskExecuter.java:100) в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute (ExecuteActionsTaskExecuter.java:70) в org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute (OutputDirectoryCreatingTaskExecuter.java:51) в org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute (SkipUpToDateTaskExecuter.java:62) в org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute (ResolveTaskOutputCachingStateExecuter.java:54)в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute (ValidatingTaskExecuter.java:60) в org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute (SkipEmptySourceFilesTaskExecuter.java:97) в org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute (CleanupStaleOutputsExecuter.java:87) в org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute (ResolveTaskArtifactStateTaskExecuter.java:52) в org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute (SkipTaskWithNoActionsExecuter.java:52) в org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute (SkipOnlyIfTaskExecuter.java:54) в org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute (ExecuteAtMostOnceTaskExecuter.java:43) в org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute (CatchExceptionTaskExecuter.java:34) в org.gradle.execution.taskgraph.DefaultTaskGraphExecuter $ EventFiringTaskWorker $ 1.run (DefaultTaskGraphExecuter.java:248) в org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:336) в org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:328) в org.gradle.internal.progress.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:199) в org.gradle.internal.progress.DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor.java:110) в org.gradle.execution.taskgraph.DefaultTaskGraphExecuter $ EventFiringTaskWorker.execute (DefaultTaskGraphExecuter.java:241) в org.gradle.execution.taskgraph.DefaultTaskGraphExecuter $ EventFiringTaskWorker.execute (DefaultTaskGraphExecuter.java:230) в org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker.processTask (DefaultTaskPlanExecutor.java:123) в org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker.access $ 200 (DefaultTaskPlanExecutor.java:79) в org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker $ 1.execute (DefaultTaskPlanExecutor.java:104) в org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker $ 1.execute (DefaultTaskPlanExecutor.java:98) в org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute (DefaultTaskExecutionPlan.java:626) в org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask (DefaultTaskExecutionPlan.java:581) в org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ TaskExecutorWorker.run (DefaultTaskPlanExecutor.java:98) в org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute (ExecutorPolicy.java:63) в org.gradle.internal.concurrent.ManagedExecutorImpl $ 1.run (ManagedExecutorImpl.java:46) в java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142) в java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:617) в org.gradle.internal.concurrent.ThreadFactoryImpl $ ManagedThreadRunnable.run (ThreadFactoryImpl.java:55) на java.lang.Thread.run (Thread.java:745) Вызвано: org.gradle.tooling.BuildException: java.io.IOException: не удалось сгенерировать подпись v1 на com.android.build.gradle.internal.scope.OutputScope.lambda $ parallelForEachOutput $ 10 (OutputScope.java:241) в java.util.ArrayList.forEach (ArrayList.java:1251) в com.android.build.gradle.internal.scope.OutputScope.parallelForEachOutput (OutputScope.java:236) в com.android.build.gradle.internal.scope.OutputScope.parallelForEachOutput (OutputScope.java:197) в com.android.build.gradle.internal.scope.OutputScope.parallelForEachOutput (OutputScope.java:181) в com.android.build.gradle.tasks.PackageAndroidArtifact.doFullTaskAction (PackageAndroidArtifact.java:471)на com.android.build.gradle.internal.tasks.IncrementalTask.taskAction (IncrementalTask.java:109) at sun.reflect.NativeMethodAccessorImpl.invoke0 (собственный метод) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) в java.lang.reflect.Method.invoke (Method.java:498) в org.gradle.internal.reflect.JavaMethod.invoke (JavaMethod.java:73) в org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute (IncrementalTaskAction.java:46) в org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute (StandardTaskAction.java:39) в org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute (StandardTaskAction.java:26) в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter $ 1.run (ExecuteActionsTaskExecuter.java:121) в org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:336) в org.gradle.internal.progress.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:328) в org.gradle.internal.progress.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:199) в org.gradle.internal.progress.DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor.java:110) в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction (ExecuteActionsTaskExecuter.java:110) в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions (ExecuteActionsTaskExecuter.java:92) ... еще 32 Вызвано: java.lang.RuntimeException: java.io.IOException: не удалось сгенерировать подпись v1 в java.util.concurrent.ForkJoinTask $ AdaptedCallable.exec (ForkJoinTask.java:1431) в java.util.concurrent.ForkJoinTask.doExec (ForkJoinTask.java:289) в java.util.concurrent.ForkJoinPool $ WorkQueue.runTask (ForkJoinPool.java:1056) в java.util.concurrent.ForkJoinPool.runWorker (ForkJoinPool.java:1692) в java.util.concurrent.ForkJoinWorkerThread.run (ForkJoinWorkerThread.java:157) Вызвано: java.io.IOException: не удалось сгенерировать подпись v1 на com.android.apkzlib.sign.SigningExtension.onOutputZipReadyForUpdate (SigningExtension.java:297) на com.android.apkzlib.sign.SigningExtension.access $ 200 (SigningExtension.java:55) на com.android.apkzlib.sign.SigningExtension $ 1.lambda $ beforeUpdate $ 2 (SigningExtension.java:175) на com.android.apkzlib.zip.ZFile.notify (ZFile.java:2099) на com.android.apkzlib.zip.ZFile.update (ZFile.java:871) на com.android.apkzlib.zip.ZFile.close (ZFile.java:1161) на com.android.apkzlib.zfile.ApkZFileCreator.close (ApkZFileCreator.java:189) на com.google.common.io.Closer.close (Closer.java:216) на com.android.builder.internal.packaging.IncrementalPackager.close (IncrementalPackager.java:332) в com.android.build.gradle.tasks.PackageAndroidArtifact.doTask (PackageAndroidArtifact.java:700) в com.android.build.gradle.tasks.PackageAndroidArtifact.splitFullAction (PackageAndroidArtifact.java:522) на com.android.build.gradle.internal.scope.OutputScope.lambda $ parallelForEachOutput $ 6 (OutputScope.java:186) на com.android.build.gradle.internal.scope.OutputScope.lambda $ parallelForEachOutput $ 7 (OutputScope.java:203) на com.android.build.gradle.internal.scope.OutputScope.lambda $ null $ 8 (OutputScope.java:225) в java.util.concurrent.ForkJoinTask $ AdaptedCallable.exec (ForkJoinTask.java:1424) ... еще 4 Вызывается: java.lang.IllegalArgumentException: отсутствует обязательный атрибут Manifest-Version на com.android.apksig.internal.jar.ManifestWriter.writeMainSection (ManifestWriter.java:47) в com.android.apksig.internal.apk.v1.V1SchemeSigner.generateManifestFile (V1SchemeSigner.java:363) на com.android.apksig.internal.apk.v1.V1SchemeSigner.sign (V1SchemeSigner.java:253)на com.android.apksig.DefaultApkSignerEngine.outputJarEntries (DefaultApkSignerEngine.java:372) на com.android.apkzlib.sign.SigningExtension.onOutputZipReadyForUpdate (SigningExtension.java:295) ... еще 18

1 Ответ

0 голосов
/ 08 мая 2018
packagingOptions {
        exclude 'META-INF/services/javax.annotation.processing.Processor'
        pickFirst 'META-INF/*'
    } // for butterknife

Эта линия была причиной. Удалено и все в порядке.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...