dialogCornerRadius, fontVariationSettings and ttcIndex not found during cordova build












0















I tried a lot around this problem and the solution is to force the version of android support to 27. Installing the plugin



cordova-android-support-gradle-release -variable ANDROID_SUPPORT_VERSION = 27.+



these errors disappear only that another appears problem inherent to a java class of another plugin, not finding the




class com.google.android.gms.internal.zzbfm not found




Errors generated during the build phase:



:app:splitsDiscoveryTaskDebug 

/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/dialogCornerRadius not found.
/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
/home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:676: error: resource android:attr/fontVariationSettings not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:676: error: resource android:attr/ttcIndex not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:902: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:903: error: resource android:attr/fontVariationSettings not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:909: error: resource android:attr/ttcIndex not found. error: failed linking references.

Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt at

com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796) at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551) at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285) at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109) at sun.reflect.GeneratedMethodAccessor548.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 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:248) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:748) Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794) ... 47 more Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ... 1 more Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:463) at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:415) at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332) at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)


Ioni Info




Ionic:




   ionic (Ionic CLI)  : 4.2.1 (/home/trip/.nvm/versions/node/v9.2.0/lib/node_modules/ionic)    Ionic Framework    : ionic-angular 3.9.2    @ionic/app-scripts : 3.1.8

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 7.1.0, ios 4.5.4 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview
1.2.1, (and 26 other plugins)

System:

Android SDK Tools : 26.1.1 (/home/trip/Android/Sdk) NodeJS : v9.2.0 (/home/trip/.nvm/versions/node/v9.2.0/bin/node) npm : 5.5.1 OS : Linux 4.15


 I tried to add these three attributes in the file/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values-v28/values-v28.xml where they are searched but the error persists. Someone knows how I could properly include them or does he have any other solution?



UPDATE 5/12/2018



I managed to solve this problem by pointing to a more recent intercom version (6.0.0). most likely the intercom plugin points to something behind the scenes.




  • ionic cordova platform rm android

  • ionic cordova platform add android

  • ionic cordova plugin add cordova-plugin.intercom@6.0.0










