error: failed linking references. -> QueuedJob

error: failed linking references :react-native
android resource linking failed error: failed linking references.
error: failed linking references. ionic
error: resource android:attr/foregroundinsidepadding is private error failed linking references
error: expected reference but got (raw string) #000000 error failed linking references
error: resource android:attr/ttcindex not found. error: failed linking references.
caused by: com.android.builder.internal.aapt.v2.aapt2exception: android resource linking failed
android resource linking failed - unity

I was studying the Android Material Design using Kotlin and everything was going fine until I tried to use the android.support.design.widget.FloatingActionButton.

When I rebuild the project I got the error message below:

Information:Gradle tasks [clean, :app:assembleDebug]
C:\Users\qin\.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\3d5ddc383685b19d22429a29e09f2aeb\res\values\values.xml
Error:(1419, 5) error: style attribute 'attr/textColor (aka br.com.conseng.themedesign:attr/textColor)' not found.
Error:(1525, 5) error: style attribute 'attr/textColor (aka br.com.conseng.themedesign:attr/textColor)' not found.
.....\CursoMaterialDesign\ThemeDesign\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Error:(1843) style attribute 'attr/textColor (aka br.com.conseng.themedesign:attr/textColor)' not found.
Error:(1953) style attribute 'attr/textColor (aka br.com.conseng.themedesign:attr/textColor)' not found.
Error:failed linking references.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt
Information:BUILD FAILED in 15s
Information:9 errors
Information:0 warnings
Information:See complete output in console

I saved the source files on GitHub and my environment is:

  • WINDOWS 10 10.03.0.1 (64-bit)
  • ANDROID STUDIO Android Studio 3.0.1 - Build #AI-171.4443003
  • JRE: 1.8.0_152-release-915-b01 amd64
  • JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

I tried:

  1. The FILE->INVALIDATE CACHE/RESTART command, but nothing changed.
  2. I executed the gradlew cleanBuildCache on the terminal, but it could not determine java version from '9.0.1' (?) as shown below.
gradlew cleanBuildCache --stacktrace --debug
14:05:14.966 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: C:\Users\qin\.gradle\native
14:05:15.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
14:05:15.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
14:05:15.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
14:05:15.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
14:05:15.042 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Could not determine java version from '9.0.1'.
14:05:15.042 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
14:05:15.042 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
14:05:15.043 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] java.lang.IllegalArgumentException: Could not determine java version from '9.0.1'.
14:05:15.043 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.JavaVersion.toVersion(JavaVersion.java:72)
14:05:15.043 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.api.JavaVersion.current(JavaVersion.java:82)
14:05:15.043 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.jvm.UnsupportedJavaRuntimeException.assertUsingVersion(UnsupportedJavaRuntimeEx
ception.java:29)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:32)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:
253)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:
182)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.Main.doAction(Main.java:33)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:05:15.044 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:05:15.045 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
14:05:15.045 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/java.lang.reflect.Method.invoke(Method.java:564)
14:05:15.045 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
14:05:15.045 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
14:05:15.045 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
14:05:15.045 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:05:15.045 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:05:15.045 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
14:05:15.046 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at java.base/java.lang.reflect.Method.invoke(Method.java:564)
14:05:15.046 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
14:05:15.046 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
14:05:15.046 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
14:05:15.046 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
14:05:15.046 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
14:05:15.046 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org

You were referencing an attribute "textColor", when it should be "android:textColor". In app/src/main/res/values/styles.xml replace in line 13 and line 17:

<item name="textColor">...</item> -> <item name="android:textColor">...</item>

The how: the error from AAPT stated the following:

error: style attribute 'attr/textColor (aka br.com.conseng.themedesign:attr/textColor)' not found.

It points out that you (or your libraries) are using an attribute somewhere that is not recognized. I searched for "textColor" in your repository and came up with the two attributes with the name "textColor". The widely used attribute is "android:textColor" and you didn't define the attribute "textColor" anywhere yourself, so it looked like you were missing the "android:" prefix.

Error: failed linking references during Android Build · Issue #81 , Bug Report Just added the extension permission_handler: ^2.2.0 in to pubspec.​yaml and the app cannot build anymore. When i remove the  * What went wrong: Execution failed for task ':app:processDebugResources'. > Failed to execute aapt * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Go to build.gradle(app) and add this in dependency:

implementation 'com.android.support:appcompat-v7:28.0.0'

Right now my compileSdkVersion is 28, so it is 28.0.0.

Try and change according to that.

error: failed linking references. · Issue #148 · material-components , I follow Get Started. Have maven and lib already but still Error: Failed linking references. Solution 1: Set your compileSdkVersionto 28 and let Android Studio download the needed files. If you already targetting this version, you could try cleaning your project and sync your gradle files. linking failed. resource linking. failed linking. linking references.

I've just deleted my color resourse, but it have been used in my style. So, check if your colors are really not using anywhere by Ctrl+Shift+F.

Error: failed linking references. · Issue #25356 · facebook/react , "background" causing "error: failed linking references". I'm updating an old app (​not touched in about 5 years) to make it up to date with the latest stuff. So far so  Failed linking references in Android project (Xamarin - Visual Studio Community 2019) #3822 Closed bharanidharan1707 opened this issue Oct 18, 2019 · 11 comments

For my situation, my compileSdkVersion < targetSdkVersion in build.gradle. Just change compileSdkVersion >= targetSdkVersion.

"background" causing "error: failed linking references" : androiddev, error: resource drawable/splash_screen (aka com.app.horizon:drawable/​splash_screen) not found. error: failed linking references. Published on Jun 25, 2018 failed linking file resources android studio.in my case this error occur because of Drawable folder.in another case this error occur any missing file.check and read

Remove this line from dependencies in gradle build file:

implementation 'com.android.support.constraint:constraint-layout:+'

Failed linking resurces - Help/Discuss, I got this error after update my Gradle (I have also added maven{jitpack.io} and geofirestore dependencies at the same of updating Gradle)  Find answers to error: failed linking references. from the expert community at Experts Exchange

failed linking references after update of gradle Android Studio, High Priority. 998 Views. Last Modified: 2019-08-01. Hi, getting this error in Android Studio. error: failed linking references. I have no idea what to look for next. Java Project Tutorial - Make Login and Register Form Step by Step Using NetBeans And MySQL Database - Duration: 3:43:32. 1BestCsharp blog Recommended for you

error: failed linking references. Solutions, Fix Error Android resource linking failed error failed linking references. KDTechs. Loading Duration: 4:26 Posted: Jan 24, 2020 Execution failed for task ' rocessReleaseResources'. > Android resource linking failed Output: error: failed to create directory 'D:\UnityProjects\SecondTest\Temp\gradleOut\build\generated ot_namespaced_r_class_sources\release\processReleaseResources\r\com\bandit\second'.

Fix Error Android resource linking failed error failed linking references, failed linking file resources android studio.in my case this error occur because of Drawable Duration: 6:24 Posted: Jun 25, 2018 Published on Oct 24, 2018 Android resource linking failed is a common error in Android Studio if you miss any resource while linking with any of these files like string or array or bool or color or

Comments
  • It was amazing what you did. Thank you very much, but where is this information on all these lines of error? I appreciate if you could teach.
  • Edited the answer so it's clearer how to find such errors.
  • saved me hours of misery
  • Thanks for this awesome answer