我正在尝试编译 6 个月前的代码,但出现此错误:
tools:replace specified at line:19 for attribute android:appComponentFactory, but no new value specified app main manifest (this file), line 18 Error: Validation failed, exiting app main manifest (this file)
为了解决这个问题,我在我的 AndroidManifest.xml
tools:replace="android:appComponentFactory"
Run Code Online (Sandbox Code Playgroud)
但现在我收到了这个错误:
Manifest merger failed with multiple errors, see logs
当我用谷歌搜索这个错误时,它要求我从AndroidManifest.xml
我在第一步添加的行中删除该行。所以,这是一种循环。我怎样才能摆脱这个。
我的依赖:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation files('libs/apache-mime4j-0.6 2.jar')
implementation files('libs/httpmime-4.0.1 .jar')
// this line must be included to integrate with Firebase
implementation 'com.hbb20:ccp:2.0.1' …
Run Code Online (Sandbox Code Playgroud) 我有一个关于弹性搜索的问题,我想在过滤器中搜索完全匹配的内容。例如,如果颜色过滤器仅应用“黑色”,则弹性搜索应仅返回“黑色”产品,而不是在其产品颜色中包含黑色关键字(如“黑灰色”)的其他产品。我尝试过“match_phrase”而不是“match”,但什么也没得到。
请检查我的 JSON 字符串的屏幕截图:https://www.screencast.com/t/wjCcpfQwTxw