每次AndroidStudio提示升级的时候都很谨慎,因为每次升完级总有莫名其妙的坑出来,这次手贱升级后又果不其然编译项目时总是编译不过,提报了一堆看不懂的appt2错误,在网上一顿查找,试了各种方法都是药不对症,后来发现之前导入的项目是可以编译的,但新建的项目哪怕是空项目都编译不过,因此肯定不是什么资源文件重复之类的错误,没办法只能沉下心来仔细看下错误日志吧。然后就看到了这么个报错:
这么看起来应该是和gradle有关系了,又结合之前导入项目可以编译通过这一线索,对比了两个项目中的gradle的版本,发现新建项目的gradle版本默认是5.4.1,而编译通过的项目gradle是4.0,于是把gradle的版本改回4.0就编译通过了,WTF。。。
还有点要注意的是,gradle plugin version也要做相应修改,否则会报不支持gradle 4.0的错误。
详细解决方案
AndroidStudio编译报错:mergeDebugResources failed
热度:65 发布时间:2024-01-14 13:23:07.0
相关解决方案
- 请问registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister
- DBCP borrowObject failed: java.sql.SQLException: Io 错误: The Network Adapter
- Server Apache Tomcat v6.0.35 at localhost failed to start
- Context [] startup failed due to previous errors解决方案
- log4j:ERROR setFile(null,false) call failed.解决方法
- CAS(SSO) tomcat ssl 配置出错 PKIX path building failed,该怎么处理
- Eclipse 报错org.apache.catalina.LifecycleException: Failed to start component。该怎么解决
- \nbproject\build-impl.xml:332: Preverification failed with error code 1. 异常
- org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryV
- websphere5.12 Error 503: Failed to load target servlet [action],该如何处理
- 严重: Context [/ZZVC_HOMEPAGE] startup failed due to previous errors
- method failed; nested exception is org.hibernate.HibernateException:
- httpClient 错误 The server failed to respond with a valid HTTP response
- FCIAddFile(failed: code 一 [Failure opening file to be stored in cabinet]
- FCIAddFile(failed: code 1 [Failure opening file to be stored in cabinet],该怎么解决
- Failed to open XML file解决方案
- c#中,运作程序时,提示mysql.data load failed
- failed to render the page 水晶报表出错,该如何处理
- 卸载虚拟机是出现The Msi Failed,该怎么处理
- BB虚拟机报Debugger Attach Failed.解决方法
- 小弟我写一个二级菜单,总是出错rcomp failed
- 编译器告诉小弟我“*RCOMP failed - deleting output files” 请教咋回事
- 微软sapi 5.1运作例子 coffees0 报错!(SAPI failed to initialize , The application will now shut down)
- 在Vmware虚拟机上启动VxWorks,显示异常 【tBoot】 sysNvRamGet: Open failed,请教是什么原因?内有详细描述
- vxworks的网络通讯 muxdevload failed for device entry0 异常
- 异常:"Failed to create netty connection"
- 怎么解决 Failed to create a new SAX parser
- ejbca ant bootstrap 构建失败(BUILD FAILED),该怎么处理
- failed to lazily initialize a collection of role有关问题的解决
- The request failed. 远程服务器返回异常: (440) Login Timeout