Ошибка после миграции на androidx в андроид студии 3.3.1 - PullRequest
0 голосов
/ 08 февраля 2019

После того, как я перенес свой проект android studio 3.1 в androidx в android studio 3.3.1, я столкнулся со следующими ошибками:

org.gradle.execution.MultipleBuildFailures: Сборка завершена с 1 ошибкой.по адресу org.gradle.initialization.DefaultGradleLauncher $ ExecuteTasks.run (DefaultGradleLauncher.java:358) по адресу org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperation0$ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:292) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:174) в org.gradle.internal.obuils.Decec.org.gradle.internal.operations.DelegatingBuildOperationExecutor.run (DelegatingBuildOperationExecutor.java:31) в org.gradle.initialization.DefaultGradleLauncher.runTasks (DefaultGradleLauncher.java:219) в org.gradleefra.rag.rag149) в org.gradle.initialization.DefaultGradleLauncher.executeTasks (DefaultGradleLauncher.java:124) at org.gradle.internal.invocation.GradleBuildController $ 1.call (GradleBuildController.java:77) в org.gradle.internal.invocation.GradleBuildController $ 1.call (GradleBuildController.java:74) на рабочем месте. orger..withLocks (DefaultWorkerLeaseService.java:154) по адресу org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks (StopShieldingWorkerLeaseService.java:38) по адресу org.gradle.internal.invocild.ontrol.gtrolgradle.internal.invocation.GradleBuildController.run (GradleBuildController.java:74) в org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run (BuildModelActionRunner.java:55dlelag.exe.exe) gragвыполнить (ChainingBuildActionRunner.java:35) в org.gradle.launcher.exec.ChainingBuildActionRunner.run (ChainingBuildActionRunner.java:35) в org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.Bunjid.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner $ 3.run (RunAsBuildOperationBuildActionRunner.java:50) по адресу org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute.orke(DefaultBuildOperationExecutor.java:292) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:174) в org.gradle.internal.operations.DefaultBuildOperationExecutor.run (DefaultBuildjgra.grag).internal.operations.DelegatingBuildOperationExecutor.run (DelegatingBuildOperationExecutor.java:31) в org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run (RunAsBuildOperationBuildActionRunner.java:45) в org.unable.unJava: 51) в org.gradle.launcher.exec.InProcessBuildActionExecuter$ 1.transform (InProcessBuildActionExecuter.java:47) в org.gradle.launcher.exec.InProcessBuildActionExecuter $ 1.transform (InProcessBuildActionExecuter.java:44) в org.gradle.composite.internal.DefaultRootBuildState.java по умолчанию (79)org.gradle.launcher.exec.InProcessBuildActionExecuter.execute (InProcessBuildActionExecuter.java:44) в org.gradle.launcher.exec.InProcessBuildActionExecuter.execute (InProcessBuildActionExecuter.java:30) вorg.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute (BuildTreeScopeBuildActionExecuter.java:39) в org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute (BuildTreeS.Ont.inвыполнить (ContinuousBuildActionExecuter.java:80) по адресу org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute (ContinuousBuildActionExecuter.java:53) по адресу org.gradle.tooling.internal.provider.ServicesSetupв org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute (ServicesSetupBuildActionExecuter.java:34) в org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute.graj.in Execution.grain.provider.GradleThreadBuildActionExecuter.execute (GradleThreadBuildActionExecuter.java:25) в org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExec:59) в org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute (StartParamsValidatingActionExecuter.java:31) в org.gradle.tooling.internal.provider.SessionFailureReportingActionExolter.exava..internal.provider.SessionFailureReportingActionExecuter.execute (SessionFailureReportingActionExecuter.java:44) в org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute (SetupLoggingActionExaction.ecu..up.Gup.Gup.Gup.Exment.olter.ol.(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.daapimon.ver.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) по адресу org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute (ResetDeprecationLogger.java:26) в org.gradle.launcher.daemon.monpro.DaemonCommandExecution.java:122) в org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute (RequestStopIfSingleUsedDaemon.java:34) в org.gradle.launcher.daemon.server.apedExessioneom122) в 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.ser.LogAndCheckHealth.execute (LogAndCheckHealth.java:55) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.gradle.launcherildliog.doe(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:java:).launcher.daemon.server.exec.BuildCommandOnly.execute (BuildCommandOnly.java:36) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution.java:122) в org.dada.graserver.exec.StartBuildOrRespondWithBusy $ 1.run (StartBuildOrRespondWithBusy.java:50) по адресу org.gradle.launcher.daemon.server.DaemonStateCoordinator $ 1.run (DaemonStateCoordinator.java:cordonExecute (ExecutorPolicy.java:63) в org.gradle.internal.concurrent.ManagedExecutorImpl $ 1.run (ManagedExecutorImpl.java:46) в java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExectil.java) jjconcurrent.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.api.tasks.TaskExecutionException: выполнение не выполнено для задачи:приложение: processDebugResources.в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions (ExecuteActionsTaskExecuter.java:110) в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute:gra.grag: at77).api.internal..tasks.execution.ResolveTaskOutputCachingStateExecuter.execute (ResolveTaskOutputCachingStateExecuter.java:54) в org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute.a.as.gra..SkipEmptySourceFilesTaskExecuter.execute (SkipEmptySourceFilesTaskExecuter.java:101) в org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute (FinalizeInputFileProgra.jpg) org.jpg.api.internal..tasks.execution..ExecuteAtMostOnceTaskExecuter.execute (ExecuteAtMostOnceTaskExecuter.java:43) в org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute (CatchExceptionTaskExecuter.java:34) в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter $ 1.выполнить (EventFiringTaskExecuter.java:51) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:300) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:292) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor.java:174) в org.gradle.internal.operationuOgnoв org.gradle.internal.operations.DelegatingBuildOperationExecutor.run (DelegatingBuildOperationExecutor.java:31) в org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute (EventFiringTaskExecuter.java:46)org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute (LocalTaskInfoExecutor.java:42) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $ BuildOperationAwareWorkItemExecutor.execute (DefaultTaskExecutionGraph.java:277) в org.gradle.execution.taskgraph.DefaultTaskExecutionGraph $BuildOperationAwareWorkItemExecutor.execute (DefaultTaskExecutionGraph.java:262) в org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ ExecutorWorker $ 1.execute (DefaultTaskPlanExecutor.jecjava: 130) в org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ ExecutorWorker.execute (DefaultTaskPlanExecutor.java:200) в org.gradle.execution.taskgraph.DefaultTaskPlanExecutor $ ExecutorWorker.exava.graj.tg.execution.taskgraph.DefaultTaskPlanExecutor $ ExecutorWorker.run (DefaultTaskPlanExecutor.java:130) ... еще 6 причин: com.android.builder.internal.aapt.v2.Aapt2Exception: сбой связывания ресурса Android C: \ Users \ Alex \ AndroidStudioProjects \ Oloom6 \ app \ src \ main \ res \ values ​​\ styles.xml: 30: 5-91: AAPT: ошибка: стиль ресурса /Widget.Design.CoordinatorLayout (он же com.myapps.amz.oloom6n: style / Widget.Design.CoordinatorLayout) не найден.ошибка: не удалось связать ссылки.в com.android.builder.internal.aapt.v2.Aapt2Exception $ Companion.create (Aapt2Exception.kt: 45) в com.android.builder.internal.aapt.v2.Aapt2Exception $ Companion.create $ default (Aapt2Exception.kt:39) в com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteException (Aapt2ErrorUtils.kt: 97) в com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteLinkException (Aapt2ErrorUtils.kt: 73).android.build.gradle.internal.res..gradle.internal.tasks.IncrementalTask.taskAction (IncrementalTask.java:106) в sun.reflect.NativeMethodAccessorImpl.invoke0 (нативный метод) в sun.reflect.NativeMethodAccessorImpl.incee взыскания к себе.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:50) в org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute (StandardTaskAction.java:39) в org.gradle.api.internalkasta.as.t.Выполнить (StandardTaskAction.java:26) в org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter $ 1.run (ExecuteActionsTaskExecuter.java:131) в org.gradle.internal.operations.DefaultBuildOperationExperationB: 300) at org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor.java:292) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildjgra):.operations.DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor.java:90) по адресу org.gradle.internal.operations.DelegatingBuildOperationExecutor.run (DelegatingBuildOperationExecutor.java:31) по адресу org.gradle.api.internal.tasks.execution.ExecuteAction.Extate120) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions (ExecuteActionsTaskExecuter.java:99) ... еще 34 причины:com.android.builder.internal.aapt.v2.Aapt2Exception: не удалось связать ресурс Android: C: \ Users \ Alex \ AndroidStudioProjects \ Oloom6 \ app \ build \ промежуточные \ incremental \ mergeDebugResources \ merged.dir \ values ​​\ values.xml: 970: ошибка: стиль ресурса / Widget.Design.CoordinatorLayout (он же com.myapps.amz.oloom6n: style / Widget.Design.CoordinatorLayout) не найден.ошибка: не удалось связать ссылки.

