- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在研究 firebase-ml。
早些时候,我使用的是它的 16 版本,它在我的项目中运行良好。但是经过一些需求,我需要升级到21.0.0,然后我就面临着
Error: Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:86:5-430:19 to override.
这是我正在使用的依赖项
implementation 'com.google.firebase:firebase-ml-vision:21.0.0'
有人解决过这个问题吗?
额外的
import java.text.SimpleDateFormat
buildscript {
repositories {
google()
maven { url 'https://plugins.gradle.org/m2/'}
}
dependencies {
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.12.1'
}
}
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
repositories {
maven { url 'https://maven.google.com' }
}
buildscript {
repositories {
google()
maven { url 'https://maven.fabric.io/public' }
jcenter()
}
dependencies {
// These docs use an open ended version so that our plugin
// can be updated quickly in response to Android tooling updates
classpath 'com.android.tools.build:gradle:3.4.1'
// We recommend changing it to the latest version from our changelog:
// https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
classpath 'io.fabric.tools:gradle:1.+'
}
}
repositories {
google()
//maven { url 'https://maven.google.com' }
jcenter()
mavenCentral()
}
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.firebase-perf'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
repositories {
maven { url 'https://dl.bintray.com/intercom/intercom-maven' }
}
android {
lintOptions {
abortOnError false
}
dexOptions {
jumboMode = true
}
signingConfigs {
config {
keyAlias 'evalexpert_android_key'
keyPassword 'algo_driven_eval_expert'
storeFile file('/Users/nadkyxa/Code/EvalExpert/eval_expert.jks')
storePassword 'algo_driven_eval_expert'
}
}
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId 'xyz.AlgoDriven.EvalExpert'
minSdkVersion 18
targetSdkVersion 28
versionCode 86
versionName "8.0.4"
multiDexEnabled true //important
manifestPlaceholders = [onesignal_app_id: "aa111770-4417-4674-b657-c91e40a3ff25",
// Project number pulled from dashboard, local value is ignored.
onesignal_google_project_number: "REMOTE"]
externalNativeBuild {
ndkBuild {
targets "ocrnative"
abiFilters "armeabi-v7a"
}
}
}
useLibrary 'org.apache.http.legacy'
externalNativeBuild {
ndkBuild {
path "src/main/jni/Android.mk"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
debug {
externalNativeBuild {
ndkBuild {
arguments "NDK_DEBUG:=1"
}
}
}
}
productFlavors {
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/ECLIPSE_.SF'
exclude 'META-INF/ECLIPSE_.RSA'
}
configurations.all {
resolutionStrategy {
force 'androidx.media:media:1.0.0'
}
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://s3.amazonaws.com/repo.commonsware.com" }
// maven { url 'https://dl.bintray.com/intercom/intercom-maven' }
maven { url 'https://maven.fabric.io/public' }
mavenCentral()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
dependencies {
def suppLibVersion = '28.0.0'
androidTestImplementation 'androidx.test:runner:1.3.0-alpha01'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-alpha01'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
transitive = true;
}
implementation('com.crashlytics.sdk.android:answers:1.3.7@aar') {
transitive = true;
}
implementation project(':UrlImageViewHelper')
implementation project(':TwoWayGridView')
implementation project(':SlidingMenu')
implementation project(':Branch-Invite-SDK')
implementation('com.google.android.gms:play-services-base:17.0.0') {
force = true;
}
implementation('com.google.android.gms:play-services-maps:17.0.0') {
force = true;
}
// Firebase
implementation 'com.google.firebase:firebase-core:17.0.0'
implementation 'com.google.firebase:firebase-perf:18.0.1'
implementation 'com.google.firebase:firebase-database:18.0.0'
implementation 'com.google.firebase:firebase-auth:18.0.0'
implementation 'com.google.firebase:firebase-messaging:19.0.1'
implementation 'com.google.firebase:firebase-ml-vision:21.0.0'
// OneSignal & Push Notify
implementation('com.onesignal:OneSignal:3.10.8') {
exclude group: 'com.google.android.gms'
}
implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
// Intercom
implementation 'io.intercom.android:intercom-sdk-base:5.+'
implementation 'io.intercom.android:intercom-sdk-fcm:5.+'
implementation 'com.android.support:recyclerview-v7:' + suppLibVersion
implementation 'com.android.support:gridlayout-v7:' + suppLibVersion
implementation 'com.android.support:support-v4:' + suppLibVersion
implementation 'com.android.support:design:' + suppLibVersion
implementation 'uk.co.chrisjenx:calligraphy:2.1.0'
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
implementation 'com.koushikdutta.ion:ion:2.+'
implementation 'com.github.JakeWharton:ViewPagerIndicator:2.4.1'
implementation 'com.github.jaydeepw:poly-picker:v1.0.22'
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'
implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
implementation 'commons-io:commons-io:2.5'
implementation 'com.jsibbold:zoomage:1.1.0'
implementation 'com.wootric:wootric-sdk-android:2.5.2'
testImplementation 'junit:junit:4.13-beta-3'
implementation 'io.branch.sdk.android:library:2.+'
implementation 'com.github.bumptech.glide:glide:3.8.0'
implementation 'info.hoang8f:android-segmented:1.0.6'
implementation 'com.otaliastudios:cameraview:1.6.0'
implementation 'com.github.eventtus:photo-editor-android:v1.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
// implementation 'com.applozic.communication.uiwidget:mobicomkitui:5.34'
implementation project(':mobicomkit')
implementation project(':mobicomkitui')
implementation project(':mobicommons')
implementation 'com.google.android.material:material:1.0.0'
}
apply plugin: 'com.google.gms.google-services'
最佳答案
这里的问题是你的项目没有完全迁移到Android X,[com.android.support:support-compat:28.0.0]和androidx.core:core:1.0.0版本有冲突.
将 com.android.support:support 库更新为
implementation "androidx.core:core:1.0.0"
有关更多信息,请参阅本指南:https://developer.android.com/jetpack/androidx/migrate
关于android - 来自 [androidx.core : Attribute application@appComponentFactory value=(androidx. 0.0] 的错误 :core:1. core.app.CoreComponentFactory),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56929491/
我的 google pixel 2 安卓 9 版本突然崩溃。是否有任何暗示背后的原因是什么,而且每次都无法重现。 详细日志... Didn't find class "android.support.
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.Cor
我不知道如何处理以下错误,我在网上搜索但没有找到任何内容: java.lang.ClassNotFoundException: Didn't find class "androidx.core.app
给出的错误: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.
我已将我的应用程序迁移到 AndroidX。如果我禁用 proguard,一切正常。如果我启用 proguard,应用程序可以成功构建,但在我打开应用程序时崩溃。 Caused by: java.la
它是一个发布版 apk,并不总是用于大肆宣传。 当我使用 firebase 在 Android P 中启动应用程序时发生。 第一次安装应用程序的时候率很高。 这是日志: 2019-06-13 13:2
我没有使用任何 AndroidX 功能,我不想迁移到 Android X,当我尝试运行该应用程序时,gradle 停止并显示此消息非常感谢任何帮助,谢谢 Manifest merger failed
虽然我的 list 实际上是正确的,但它说 list 合并错误 这是我的应用模块gradle依赖文件 dependencies { implementation fileTree(dir: '
迁移到 AndroidX 后,我在启动时遇到以下异常: LoadedApk: Unable to instantiate appComponentFactory java.lang.Class
我正在研究 firebase-ml。 早些时候,我使用的是它的 16 版本,它在我的项目中运行良好。但是经过一些需求,我需要升级到21.0.0,然后我就面临着 Error: Attribute app
这个问题在这里已经有了答案: Manifest merger failed : Attribute application@appComponentFactory - Androidx (14 个答
我是一名优秀的程序员,十分优秀!