x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Android Build Failing, missing font?

Attempting to package a project for Android, but I keep getting this error. Have attempted this on a different machine, and get the same results.

Tried on 4.21.0 and 4.21.1 (current)

Any Ideas?

Inspect the alt text of the image for the text version.


UATHelper: Packaging (Android (ETC2)): C:\Users\Benvl\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.0.aar\f3cb60627d853488ffa8a7e83926fb28\res\values\values.xml:20:5-70: AAPT: error: resource android:attr/fontStyle not found.
UATHelper: Packaging (Android (ETC2)): C:\Users\Benvl\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.0.aar\f3cb60627d853488ffa8a7e83926fb28\res\values\values.xml:20:5-70: AAPT: error: resource android:attr/font not found.
UATHelper: Packaging (Android (ETC2)): C:\Users\Benvl\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.0.aar\f3cb60627d853488ffa8a7e83926fb28\res\values\values.xml:20:5-70: AAPT: error: resource android:attr/fontWeight not found.
UATHelper: Packaging (Android (ETC2)): Z:\app\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml:94: error: resource android:attr/fontStyle not found.
UATHelper: Packaging (Android (ETC2)): Z:\app\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml:94: error: resource android:attr/font not found.
UATHelper: Packaging (Android (ETC2)): Z:\app\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml:94: error: resource android:attr/fontWeight not found.
UATHelper: Packaging (Android (ETC2)): error: failed linking references.
UATHelper: Packaging (Android (ETC2)): Failed to execute aapt
UATHelper: Packaging (Android (ETC2)): com.android.ide.common.process.ProcessException: Failed to execute aapt
UATHelper: Packaging (Android (ETC2)):     at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)
UATHelper: Packaging (Android (ETC2)):     at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)
UATHelper: Packaging (Android (ETC2)):     at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)
UATHelper: Packaging (Android (ETC2)):     at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
UATHelper: Packaging (Android (ETC2)):     at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
UATHelper: Packaging (Android (ETC2)):     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
UATHelper: Packaging (Android (ETC2)):     at java.lang.reflect.Method.invoke(Method.java:498)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
UATHelper: Packaging (Android (ETC2)):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
UATHelper: Packaging (Android (ETC2)):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
UATHelper: Packaging (Android (ETC2)):     at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
UATHelper: Packaging (Android (ETC2)):     at java.lang.Thread.run(Thread.java:745)
UATHelper: Packaging (Android (ETC2)): Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
UATHelper: Packaging (Android (ETC2)):     at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
UATHelper: Packaging (Android (ETC2)):     at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482)
UATHelper: Packaging (Android (ETC2)):     at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
UATHelper: Packaging (Android (ETC2)):     at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794)
UATHelper: Packaging (Android (ETC2)):     ... 47 more
UATHelper: Packaging (Android (ETC2)): Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
UATHelper: Packaging (Android (ETC2)):     at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
UATHelper: Packaging (Android (ETC2)):     at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
UATHelper: Packaging (Android (ETC2)):     at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
UATHelper: Packaging (Android (ETC2)):     at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179)
UATHelper: Packaging (Android (ETC2)):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
UATHelper: Packaging (Android (ETC2)):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
UATHelper: Packaging (Android (ETC2)):     ... 1 more
UATHelper: Packaging (Android (ETC2)): Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
UATHelper: Packaging (Android (ETC2)):     at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:463)
UATHelper: Packaging (Android (ETC2)):     at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:415)
UATHelper: Packaging (Android (ETC2)):     at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332)
UATHelper: Packaging (Android (ETC2)):     at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)
UATHelper: Packaging (Android (ETC2)): :app:processReleaseResources FAILED
UATHelper: Packaging (Android (ETC2)): FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ETC2)): * What went wrong:
UATHelper: Packaging (Android (ETC2)): Execution failed for task ':app:processReleaseResources'.
UATHelper: Packaging (Android (ETC2)): > Failed to execute aapt
UATHelper: Packaging (Android (ETC2)): * Try:
UATHelper: Packaging (Android (ETC2)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
UATHelper: Packaging (Android (ETC2)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ETC2)): BUILD FAILED in 46s
UATHelper: Packaging (Android (ETC2)): 58 actionable tasks: 58 executed
UATHelper: Packaging (Android (ETC2)): ERROR: cmd.exe failed with args /c

Product Version: UE 4.21
Tags:
ue-answerpic45.png (397.9 kB)
more ▼

asked Dec 13 '18 at 01:11 PM in Packaging & Deployment

avatar image

BenVlodgi
2.2k 40 17 52

avatar image BenVlodgi Dec 15 '18 at 09:24 PM

I'm still dealing with this problem, anyone have advice?

avatar image BenVlodgi Dec 20 '18 at 12:43 AM

bumping again

avatar image BenVlodgi Jan 05 '19 at 07:14 PM

bumping again

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Same problem... only solution to uninstall this version 4.21 and install the older 4.19

more ▼

answered Feb 07 '19 at 01:57 AM

avatar image

arnold87sm
1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question