на com.android.builder.internal.aapt.v2.Aapt2Exception $ Companion.create (Aapt2Exception.kt: 45) на com.android.builder.internal.aapt.v2.Aapt2Exception $ Companion.create $ default (Aapt2Exception.kt: 39) на com.android.builder.internal.aapt.v2.Aapt2DaemonImpl.doLink (Aapt2DaemonImpl.kt: 188) на com.android.builder.internal.aapt.v2.Aapt2Daemon.link (Aapt2Daemon.kt: 103) на com.android.builder.internal.aapt.v2.Aapt2DaemonManager $ LeasedAaptDaemon.link (Aapt2DaemonManager.kt: 176) на com.android.builder.core.AndroidBuders.Java: 839) at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.invokeAaptForSplit (LinkApplicationAndroidResourcesTask.java:512) ... еще 52

Моя сборка. gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.myapps.amz.oloom6n"
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 9
        versionName "3.0.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
  }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation files('libs/jsoup-1.10.3.jar')
    implementation files('libs/commons-codec-1.10.jar')
    implementation files('libs/commons-lang3-3.6.jar')
    implementation files('libs/commons-text-1.1.jar')
    implementation files('libs/MPAndroidChart-v3.0.1.jar')
    implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0-beta01'
    implementation 'androidx.cardview:cardview:1.0.0-beta01'
    implementation 'androidx.recyclerview:recyclerview:1.0.0-beta01'
    implementation 'com.google.android.material:material:1.0.0-beta01'
    implementation 'androidx.vectordrawable:vectordrawable:1.0.0-beta01'
    implementation 'commons-io:commons-io:2.5'
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation 'com.github.d-max:spots-dialog:1.1@aar'
    implementation 'co.ronash.android:pushe-base:1.4.0'
    implementation 'com.google.android.gms:play-services-gcm:16.0.0'
    implementation 'com.google.android.gms:play-services-location:16.0.0'
    implementation 'ir.tapsell.sdk:tapsell-sdk-android:3.1.10'
    implementation 'com.google.ads.interactivemedia.v3:interactivemedia:3.8.7'
    implementation 'com.google.android.gms:play-services-ads:16.0.0'
    implementation 'androidx.browser:browser:1.0.0-beta01'
    implementation 'androidx.multidex:multidex:2.0.0'
    implementation 'me.cheshmak:analytics:2.+'
    implementation files('libs/magnet-android-sdk-5.0.3.jar')
}

Пожалуйста, помогите мне.

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