草庐IT

processDebugMainManifest

全部标签

Execution failed for task ‘:app:processDebugMainManifest‘.> Manifest merger failed : Apps targeting

若出现以下错误:Executionfailedfortask':app:processDebugMainManifest'.>Manifestmergerfailed:AppstargetingAndroid12andhigherarerequiredtospecifyanexplicitvaluefor`android:exported`whenthecorrespondingcomponenthasanintentfilterdefined.Seehttps://developer.android.com/guide/topics/manifest/activity-element#exp

Execution failed for task :app:processDebugMainManifest

公司里以前android4.0的程序,现在变成8.1的版本,程序拿到后报错。从这个故障现象看,是AndroidManifest.xml文件有错。 打开这个文件,看到这样情况。好像是要加android:exported="true" 增加上面这行后,MergedMainifest可以正常显示了,如下图所示,正常了。

Android 开发 错误 Execution failed for task ‘:app:processDebugMainManifest‘.

在使用Androidstdio运行Android工程时出现Executionfailedfortask‘:app:processDebugMainManifest’.如下图:错误解决在配置文件AndroidManifest.xml中添加代码android:exported=“true”关于android:exported="true"的解释:Android相关属性的介绍:android:exported=true在Activity中该属性用来标示:当前Activity是否可以被另一个Application的组件启动:true允许被启动;false不允许被启动。android:exported是