Android Studio 升级到3.0后出现编译错误\.gradle\caches\transforms-1\files-1.1\*****-release.aar

最近Studio升级到3.0 后,新建一个项目,什么都没有添加就报错,烦都烦死了

错误日志如下:

C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\6a8b09efde42f84982ba083742b4753d\res\values\values.xml
Error:(1050, 5) error: resource style/Widget.AppCompat.DrawerArrowToggle (aka com.wcyq.wolfmvvmdemo:style/Widget.AppCompat.DrawerArrowToggle) not found.
Error:(862, 5) error: resource style/Widget.AppCompat.DrawerArrowToggle (aka com.wcyq.wolfmvvmdemo:style/Widget.AppCompat.DrawerArrowToggle) not found.


百度了一通;

搜到了这两篇还可以的文章;

    在gradle.properties 文件下添加  android.enableAapt2 = false
   在AS 的左上角 选择 -->File-->invalidated and Restart 一下
操作了,没解决我的问题.

一时间搞得很烦躁.后来自己改了下依赖版本号,结果就好了,操

没改之前; 这个是studio自动生成的.

[plain]  view plain  copy
  1. dependencies {  
  2.     implementation fileTree(dir: 'libs', include: ['*.jar'])  
  3.     implementation 'com.android.support:appcompat-<span style="color:#ff0000;">v7:26.+'</span>  
  4.     implementation 'com.android.support.constraint:constraint-layout:1.0.2'  
  5.     testImplementation 'junit:junit:4.12'  
  6.     androidTestImplementation 'com.android.support.test:runner:1.0.1'  
  7.     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'  
  8. }  

改了之后;

[plain]  view plain  copy
  1. dependencies {  
  2.     implementation fileTree(dir: 'libs', include: ['*.jar'])  
  3.     implementation 'com.android.support:appcompat-v<span style="background-color:rgb(255,0,0);">7:25.+</span>'  
  4.     implementation 'com.android.support.constraint:constraint-layout:1.0.2'  
  5.     testImplementation 'junit:junit:4.12'  
  6.     androidTestImplementation 'com.android.support.test:runner:1.0.1'  
  7.     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'  
  8. }  
 程序能跑起来了.真是毙了狗了,studio一升级,尽是些狗屁问题,建议没有升级的还是不要升级这些新版本,问题搞的头大!
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

安果移不动

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值