【问题标题】:Android Cause: duplicate entry: AndroidManifest.xmlAndroid原因:重复条目:AndroidManifest.xml
【发布时间】:2020-11-11 11:13:40
【问题描述】:

我的问题已经有人问过了。但是找不到解决方案。这两个链接中的相同错误和相同项目

enter link description here

enter link description here

以上链接问题均未正确回答。对我来说,它首先起作用。我迁移到 androidx 然后得到了这个错误。有人可以帮我解决问题以及如何创建重复文件吗?

清单 1: 已经在这两个链接中添加了。

Manifest 2:另一个模块 Manifest 文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.rahuljanagouda.statusstories">

<uses-permission android:name="android.permission.INTERNET" />
<application
    android:allowBackup="true"
    android:label=
        "@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
   >
    <meta-data
        android:name="com.rahuljanagouda.statusstories.glideProgressBar.OkHttpProgressGlideModule"
        android:value="GlideModule" />
    <activity android:exported="true" 
 android:name="com.rahuljanagouda.statusstories.StatusStoriesActivity" />
</application>
</manifest>

构建.gradle:

apply plugin: 'com.android.library'
//apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.rahuljanagouda'
version = '1.0.0'
android {
compileSdkVersion 29
buildToolsVersion '29.0.3'

defaultConfig {
    minSdkVersion 19
    targetSdkVersion 28
    versionCode 1
    versionName "1.0.0"

    testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

   }

 buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
 }

 }

dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
// Glide v3 (stable)
implementation 'com.github.bumptech.glide:glide:3.9.0-SNAPSHOT'
// OkHttp3
implementation 'com.github.bumptech.glide:okhttp3-integration:1.6.0-SNAPSHOT'
implementation 'com.squareup.okhttp3:okhttp:3.14.4'
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
testImplementation 'junit:junit:4.13.1'
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
 }

【问题讨论】:

  • 你检查合并清单了吗?有什么问题吗?
  • 没有错误或警告...

标签: android build.gradle androidx


【解决方案1】:

尝试将所有库更新到最新版本,并检查项目的 lib 文件夹。删除该文件夹中的文件(如果存在)。

【讨论】:

  • libphonenumber-4.1 和 sinch-android-rtc-3.17.4 如果我删除新错误错误:找不到任何匹配项:sinch-android-rtc:+ 因为没有 :sinch-android 版本-rtc
猜你喜欢
  • 2020-10-18
  • 2020-12-12
  • 1970-01-01
  • 2019-07-11
  • 2012-07-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-12-01
相关资源
最近更新 更多