share|improve this question





























    0















    I tried a lot around this problem and the solution is to force the version of android support to 27. Installing the plugin



    cordova-android-support-gradle-release -variable ANDROID_SUPPORT_VERSION = 27.+



    these errors disappear only that another appears problem inherent to a java class of another plugin, not finding the




    class com.google.android.gms.internal.zzbfm not found




    Errors generated during the build phase:



    :app:splitsDiscoveryTaskDebug 

    /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
    /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
    /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
    /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/dialogCornerRadius not found.
    /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
    /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
    /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:676: error: resource android:attr/fontVariationSettings not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:676: error: resource android:attr/ttcIndex not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:902: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:903: error: resource android:attr/fontVariationSettings not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:909: error: resource android:attr/ttcIndex not found. error: failed linking references.

    Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt at

    com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796) at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551) at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285) at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109) at sun.reflect.GeneratedMethodAccessor548.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 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:248) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:748) Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794) ... 47 more Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ... 1 more Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:463) at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:415) at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332) at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)


    Ioni Info




    Ionic:




       ionic (Ionic CLI)  : 4.2.1 (/home/trip/.nvm/versions/node/v9.2.0/lib/node_modules/ionic)    Ionic Framework    : ionic-angular 3.9.2    @ionic/app-scripts : 3.1.8

    Cordova:

    cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 7.1.0, ios 4.5.4 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview
    1.2.1, (and 26 other plugins)

    System:

    Android SDK Tools : 26.1.1 (/home/trip/Android/Sdk) NodeJS : v9.2.0 (/home/trip/.nvm/versions/node/v9.2.0/bin/node) npm : 5.5.1 OS : Linux 4.15


     I tried to add these three attributes in the file/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values-v28/values-v28.xml where they are searched but the error persists. Someone knows how I could properly include them or does he have any other solution?



    UPDATE 5/12/2018



    I managed to solve this problem by pointing to a more recent intercom version (6.0.0). most likely the intercom plugin points to something behind the scenes.




    • ionic cordova platform rm android

    • ionic cordova platform add android

    • ionic cordova plugin add cordova-plugin.intercom@6.0.0










    share|improve this question



























      0












      0








      0








      I tried a lot around this problem and the solution is to force the version of android support to 27. Installing the plugin



      cordova-android-support-gradle-release -variable ANDROID_SUPPORT_VERSION = 27.+



      these errors disappear only that another appears problem inherent to a java class of another plugin, not finding the




      class com.google.android.gms.internal.zzbfm not found




      Errors generated during the build phase:



      :app:splitsDiscoveryTaskDebug 

      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/dialogCornerRadius not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
      /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:676: error: resource android:attr/fontVariationSettings not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:676: error: resource android:attr/ttcIndex not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:902: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:903: error: resource android:attr/fontVariationSettings not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:909: error: resource android:attr/ttcIndex not found. error: failed linking references.

      Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt at

      com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796) at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551) at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285) at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109) at sun.reflect.GeneratedMethodAccessor548.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 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:248) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:748) Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794) ... 47 more Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ... 1 more Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:463) at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:415) at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332) at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)


      Ioni Info




      Ionic:




         ionic (Ionic CLI)  : 4.2.1 (/home/trip/.nvm/versions/node/v9.2.0/lib/node_modules/ionic)    Ionic Framework    : ionic-angular 3.9.2    @ionic/app-scripts : 3.1.8

      Cordova:

      cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 7.1.0, ios 4.5.4 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview
      1.2.1, (and 26 other plugins)

      System:

      Android SDK Tools : 26.1.1 (/home/trip/Android/Sdk) NodeJS : v9.2.0 (/home/trip/.nvm/versions/node/v9.2.0/bin/node) npm : 5.5.1 OS : Linux 4.15


       I tried to add these three attributes in the file/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values-v28/values-v28.xml where they are searched but the error persists. Someone knows how I could properly include them or does he have any other solution?



      UPDATE 5/12/2018



      I managed to solve this problem by pointing to a more recent intercom version (6.0.0). most likely the intercom plugin points to something behind the scenes.




      • ionic cordova platform rm android

      • ionic cordova platform add android

      • ionic cordova plugin add cordova-plugin.intercom@6.0.0










      share|improve this question
















      I tried a lot around this problem and the solution is to force the version of android support to 27. Installing the plugin



      cordova-android-support-gradle-release -variable ANDROID_SUPPORT_VERSION = 27.+



      these errors disappear only that another appears problem inherent to a java class of another plugin, not finding the




      class com.google.android.gms.internal.zzbfm not found




      Errors generated during the build phase:



      :app:splitsDiscoveryTaskDebug 

      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/dialogCornerRadius not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
      /home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
      /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:676: error: resource android:attr/fontVariationSettings not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:676: error: resource android:attr/ttcIndex not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:902: error: resource android:attr/dialogCornerRadius not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:903: error: resource android:attr/fontVariationSettings not found. /home/trip/workspace/wanda-Angular5/platforms/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:909: error: resource android:attr/ttcIndex not found. error: failed linking references.

      Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt at

      com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796) at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551) at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285) at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109) at sun.reflect.GeneratedMethodAccessor548.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 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:248) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:748) Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794) ... 47 more Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ... 1 more Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:463) at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:415) at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332) at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)


      Ioni Info




      Ionic:




         ionic (Ionic CLI)  : 4.2.1 (/home/trip/.nvm/versions/node/v9.2.0/lib/node_modules/ionic)    Ionic Framework    : ionic-angular 3.9.2    @ionic/app-scripts : 3.1.8

      Cordova:

      cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1) Cordova Platforms : android 7.1.0, ios 4.5.4 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview
      1.2.1, (and 26 other plugins)

      System:

      Android SDK Tools : 26.1.1 (/home/trip/Android/Sdk) NodeJS : v9.2.0 (/home/trip/.nvm/versions/node/v9.2.0/bin/node) npm : 5.5.1 OS : Linux 4.15


       I tried to add these three attributes in the file/home/trip/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/8982e9a5aeacb8b77f78fc202fe2ff0a/res/values-v28/values-v28.xml where they are searched but the error persists. Someone knows how I could properly include them or does he have any other solution?



      UPDATE 5/12/2018



      I managed to solve this problem by pointing to a more recent intercom version (6.0.0). most likely the intercom plugin points to something behind the scenes.




      • ionic cordova platform rm android

      • ionic cordova platform add android

      • ionic cordova plugin add cordova-plugin.intercom@6.0.0







      android cordova ionic3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 5 '18 at 11:54







      l_trip

















      asked Nov 21 '18 at 8:45









      l_tripl_trip

      47112




      47112
























          1 Answer
          1






          active

          oldest

          votes


















          2














          You cannot modify the AAR as it's just a cache of the one downloaded from maven.



          The issue is that App Compat Library version 28+ requires compile SDK level 28 (this is why you should always have the libraries versions match the SDK level). Upgrade your compile and target SDK to 28 and all should compile fine.






          share|improve this answer
























          • Thank you for answering. I have updated my dependencies but the problem still persists. build-tools;28.0.3 ndk-bundles;18.1 platform-tools;28.0.1 platform;android-28 tools;26.1.1

            – l_trip
            Dec 4 '18 at 16:17













          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408189%2fdialogcornerradius-fontvariationsettings-and-ttcindex-not-found-during-cordova%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          You cannot modify the AAR as it's just a cache of the one downloaded from maven.



          The issue is that App Compat Library version 28+ requires compile SDK level 28 (this is why you should always have the libraries versions match the SDK level). Upgrade your compile and target SDK to 28 and all should compile fine.






          share|improve this answer
























          • Thank you for answering. I have updated my dependencies but the problem still persists. build-tools;28.0.3 ndk-bundles;18.1 platform-tools;28.0.1 platform;android-28 tools;26.1.1

            – l_trip
            Dec 4 '18 at 16:17


















          2














          You cannot modify the AAR as it's just a cache of the one downloaded from maven.



          The issue is that App Compat Library version 28+ requires compile SDK level 28 (this is why you should always have the libraries versions match the SDK level). Upgrade your compile and target SDK to 28 and all should compile fine.






          share|improve this answer
























          • Thank you for answering. I have updated my dependencies but the problem still persists. build-tools;28.0.3 ndk-bundles;18.1 platform-tools;28.0.1 platform;android-28 tools;26.1.1

            – l_trip
            Dec 4 '18 at 16:17
















          2












          2








          2







          You cannot modify the AAR as it's just a cache of the one downloaded from maven.



          The issue is that App Compat Library version 28+ requires compile SDK level 28 (this is why you should always have the libraries versions match the SDK level). Upgrade your compile and target SDK to 28 and all should compile fine.






          share|improve this answer













          You cannot modify the AAR as it's just a cache of the one downloaded from maven.



          The issue is that App Compat Library version 28+ requires compile SDK level 28 (this is why you should always have the libraries versions match the SDK level). Upgrade your compile and target SDK to 28 and all should compile fine.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 3 '18 at 16:34









          Izabela OrlowskaIzabela Orlowska

          4,0952722




          4,0952722













          • Thank you for answering. I have updated my dependencies but the problem still persists. build-tools;28.0.3 ndk-bundles;18.1 platform-tools;28.0.1 platform;android-28 tools;26.1.1

            – l_trip
            Dec 4 '18 at 16:17





















          • Thank you for answering. I have updated my dependencies but the problem still persists. build-tools;28.0.3 ndk-bundles;18.1 platform-tools;28.0.1 platform;android-28 tools;26.1.1

            – l_trip
            Dec 4 '18 at 16:17



















          Thank you for answering. I have updated my dependencies but the problem still persists. build-tools;28.0.3 ndk-bundles;18.1 platform-tools;28.0.1 platform;android-28 tools;26.1.1

          – l_trip
          Dec 4 '18 at 16:17







          Thank you for answering. I have updated my dependencies but the problem still persists. build-tools;28.0.3 ndk-bundles;18.1 platform-tools;28.0.1 platform;android-28 tools;26.1.1

          – l_trip
          Dec 4 '18 at 16:17






















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408189%2fdialogcornerradius-fontvariationsettings-and-ttcindex-not-found-during-cordova%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Guess what letter conforming each word

          Port of Spain

          Run scheduled task as local user group (not BUILTIN)