Android资源链接失败
Android resource linking failed
Output: C:\Users\ramin\Desktop\myapp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:7: error: resource android:attr/colorError not found.
C:\Users\ramin\Desktop\myapp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:11: error: resource android:attr/colorError not found.
C:\Users\ramin\Desktop\myapp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:\Users\ramin\Desktop\myapp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:542: error: resource android:attr/fontStyle not found.
C:\Users\ramin\Desktop\myapp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:542: error: resource android:attr/font not found.
C:\Users\ramin\Desktop\myapp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:542: error: resource android:attr/fontWeight not found.
error: failed linking references.
Command: C:\Users\ramin\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\62269942571a2bd8ed5f0b2819ca9a1d\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\ramin\AppData\Local\Android\Sdk\platforms\android-25\android.jar\
--manifest\
C:\Users\ramin\Desktop\myapp\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
C:\Users\ramin\Desktop\myapp\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@C:\Users\ramin\Desktop\myapp\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
C:\Users\ramin\Desktop\myapp\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--proguard-main-dex\
C:\Users\ramin\Desktop\myapp\app\build\intermediates\legacy_multidex_aapt_derived_proguard_rules\debug\processDebugResources\manifest_keep.txt\
--custom-package\
com.sell.arkaysell\
-0\
apk\
--output-text-symbols\
C:\Users\ramin\Desktop\myapp\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
请帮助我,尝试过:清理项目重建项目无效的缓存/使用Gradle文件重新启动同步项目
答案 0 :(得分:0)
这些资源已在SDK版本28中添加。您需要更新build.gradle文件以使用compileSdkVersion 28
(由于错误,我看到您使用的是25)。