Android resource linking failed
G:\work\viewPager\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:622: error: resource color/colorPrimary (aka com.example.viewpager:color/colorPrimary) not found.
G:\work\viewPager\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:623: error: resource color/colorPrimaryDark (aka com.example.viewpager:color/colorPrimaryDark) not found.
G:\work\viewPager\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:624: error: resource color/colorAccent (aka com.example.viewpager:color/colorAccent) not found.
error: failed linking references.
Reason
h2>
25 below compileSdkVersion implementation ‘com. Android. Support: appcompat – v7:27.0.0’ version of the support.
error is usually reported when the compiled version of SDK is lower than the version in the support package, but this is not always true. The error is usually reported when the resource file in the higher version of support package is not found in the lower version of SDK.
solution h3>
changes the compileSdkVersion to be consistent with support, and it is recommended to change the compileSdkVersion 27
Read More:
- AAPT: error: resource android:attr/colorError not found.
- AAPT: error: resource android:attr/dialogCornerRadius not found.
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- Android studio AAPT: error: attribute android:requestLegacyExternalStorage not found.
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- Error resource Android datalogcornerradius not found
- Resolution AAPT: error: resource drawable/ (aka xxx) not found
- 26、Error:No resource identifier found for attribute ’roundIcon’ in package ‘android’
- [Fixed] Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android’
- Android Studio could not resolve resource
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not
- Android studio compile and run report: AAPT2 error: check logs for details
- [solved] not found android.support .v7. internal.app.WindowDecorActionbar
- AAPT: error: ‘null‘ is incompatible with attribute button (attr) reference.
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- Android Error | Failed to find target with hash string ”android-23′ in…
- Android Studio Series: after Android studio is opened, the project window will not be displayed.