错误如下:
/Users/fly/Downloads/ComponentBased/app/src/main/AndroidManifest.xml:6:5-42:19 Error:
tools:replace specified at line:6 for attribute android:appComponentFactory, but no new value specified
/Users/fly/Downloads/ComponentBased/app/src/main/AndroidManifest.xml Error:
Validation failed, exiting
:app:process360DebugManifest
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
:app:process360DebugManifest FAILED
:app:buildInfoGenerator360Debug
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:process360DebugManifest'.
> Manifest merger failed with multiple errors, see logs
* 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
BUILD FAILED in 3s
解决办法:
<application
tools:replace="android:appComponentFactory" //除了这行之外
android:appComponentFactory="任意字符" //还要加上这一行