Closed bernaferrari closed 6 years ago
Which Gradle task were you running that produced that specific error? I ran assembleDebug
with no trouble. Attempted to run :app:transformClassesAndResourcesWithProguardForDebug
but it fails stating it can't find that task. I was able to run :app:transformClassesAndResourcesWithProguardForRelease
successfully though.
I added shrinkResources=true and minify=true from release to build and tried to assembleDebug without success..
I have no idea what is going on..
Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug
Full log: w: Classpath entry points to a non-existent location: /Users/bernardoferrari/Documents/ChangeDetection/app/build/generated/source/aidl/debug w: Classpath entry points to a non-existent location: /Users/bernardoferrari/Documents/ChangeDetection/app/src/debug/kotlin w: Classpath entry points to a non-existent location: /Users/bernardoferrari/Documents/ChangeDetection/app/src/debug/java w: Classpath entry points to a non-existent location: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/kotlin w: Note: [1] Wrote GeneratedAppGlideModule with: [] w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/SettingsFragment.kt: (38, 47): Unnecessary non-null assertion (!!) on a non-null receiver of type Application w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/ViewModelFactory.kt: (49, 15): Unchecked cast: MainViewModel to T w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/ViewModelFactory.kt: (53, 15): Unchecked cast: TextViewModel to T w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/ViewModelFactory.kt: (57, 15): Unchecked cast: PdfViewModel to T w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/ViewModelFactory.kt: (61, 15): Unchecked cast: ImageViewModel to T w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/detailsText/TextViewModel.kt: (228, 13): Condition 'original == null' is always 'false' w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/detailsText/TextViewModel.kt: (228, 33): Condition 'new == null' is always 'false' w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/ui/ElasticDragDismissFrameLayout.kt: (258, 13): Parameter 'elasticOffset' is never used w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/ui/ElasticDragDismissFrameLayout.kt: (258, 35): Parameter 'elasticOffsetPixels' is never used w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/ui/ElasticDragDismissFrameLayout.kt: (259, 13): Parameter 'rawOffset' is never used w: /Users/bernardoferrari/Documents/ChangeDetection/app/src/main/java/com/bernaferrari/changedetection/ui/ElasticDragDismissFrameLayout.kt: (259, 31): Parameter 'rawOffsetPixels' is never used
Note: the configuration keeps the entry point 'com.afollestad.materialdialogs.internal.MDButton { void setStackedGravity(com.afollestad.materialdialogs.GravityEnum); }', but not the descriptor class 'com.afollestad.materialdialogs.GravityEnum' Note: the configuration keeps the entry point 'com.afollestad.materialdialogs.internal.MDRootLayout { void setStackingBehavior(com.afollestad.materialdialogs.StackingBehavior); }', but not the descriptor class 'com.afollestad.materialdialogs.StackingBehavior' Note: the configuration keeps the entry point 'com.afollestad.materialdialogs.internal.MDRootLayout { void setButtonGravity(com.afollestad.materialdialogs.GravityEnum); }', but not the descriptor class 'com.afollestad.materialdialogs.GravityEnum' Note: the configuration keeps the entry point 'com.afollestad.materialdialogs.internal.MDRootLayout { void setButtonStackedGravity(com.afollestad.materialdialogs.GravityEnum); }', but not the descriptor class 'com.afollestad.materialdialogs.GravityEnum' Note: the configuration keeps the entry point 'com.bernaferrari.changedetection.ui.ColorPickerItem { void setColors(kotlin.Pair); }', but not the descriptor class 'kotlin.Pair' Note: the configuration keeps the entry point 'com.bernaferrari.changedetection.ui.ColorPickerItem { ColorPickerItem(android.content.Context,android.util.AttributeSet,int,int,int,kotlin.jvm.internal.DefaultConstructorMarker); }', but not the descriptor class 'kotlin.jvm.internal.DefaultConstructorMarker' Note: the configuration keeps the entry point 'com.bernaferrari.changedetection.ui.ControlBarItemToggleView { ControlBarItemToggleView(android.content.Context,android.util.AttributeSet,int,int,kotlin.jvm.internal.DefaultConstructorMarker); }', but not the descriptor class 'kotlin.jvm.internal.DefaultConstructorMarker' Note: the configuration keeps the entry point 'com.bernaferrari.changedetection.ui.CustomWebView { CustomWebView(android.content.Context,android.util.AttributeSet,int,int,kotlin.jvm.internal.DefaultConstructorMarker); }', but not the descriptor class 'kotlin.jvm.internal.DefaultConstructorMarker' Note: the configuration keeps the entry point 'com.bernaferrari.changedetection.ui.ElasticDragDismissFrameLayout { ElasticDragDismissFrameLayout(android.content.Context,android.util.AttributeSet,int,int,int,kotlin.jvm.internal.DefaultConstructorMarker); }', but not the descriptor class 'kotlin.jvm.internal.DefaultConstructorMarker' Note: the configuration keeps the entry point 'com.bernaferrari.changedetection.ui.RecyclerViewWithEmptyState { RecyclerViewWithEmptyState(android.content.Context,android.util.AttributeSet,int,int,kotlin.jvm.internal.DefaultConstructorMarker); }', but not the descriptor class 'kotlin.jvm.internal.DefaultConstructorMarker' Note: the configuration keeps the entry point 'com.facebook.stetho.dumpapp.Dumper { Dumper(java.lang.Iterable,org.apache.commons.cli.CommandLineParser); }', but not the descriptor class 'org.apache.commons.cli.CommandLineParser' Note: the configuration keeps the entry point 'com.facebook.stetho.dumpapp.Dumper { void dumpPluginOutput(java.io.InputStream,java.io.PrintStream,java.io.PrintStream,org.apache.commons.cli.CommandLine); }', but not the descriptor class 'org.apache.commons.cli.CommandLine' Note: the configuration keeps the entry point 'com.facebook.stetho.dumpapp.DumperContext { DumperContext(java.io.InputStream,java.io.PrintStream,java.io.PrintStream,org.apache.commons.cli.CommandLineParser,java.util.List); }', but not the descriptor class 'org.apache.commons.cli.CommandLineParser' Note: the configuration keeps the entry point 'com.yarolegovich.discretescrollview.DiscreteScrollView { void setItemTransformer(com.yarolegovich.discretescrollview.transform.DiscreteScrollItemTransformer); }', but not the descriptor class 'com.yarolegovich.discretescrollview.transform.DiscreteScrollItemTransformer' Note: the configuration keeps the entry point 'com.yarolegovich.discretescrollview.DiscreteScrollView { void setOrientation(com.yarolegovich.discretescrollview.DSVOrientation); }', but not the descriptor class 'com.yarolegovich.discretescrollview.DSVOrientation' Note: the configuration keeps the entry point 'kotlin.coroutines.experimental.AbstractCoroutineContextElement { AbstractCoroutineContextElement(kotlin.coroutines.experimental.CoroutineContext$Key); }', but not the descriptor class 'kotlin.coroutines.experimental.CoroutineContext$Key' Note: the configuration keeps the entry point 'kotlin.coroutines.experimental.AbstractCoroutineContextElement { kotlin.coroutines.experimental.CoroutineContext$Element get(kotlin.coroutines.experimental.CoroutineContext$Key); }', but not the descriptor class 'kotlin.coroutines.experimental.CoroutineContext$Key' Note: the configuration keeps the entry point 'kotlin.coroutines.experimental.AbstractCoroutineContextElement { java.lang.Object fold(java.lang.Object,kotlin.jvm.functions.Function2); }', but not the descriptor class 'kotlin.jvm.functions.Function2' Note: the configuration keeps the entry point 'kotlin.coroutines.experimental.AbstractCoroutineContextElement { kotlin.coroutines.experimental.CoroutineContext minusKey(kotlin.coroutines.experimental.CoroutineContext$Key); }', but not the descriptor class 'kotlin.coroutines.experimental.CoroutineContext$Key' Note: the configuration keeps the entry point 'kotlin.coroutines.experimental.AbstractCoroutineContextElement { kotlin.coroutines.experimental.CoroutineContext plus(kotlin.coroutines.experimental.CoroutineContext); }', but not the descriptor class 'kotlin.coroutines.experimental.CoroutineContext' Note: the configuration keeps the entry point 'kotlinx.coroutines.experimental.android.AndroidExceptionPreHandler { void handleException(kotlin.coroutines.experimental.CoroutineContext,java.lang.Throwable); }', but not the descriptor class 'kotlin.coroutines.experimental.CoroutineContext' Note: there were 21 unkept descriptor classes in kept class members. You should consider explicitly keeping the mentioned classes (using '-keep'). (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass) Note: there were 9 unresolved dynamic references to classes or interfaces. You should check if you need to specify additional program jars. (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass) Note: there were 1 class casts of dynamically created class instances. You might consider explicitly keeping the mentioned classes and/or their implementations (using '-keep'). (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclasscast) Warning: there were 14 unresolved references to classes or interfaces. You may need to add missing library jars or update their versions. If your code works fine without the missing classes, you can suppress the warnings with '-dontwarn' options. (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass) Warning: Exception while processing task java.io.IOException: Please correct the above warnings first. Thread(Tasks limiter_5): destruction
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'.
Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:103) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101) at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:256) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:185) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:97) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:249) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:238) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:663) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:596) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) Caused by: java.lang.RuntimeException: Job failed, see logs for details at com.android.build.gradle.internal.transforms.ProGuardTransform.transform(ProGuardTransform.java:194) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:239) at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:235) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102) at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:230) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:317) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:309) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:185) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:97) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95) ... 29 more Caused by: java.io.IOException: Please correct the above warnings first. at proguard.Initializer.execute(Initializer.java:485) at proguard.ProGuard.initialize(ProGuard.java:271) at proguard.ProGuard.execute(ProGuard.java:113) at com.android.build.gradle.internal.transforms.BaseProguardAction.runProguard(BaseProguardAction.java:64) at com.android.build.gradle.internal.transforms.ProGuardTransform.doMinification(ProGuardTransform.java:249) at com.android.build.gradle.internal.transforms.ProGuardTransform.access$000(ProGuardTransform.java:63) at com.android.build.gradle.internal.transforms.ProGuardTransform$1.run(ProGuardTransform.java:171) at com.android.builder.tasks.Job.runTask(Job.java:47) at com.android.build.gradle.tasks.SimpleWorkQueue$EmptyThreadContext.runTask(SimpleWorkQueue.java:41) at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:282)
Get more help at https://help.gradle.org
BUILD FAILED in 35s 25 actionable tasks: 8 executed, 17 up-to-date