Android 由于多模块项目中的ManifestPlaceholder出错,清单合并失败

Android 由于多模块项目中的ManifestPlaceholder出错,清单合并失败,android,android-gradle-plugin,android-manifest,placeholder,intentfilter,Android,Android Gradle Plugin,Android Manifest,Placeholder,Intentfilter,我在尝试执行androidUnitTest时遇到了一个小问题: “清单合并失败:属性data@scheme在 manifestMerger8944498509061862801.xml需要占位符 替换,但未提供“的值” 在我的Android模块清单中,我有以下意图过滤器: <activity android:name="myactivity" android:configChanges="keyboardHi

我在尝试执行androidUnitTest时遇到了一个小问题:

“清单合并失败:属性data@scheme在 manifestMerger8944498509061862801.xml需要占位符 替换,但未提供“的值”

在我的Android模块清单中,我有以下意图过滤器:

  <activity
            android:name="myactivity"
            android:configChanges="keyboardHidden|orientation|screenSize|keyboard|navigation"
            android:theme="@style/actionBarTheme"
            tools:node="replace">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data
                    android:scheme="${urlScheme}"
                    android:host="action"/>
            </intent-filter>
        </activity>

在flavors中,ManifestPlaceholder是在Gradle应用程序级别定义的

我也尝试在模块级设置manifestPlaceHolder,这样单元测试进行得很顺利,但这样,当我运行应用程序时,意图过滤器停止工作,因为在合并文件中,URL方案是在模块级定义的方案