as编译错误:
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
Output: error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Inverse not found.
error: resource android:style/Widget.Material.Button.Colored not found.
error: failed linking references.
Command: C:\Users\zengjx\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\80c67d12579d24c59cffddf089c33cd4\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\zengjx\AppData\Local\Android\Sdk\platforms\android-21\android.jar\
--manifest\
F:\AS\TitanTest\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
F:\AS\TitanTest\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@F:\AS\TitanTest\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
F:\AS\TitanTest\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
example.com.titantest\
-0\
apk\
--output-text-symbols\
F:\AS\TitanTest\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
解决方法:
Error:resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found的问题,并且还会引起一系列其他的问题。
修改方法:
将compileSdkVersion修改成25,并将对应的buildToolsVersion修改成25.0.2即可
作者:憨杜先生
链接:https://www.jianshu.com/p/fc19aaead30d
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
BUILD FAILED in 21s