Problem description
Android studio 4.0.1 in APP/build Gradle declares to use appcompat-v7, and the compilation times the following errors:
Android resource linking failed
Output: D:\code\demo\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
D:\code\demo\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
D:\code\demo\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1086: error: resource android:attr/fontVariationSettings not found.
D:\code\demo\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1087: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: D:\gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\67766513f93fbda68bd5705c60a70b26\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
D:\Android\SDK\platforms\android-27\android.jar\
--manifest\
D:\code\demo\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\code\demo\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@D:\code\demo\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\code\demo\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.demo\
-0\
apk\
--output-text-symbols\
D:\code\demo\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Solution:
In the root directory gradle In the properties file, disable Android X:
# android.useAndroidX=true
# android.enableJetifier=true
It can be solved by rebuilding.
Read More:
- Android Error: Android resource linking failed [How to Solve]
- [Solved] :app:processDebugResources Android resource linking failed Android resource linking failed
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadius not found.
- error: resource android:attr/lStar not found [How to Solve]
- error: resource android:attr/lStar not found [Pefect Solution]
- [Solved] Android app development version update failed, Android – error: task execution failed ‘: app: com
- [Solved] AAPT: error: resource android:attr/lStar not found
- [Solved] Compile Error: AAPT: error: resource android:attr/lStar not found
- error: resource android:attr/lStar not found [How to Solve]
- [Solved] Frida spawn process failed on Android ‘Error: VM::AttachCurrentThread failed: -1
- [Solved] Cordova Android Compile Error: Execution failed for task ‘:packageDebug‘
- [Solved] Failed to apply plugin appears when Android studio imports a project
- [Solved] Android-android studio apk Install Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- Android 10 open file exception open failed: eacces (permission denied) android:requestLegacyExternalStorage= “true“
- How to Fix Failed to load resource: the server responded with a status of 404()
- Android7.0+ Failed to Share Images: exposed beyond app through ClipData.Item.getUri()
- [Solved] Android HTTPS request resource or interface error: server certificate
- [Solved] Android Gradle Build Error: Some file crunching failed, see logs for details
- [Solved] UE4 Android Package Error: failed for task :permission_library:compileDebugJavaWithJavac