【发布时间】:2019-02-10 03:48:35
【问题描述】:
我正在为 Android 构建一个 reactNative 应用程序,但出现此错误:
清单合并失败:AndroidManifest.xml 中的属性 data@scheme 需要占位符替换,但未提供值。
这是什么错误?如何解决? 干杯
【问题讨论】:
-
为什么投反对票?这不是一个明确的解决方法!请在投票前详细说明
标签: android react-native
我正在为 Android 构建一个 reactNative 应用程序,但出现此错误:
清单合并失败:AndroidManifest.xml 中的属性 data@scheme 需要占位符替换,但未提供值。
这是什么错误?如何解决? 干杯
【问题讨论】:
标签: android react-native
在
应用构建.gradle
android {
compileSdkVersion 26
buildToolsVersion '26.0.3'
defaultConfig {
applicationId "com.chuchas.comm"
...
// place correct redirectScheme~
manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm']
}
【讨论】:
在应用程序build.gradle 中,导航到defaultConfig 部分并添加以下行。
源代码
defaultConfig {
...
manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm']
}
【讨论】:
尝试添加 manifestPlaceholders
https://github.com/FormidableLabs/react-native-app-auth#add-redirect-scheme-manifest-placeholder
android {
defaultConfig {
manifestPlaceholders = [
appAuthRedirectScheme: 'io.identityserver.demo'
]
}
}
【讨论】: