Not able to get whats wrong

Description
Getting those errors in

Which Android Client SDK version?
v5.5.1.1319

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Go to ‘Import’
  2. Click on ‘.Click On Run Project’
  3. Scroll down to ‘Build These errors’
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. Note 8 pro]
  • OS: [e.g. Android 10]

Additional context
Add any other context about the problem here.
Execution failed for task ‘:app:mergeDebugResources’.

1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:612:5-95: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

  • 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:mergeDebugResources’.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:95)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:91)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:119)
    at org.gradle.api.internal.tasks.execution.ResolvePreviousStateExecuter.execute(ResolvePreviousStateExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:93)
    at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:45)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:94)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:56)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:55)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:67)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:315)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:305)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
    at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:101)
    at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
    at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
    at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
    at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
    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: com.android.ide.common.workers.WorkerExecutorException: 1 exception was raised by workers:
    com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
    C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:612:5-95: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:614:5-85: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:1694:5-87: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:4552:5-67: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:5859:5-5863:25: AAPT: error: duplicate value for resource ‘attr/foregroundColor’ with config ‘’.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:5859:5-5863:25: AAPT: error: resource previously defined here.

D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml: error: file failed to compile.

at com.android.ide.common.workers.ExecutorServiceAdapter.await(ExecutorServiceAdapter.kt:62)
at com.android.ide.common.workers.ExecutorServiceAdapter.close(ExecutorServiceAdapter.kt:69)
at com.android.build.gradle.internal.aapt.WorkerExecutorResourceCompilationService.close(WorkerExecutorResourceCompilationService.kt:67)
at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:268)
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:47)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.run(ExecuteActionsTaskExecuter.java:284)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:273)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:258)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:67)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:145)
at org.gradle.internal.execution.impl.steps.ExecuteStep.execute(ExecuteStep.java:49)
at org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute(CancelExecutionStep.java:34)
at org.gradle.internal.execution.impl.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:69)
at org.gradle.internal.execution.impl.steps.TimeoutStep.execute(TimeoutStep.java:49)
at org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute(CatchExceptionStep.java:33)
at org.gradle.internal.execution.impl.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)
at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:43)
at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:29)
at org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache(CacheStep.java:134)
at org.gradle.internal.execution.impl.steps.CacheStep.lambda$execute$3(CacheStep.java:83)
at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:82)
at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:36)
at org.gradle.internal.execution.impl.steps.PrepareCachingStep.execute(PrepareCachingStep.java:33)
at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:38)
at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:23)
at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52)
at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:34)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:91)
... 32 more

Caused by: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:612:5-95: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:614:5-85: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:1694:5-87: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:4552:5-67: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:5859:5-5863:25: AAPT: error: duplicate value for resource ‘attr/foregroundColor’ with config ‘’.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:5859:5-5863:25: AAPT: error: resource previously defined here.

D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml: error: file failed to compile.
at com.android.ide.common.workers.ExecutorServiceAdapter.await(ExecutorServiceAdapter.kt:56)
… 74 more
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:612:5-95: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:614:5-85: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:1694:5-87: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:4552:5-67: AAPT: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:5859:5-5863:25: AAPT: error: duplicate value for resource ‘attr/foregroundColor’ with config ‘’.

C:\Users\navn.AndroidStudio4.0\system\gradle.versions\caches\transforms-2\files-2.1\1e428353dcc76903739aea24aada784c\res\values\values.xml:5859:5-5863:25: AAPT: error: resource previously defined here.

D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml: error: file failed to compile.
at com.android.builder.internal.aapt.v2.Aapt2Exception$Companion.create(Aapt2Exception.kt:45)
at com.android.builder.internal.aapt.v2.Aapt2Exception$Companion.create$default(Aapt2Exception.kt:39)
at com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteException(Aapt2ErrorUtils.kt:97)
at com.android.build.gradle.internal.res.Aapt2ErrorUtils.rewriteCompileException(Aapt2ErrorUtils.kt:55)
at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable$run$1.invoke(Aapt2CompileWithBlameRunnable.kt:39)
at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable$run$1.invoke(Aapt2CompileWithBlameRunnable.kt:28)
at com.android.build.gradle.internal.res.namespaced.Aapt2DaemonManagerService.useAaptDaemon(Aapt2DaemonManagerService.kt:71)
at com.android.build.gradle.internal.res.namespaced.Aapt2DaemonManagerService.useAaptDaemon$default(Aapt2DaemonManagerService.kt:69)
at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable.run(Aapt2CompileWithBlameRunnable.kt:34)
at com.android.ide.common.workers.ExecutorServiceAdapter$submit$submission$1.run(ExecutorServiceAdapter.kt:40)
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4012: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.
D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:4014: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.
D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:5096: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.
D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:7958: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted=“false” attribute?.
D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:18534: error: duplicate value for resource ‘attr/foregroundColor’ with config ‘’.
D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:18534: error: resource previously defined here.
D:\Navneet WorkSpace\ExpressionNew\Expression -03042021\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml: error: file failed to compile.

