- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我在 gredle 中添加实现“net.gotev:3.5.2”并构建项目时,它说
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:7:5-41:19 to override.
这是我的 gradle 文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.attendance.ams.ams"
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:gridlayout-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation "net.gotev:uploadservice:3.5.2"
}
Here is my AndroidManifest file
```xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.attendance.ams.ams">
<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/app_icon_trim"
android:label="@string/app_name"
android:roundIcon="@mipmap/app_icon_trim"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
android:name=".Initializer"
>
<activity android:name=".selectPicActivity"></activity>
<activity
android:name=".SplashScreen"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Black.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".LoginActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".attendance" />
<activity android:name=".makeAttendance" />
</application>
</manifest>
最佳答案
从 list 文件中删除 android:theme="@android:style/Theme.Black.NoTitleBar"
关于java - 如何在android studio中解决 "Manifest merger failed:",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55935351/
我有一个统一项目我正在将该项目导出为 android studio 项目,同时打开 android studio 项目我收到此错误 Gradle sync failed: Could not find
在 ionic3 中生成构建后,我遇到了上述错误我尝试了很多解决方案但没有奏效,请告诉我,任何人,如何解决上述错误? 下面我必须包含//Project-properties 文件。 我尝试了以下解决方
升级到 gradle 4.4 后: gradle-wrapper.properties distributionUrl=https\://services.gradle.org/distributio
我是 Android Studio 的新手,正在尝试将一个相当旧的项目从 Eclipse 导入 Android Studio。我遇到了可怕的错误: Error:Execution failed for
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,
找不到 manifest-merger.jar (com.android.tools.build:manifest-merger:26.1.0)。在以下位置搜索: https://jcenter.bi
我有一个包含许多模块的 Ant 项目。我正在尝试将一些模块合并成更大的模块并减少它们的数量。 我可以将 android manifest merger 作为独立应用程序运行并合并指定为参数的 list
我创建了一个从 Youtube 下载视频和声音的脚本,然后将声音和视频与 ffmpeg 合并,我想知道另一种方法可以更快地获得相同的结果吗?因为这个脚本大约需要 7 分钟 ~ 取决于视频质量和持续时间
当我在 gredle 中添加实现“net.gotev:3.5.2”并构建项目时,它说 Manifest merger failed : Attribute application@appCompone
我有一个项目显示一些 Manifest merge failed 错误。我尝试了很多解决方案,包括迁移到 androidx,但该项目正在使用一些库,这些库在迁移到 androidx 时显示错误,因此我
我一直看到这条消息,不知道如何解决它。 Error:(43, 9) Attribute application@icon value=(@drawable/new_app_icon) from And
我们目前正在尝试将我们的系统更新到最新的 Android Studio/Gradle 工具,并且在途中遇到了一些错误。 我们确实有 2 个库使用 permission.C2D_MESSAGE,即 Fi
当我在终端中运行命令 react-native run-android 时(React-Native),我收到下面提到的错误。 Manifest merger failed : Attribute a
我正在尝试使用命令“tns debug android”调试我的 Nativescript 应用程序,但构建过程始终失败。错误堆栈跟踪: Attribute application@appCompon
我一直在使用这段代码从 Manifest 文件中删除我不想要的权限,但是对于新的 Merger,这是不可能的,而且我不具备 gradle 的知识来修改它。 applicationVariants.al
尝试包含 Google Play 服务位置库时,出现以下错误: Error:Execution failed for task ':app:processDebugManifest'. > Manif
这个问题已经有答案了: Manifest merger failed : Attribute application@appComponentFactory - Androidx (14 个回答) 已
我将 'com.stripe:stripe-android:8.5.0' 实现到我的应用程序 gradle 中,然后我在尝试构建我的项目时遇到以下错误: Manifest merger failed
当从构建菜单生成签名的 APK 时,我最终得到了新文件 app/manifest-merger-release-report.txt。这个文件是什么,它应该是版本控制的(比如 ProGuard 的 m
尝试在我的 Android 项目上安装 OneSignal 的 SDK 后,我注意到在编译时一直发生错误,这阻止了我开始使用该服务。 我的 build.grade(Module:app) 文件:
我是一名优秀的程序员,十分优秀!