我正在尝试从现有网站构建android应用并向其中添加Firebase推送通知,但出现错误
我包括以下依赖项:-
classpath 'com.google.gms:google-services:4.2.0'
implementation 'com.google.firebase:firebase-messaging:17.3.3'
implementation 'com.android.support:mediarouter-v7:26.1.0'
*
build failed 4 s 52 ms
Run build 3 s 455 ms
Load build 6 ms
Configure build 483 ms
Calculate task graph 84 ms
Run tasks 2 s 874 ms
null
The specified Android SDK Build Tools version (27.0.3) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.2.1.
failed linking references.
================================================ =======================
Android resource linking failed
Output: D:\Android project\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:7: error: resource androiD:\attr/colorError not found.
D:\Android project\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:11: error: resource androiD:\attr/colorError not found.
D:\Android project\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v26\values-v26.xml:15: error: style attribute 'androiD:\attr/keyboardNavigationCluster' not found.
error: failed linking references.
CommanD:\ C:\Users\vinay\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\2be7a99c705cfa30acfde73eea92e599\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\vinay\AppData\Local\Android\Sdk\platforms\android-25\android.jar\
--manifest\
D:\Android project\app\build\intermediates\split-apk\debug\resources\AndroidManifest.xml\
-o\
D:\Android project\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@D:\Android project\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Android project\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.app\
-0\
apk\
--preferred-density\
560dpi\
--output-text-symbols\
D:\Android project\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
答案 0 :(得分:0)
尝试更新gradle版本,编译版本和/或所有google-play-services / firebase库版本。在大多数情况下,由于旧版本, Firebase会给出此类错误