at com.android.builder.internal.aapt.v2.Aapt2Exception$Companion.create(Aapt2Exception.kt:45)
at com.android.builder.internal.aapt.v2.Aapt2Exception$Companion.create$default(Aapt2Exception.kt:39)
at com.android.builder.internal.aapt.v2.Aapt2DaemonImpl.doCompile(Aapt2DaemonImpl.kt:155)
at com.android.builder.internal.aapt.v2.Aapt2Daemon.compile(Aapt2Daemon.kt:81)
at com.android.builder.internal.aapt.v2.Aapt2DaemonManager$LeasedAaptDaemon.compile(Aapt2DaemonManager.kt:170)
at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable$run$1.invoke

Hi @navneet.techlene, thanks for the post.

Sorry to hear you are running into this error. Can you please try checking out this thread for a similar issue and letting me know if the solutions there are not working for you?

Thanks!

I have Already Gone through this 2-3 times

Hi @navneet.techlene,

Can you please let me know specifically which steps you have already taken so that I can better advise you on the next steps?

Thanks!

updated to android x
gradle:3.4.2

compileSdkVersion = 30
buildToolsVersion = "30.0.3"
minSdkVersion 21
targetSdkVersion 30

then started importing

commonlib
mobilertc

from project Structure
Modules option
add new module

then using
Dependencies option


added implementation of the both modules

then tried for run project and this is the result

it shows mobilertc:unspecfied

Hi @navneet.techlene,

It seems that there are still some other solutions from that other thread which you have not yet tried. Please see this reply for more information. Let me know if you are still unable to get this working after following the suggestions mentioned there.

Thanks!

D:…app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:18551: AAPT: error: duplicate value for resource ‘attr/foregroundColor’ with config ‘’.

mobilertc\build.transforms\c633a213e940dad0908ae23ef72e33e2\jetified-mobilertc\res\values\values.xml:5854:5-5858:25: AAPT: error: resource previously defined here.

Now these

…\mobilertc\build.transforms\c633a213e940dad0908ae23ef72e33e2\jetified-mobilert
c\res\values\values.xml:5854:5-5858:25: AAPT: error: duplicate value for resource ‘attr/foregroundColor’ with config ‘’.

 D:.........mobilertc\build\.transforms\c633a213e940dad0908ae23ef72e33e2\jetified-mobilert

c\res\values\values.xml:5854:5-5858:25: AAPT: error: resource previously defined her

Hi @navneet.techlene,

What changes have you made in your project since you began seeing this new error?

Thanks!

based on this I set formatted=“false” after coping into my project string and i am available all night and next too. Like resolve it
asap

because its mobilertc files i am not able to edit it

Hi @navneet.techlene,

Can you please let me know which changes you have made in your project so that I can assist? This is not the same error that you were previously reporting, so something has changed.

Thanks!

Hey, I am having the same problem. have you got any solution yet?

1 Like

I already added these error too and its in mobilertc value folder String thats why i was not able to edit so I copied that data in my string xml and added formatted = false


after that some error stopped popping up now i am dealing with these errors

Kindly let me know if you are able to resolve it.

Hi @logan033,

Can you please let me know which suggestions from this thread you have tried already?

Thanks!

Hi @navneet.techlene,

Are you saying you copied the content over from the SDK into your own file so you could add that attribute? That is going to guarantee that you can’t build the app, because you now have a ton of resources with conflicting names. Can you please try the suggestions I mentioned in this reply?

Thanks!

Okay, I’ll do that but can you tell me how to edit mobilertc files because what solution you have given me to that how can edit that you have told me and this foregroundcolor error I already have it in my first question can you read it?

Hi @navneet.techlene,

You cannot modify the SDK’s files. Please let me know if you’ve had any luck with the suggestions from the other thread.

Thanks!

so how can i remove these error now . no luck