你好,我有问题,当我要构建项目时,出现了此错误代码。
此详细信息错误。
Android resource linking failed
Output: D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:9: error: resource android:attr/colorError not found.
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:13: error: resource android:attr/colorError not found.
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:17: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:415: error: resource android:attr/fontStyle not found.
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:415: error: resource android:attr/font not found.
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:415: 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\cfb1f54b465b475e1d07b4e8c56e68a1\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\HP\AppData\Local\Android\Sdk\platforms\android-25\android.jar\
--manifest\
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--proguard-main-dex\
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\legacy_multidex_aapt_derived_proguard_rules\debug\processDebugResources\manifest_keep.txt\
--custom-package\
com.projects.realestatefinder\
-0\
apk\
--output-text-symbols\
D:\Zakario\ANDROID\realestatefinde\codecanyon-17451120-realestate-finder-full-android-application\RealEstate Finder Android v1.7\RealEstate Finder Android v1.7\RealEstateFinder\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
我拥有android studio的最新版本,并且在升级gradle之前,我的项目运行良好。 请您帮忙
答案 0 :(得分:0)
尝试clean
和rebuild
您的项目。
答案 1 :(得分:0)
您(或其中一个依赖项)尝试使用仅在API 28中添加的资源时,您的编译SDK为25。编辑build.gradle
文件以使用最新的编译SDK:
android {
compileSdkVersion 28 // you currently have 25
...
}
答案 2 :(得分:0)
这可能是由于添加到xml文件的属性错误所致。转到您的Activity xml文件并查看。该错误将由Android Studio本身显示。删除属性。