我正在尝试为颤振创建一个插件。我的问题是,由于某种原因,flutter 似乎无法识别 manifestPlaceholders(可能是我做错了什么)。
所以我将此行添加到我的android/build.gradle
文件中。
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [auth0Domain: "example.auth0.com", auth0Scheme: "demo"] // this one for the manifestPlaceholders replacement.
}
...
}
dependencies {
implementation 'com.auth0.android:auth0:1.+' // this line to install auth0 dependency
}
但是当我尝试编译应用程序时,出现以下错误:
Attribute data@host at AndroidManifest.xml requires a placeholder substitution but no value for <auth0Domain> is provided.
Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for <auth0Scheme> is provided.
我真的不知道我在这里错过了什么。您的帮助将不胜感激。
问候