error: failed linking references.

Saqib Husain, Syed
Saqib Husain, Syed used Ask the Experts™
on
Hi, getting this error in Android Studio.

 error: failed linking references.

I have no idea what to look for next. Please help
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Provide entire output, as text, for problem you're seeing.

Context is required to attempt a solution.
hecgomrecNetwork Administrator

Commented:
As David mentioned more context or info might be required for accurate assistance but in the meantime.. lets give you some ideas about this type of errors.


As our world is getting more "digital" than ever, some users are getting more distracted and even forgetting or just don't understanding how technology is helping and affecting their day to day activities.

That being said, let get to the point... You see this because the document you are trying to view or open has a reference (link) to "something" that can't be accessed. This type of error will come usually into place when several conditions are met:

1.  There is no internet.
2.  The linked object (mail, file, internet page, drive, etc.) can't be reached.
3.  You don't have rights to open the file (if this is an internal document, email).
4.  The document is corrupted.

For all of the above the you might be able to solve only 1 & 4 on your own... get your internet on and by downloading or getting a new copy of the document.  with the other 2 you might need external help.

Good Luck!
Android resource linking failed
Output:  E:\Android\RktCounter\mobile\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:7: error: resource android:attr/colorError not found.
E:\Android\RktCounter\mobile\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:11: error: resource android:attr/colorError not found.
E:\Android\RktCounter\mobile\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
E:\Android\RktCounter\mobile\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:234: error: resource android:attr/fontStyle not found.
E:\Android\RktCounter\mobile\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:234: error: resource android:attr/font not found.
E:\Android\RktCounter\mobile\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:234: error: resource android:attr/fontWeight not found.
error: failed linking references.

Command: C:\Users\HP\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\4b9babb21a73ba282dbc631ed370dc4a\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
        C:\Users\HP\AppData\Local\Android\Sdk\platforms\android-25\android.jar\
        --manifest\
        E:\Android\RktCounter\mobile\build\intermediates\split-apk\debug\resources\AndroidManifest.xml\
        -o\
        E:\Android\RktCounter\mobile\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
        -R\
        @E:\Android\RktCounter\mobile\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
        --auto-add-overlay\
        --java\
        E:\Android\RktCounter\mobile\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
        --custom-package\
        com.example.t4cjv037.rktcounter\
        -0\
        apk\
        --preferred-density\
        xhdpi\
        --output-text-symbols\
        E:\Android\RktCounter\mobile\build\intermediates\symbols\debug\R.txt\
        --no-version-vectors
Daemon:  AAPT2 aapt2-3.2.1-4818971-windows Daemon #0

Open in new window

Found it

Changed compileSdkVersion 25 to compileSdkVersion 26

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial