androidxmlandroid-manifestaaptaapt2

Android - resource linking failed / failed linking references


I checked the Local history of my XML files and double checked my Manifest file and found nothing wrong.

Before posting the question I went through a lot of similar posts and suggested answers but found nothing relevant to my issue. Down below you will find my LOG and hopefully one of you can guide me through a solution!

Android resource linking failed Output: \AndroidProjects\myApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. \AndroidProjects\myApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. \AndroidProjects\myApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:605: error: resource android:attr/fontVariationSettings not found. \AndroidProjects\myApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:605: error: resource android:attr/ttcIndex not found. error: failed linking references.

Command: C:\Users\lucif.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\c9d8fd27aeabc6968bb2cb43f288855c\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\ C:\Users\lucif\AppData\Local\Android\Sdk\platforms\android-27\android.jar\ --manifest\ \AndroidProjects\myApp\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\ -o\ \AndroidProjects\myApp\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\ -R\ \AndroidProjects\myApp\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\ --auto-add-overlay\ --java\ \AndroidProjects\myApp\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\ --custom-package\ hivemind.lab.com.myApp\ -0\ apk\ --output-text-symbols\ \AndroidProjects\myApp\app\build\intermediates\symbols\debug\R.txt\ --no-version-vectors Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0


Solution

  • Solution 1: Set your compileSdkVersionto 28 and let Android Studio download the needed files.

    enter image description here

    If you already targetting this version, you could try cleaning your project and sync your gradle files.