Output: error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not

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

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值