SHARE
TWEET

Untitled

a guest Jun 12th, 2019 168 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. When building my app the Gradle invocation fails with the following error whilst running the `app:transformDexWithInstantRunSlicesApkForDebug` task as part of the app assembly. I've no idea why this is happening. How do I fix it?
  2.  
  3. I'm using Gradle 5.1.1.
  4.  
  5. ```
  6.     java.lang.RuntimeException: java.lang.RuntimeException:
  7.     java.io.FileNotFoundException:
  8.     F:\Android\Knowtrend2\app\build\intermediates\instant_run_split_apk_resources\debug\instantRunSplitApkResourcesDebug\out\slice_3\resources_ap
  9.         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  10.     Method)     at
  11.     sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  12.         at
  13.     sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  14.         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  15.         at
  16.     java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:593)
  17.         at
  18.     java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677)
  19.         at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720)    at
  20.     com.android.ide.common.internal.WaitableExecutor.waitForTasksWithQuickFail(WaitableExecutor.java:149)
  21.         at
  22.     com.android.build.gradle.internal.transforms.InstantRunSliceSplitApkBuilder.transform(InstantRunSliceSplitApkBuilder.java:246)
  23.         at
  24.     com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:239)
  25.         at
  26.     com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:235)
  27.         at
  28.     com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
  29.         at
  30.     com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:230)
  31.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
  32.     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  33.         at
  34.     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  35.         at java.lang.reflect.Method.invoke(Method.java:498)     at
  36.     org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)   at
  37.     org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:47)
  38.         at
  39.     org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
  40.         at
  41.     org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
  42.         at
  43.     org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.run(ExecuteActionsTaskExecuter.java:284)
  44.         at
  45.     org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
  46.         at
  47.     org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
  48.         at
  49.     org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
  50.         at
  51.     org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
  52.         at
  53.     org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
  54.         at
  55.     org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:273)
  56.         at
  57.     org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:258)
  58.         at
  59.     org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:67)
  60.         at
  61.     org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:145)
  62.         at
  63.     org.gradle.internal.execution.impl.steps.ExecuteStep.execute(ExecuteStep.java:49)
  64.         at
  65.     org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute(CancelExecutionStep.java:34)
  66.         at
  67.     org.gradle.internal.execution.impl.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:69)
  68.         at
  69.     org.gradle.internal.execution.impl.steps.TimeoutStep.execute(TimeoutStep.java:49)
  70.         at
  71.     org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute(CatchExceptionStep.java:33)
  72.         at
  73.     org.gradle.internal.execution.impl.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)
  74.         at
  75.     org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:43)
  76.         at
  77.     org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:29)
  78.         at
  79.     org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache(CacheStep.java:134)
  80.         at
  81.     org.gradle.internal.execution.impl.steps.CacheStep.lambda$execute$3(CacheStep.java:83)
  82.         at java.util.Optional.orElseGet(Optional.java:267)  at
  83.     org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:82)
  84.         at
  85.     org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:36)
  86.         at
  87.     org.gradle.internal.execution.impl.steps.PrepareCachingStep.execute(PrepareCachingStep.java:33)
  88.         at
  89.     org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:38)
  90.         at
  91.     org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:23)
  92.         at
  93.     org.gradle.internal.execution.impl.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
  94.         at
  95.     org.gradle.internal.execution.impl.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
  96.         at java.util.Optional.map(Optional.java:215)    at
  97.     org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52)
  98.         at
  99.     org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
  100.         at
  101.     org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:34)
  102.         at
  103.     org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:91)
  104.         at
  105.     org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:91)
  106.         at
  107.     org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
  108.         at
  109.     org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:119)
  110.         at
  111.     org.gradle.api.internal.tasks.execution.ResolvePreviousStateExecuter.execute(ResolvePreviousStateExecuter.java:43)
  112.         at
  113.     org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:93)
  114.         at
  115.     org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:45)
  116.         at
  117.     org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:94)
  118.         at
  119.     org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:56)
  120.         at
  121.     org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:55)
  122.         at
  123.     org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
  124.         at
  125.     org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:67)
  126.         at
  127.     org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
  128.         at
  129.     org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
  130.         at
  131.     org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:315)
  132.         at
  133.     org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:305)
  134.         at
  135.     org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
  136.         at
  137.     org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:101)
  138.         at
  139.     org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
  140.         at
  141.     org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
  142.         at
  143.     org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
  144.         at
  145.     org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
  146.         at
  147.     org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
  148.         at
  149.     org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
  150.         at
  151.     org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
  152.         at
  153.     org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
  154.         at
  155.     org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
  156.         at
  157.     org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
  158.         at
  159.     org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
  160.         at
  161.     org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
  162.         at
  163.     org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
  164.         at
  165.     org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
  166.         at
  167.     java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  168.         at
  169.     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  170.         at
  171.     org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
  172.         at java.lang.Thread.run(Thread.java:745) Caused by:
  173.     java.lang.RuntimeException: java.io.FileNotFoundException:
  174.     F:\Android\Knowtrend2\app\build\intermediates\instant_run_split_apk_resources\debug\instantRunSplitApkResourcesDebug\out\slice_3\resources_ap
  175.         at
  176.     java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1431)
  177.         at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
  178.         at
  179.     java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
  180.         at
  181.     java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
  182.         at
  183.     java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
  184.     Caused by: java.io.FileNotFoundException:
  185.     F:\Android\Knowtrend2\app\build\intermediates\instant_run_split_apk_resources\debug\instantRunSplitApkResourcesDebug\out\slice_3\resources_ap
  186.         at
  187.     com.android.build.gradle.internal.transforms.InstantRunSliceSplitApkBuilder.lambda$null$1(InstantRunSliceSplitApkBuilder.java:233)
  188.         at
  189.     java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424)
  190.         ... 4 more
  191. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top