任务':app:processDebugManifest'的执行失败。清单合并失败并出现多个错误,请参阅日志,

时间:2019-12-25 09:40:31

标签: java android android-studio android-manifest

我正在尝试运行我的应用,但一直崩溃。我的AuroCompleteFragment出现问题,每次自动关闭。因此,我回到android开发人员文档并实现了新的Places库依赖关系,该依赖关系似乎已改变了一切。正在收到将我发送到清单文件的错误,但不幸的是我似乎找不到问题。谁能帮我推断出这个问题吗? 。

这是错误消息

  /Users/malik/Desktop/rider/UrbanInsure/app/src/main/AndroidManifest.xml:18:13-61 Error:
  Attribute activity#com.google.android.libraries.places.widget.AutocompleteActivity@theme 
  value=(@style/PlacesAutocompleteOverlay) from 
  [com.google.android.libraries.places:places:2.1.0] AndroidManifest.xml:18:13-61
  is also present at [com.google.android.libraries.places:places-compat:2.1.0] 
  AndroidManifest.xml:21:13-66 value=(@style/PlacesAutocompleteThemeOverlay).
  Suggestion: add 'tools:replace="android:theme"' to <activity> element at 
  AndroidManifest.xml:14:9-20:20 to override.
 /Users/malik/Desktop/rider/UrbanInsure/app/src/main/AndroidManifest.xml:19:13-55 Error:
Attribute activity#com.google.android.libraries.places.widget.AutocompleteActivity@windowSoftInputMode value=(adjustResize) from [com.google.android.libraries.places:places:2.1.0] AndroidManifest.xml:19:13-55
is also present at [com.google.android.libraries.places:places-compat:2.1.0] AndroidManifest.xml:22:13-71 value=(stateAlwaysVisible|adjustPan).
Suggestion: add 'tools:replace="android:windowSoftInputMode"' to <activity> element at AndroidManifest.xml:14:9-20:20 to override.

这是我的gradle文件

apply plugin: 'com.android.application'


 android {
compileSdkVersion 29
packagingOptions {
    exclude 'LICENSE.txt'
}

defaultConfig {
    applicationId "com.urbanx.urbaninsure"
    minSdkVersion 21
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"
    multiDexEnabled true


}
dexOptions {
    javaMaxHeapSize "4g"
}
buildTypes {
    release {
        proguardFile 'proguard-google-play-services.pro'
        proguardFile 'proguard-gson.pro'
        // Default proguard files & project app specific rules,
        //  see examples folder for more information

        proguardFile 'proguard-project-app.pro'
        proguardFile getDefaultProguardFile('proguard-android.txt')
        // As of Gradle Android plugin 1.1.0, the test APK has a separate config
        testProguardFile 'proguard-project-test.pro'
        minifyEnabled true
        shrinkResources true
    }
    debug {
        minifyEnabled true
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard- 
rules.pro'
        testCoverageEnabled true

    }
}
packagingOptions {
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE-FIREBASE.txt'
    exclude 'META-INF/NOTICE'
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.12'
implementation 'com.facebook.android:facebook-login:5.12.0'
implementation 'com.facebook.android:facebook-android-sdk:5.12.0'
implementation 'com.facebook.android:account-kit-sdk:5.4.0'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
//noinspection GradleCompatible
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.github.ganfra:material-spinner:2.0.0'
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'
implementation 'com.github.d-max:spots-dialog:0.7@aar'
implementation 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1'
//noinspection GradleDynamicVersion
implementation 'com.google.maps.android:android-maps-utils:0.5+'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.squareup.okio:okio:1.14.0'
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup:otto:1.3.8'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.google.firebase:firebase-auth:19.2.0'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'com.firebaseui:firebase-ui-firestore:6.1.0'
implementation 'com.firebaseui:firebase-ui-database:6.1.0'
implementation 'com.android.support:appcompat-v7:29.0.0'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.android.support:cardview-v7:29.0.0'
implementation 'com.android.support:design:29.0.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.nightonke:boommenu:2.1.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.flaviofaria:kenburnsview:1.0.7'
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation 'com.google.firebase:firebase-messaging:20.1.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.hbb20:ccp:2.1.9'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.github.jd-alexander:library:1.1.0'
implementation 'com.github.bumptech.glide:glide:4.3.1'
implementation 'com.firebase:geofire-android:2.2.0'
implementation 'com.firebase:firebase-client-android:2.5.2'
implementation 'com.google.firebase:firebase-storage:19.1.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'info.hoang8f:fbutton:1.0.5'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.12'
implementation 'com.google.android.libraries.places:places:2.1.0'
implementation 'com.google.android.libraries.places:places-compat:2.1.0'

implementation('com.github.ganfra:material-spinner:2.0.0') {
    exclude group: 'com.android.support', module: 'appcompat-v7'
}
testImplementation 'com.squareup.okhttp3:mockwebserver:3.10.0'
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'realm-android'
apply plugin: 'maven'

下面是我的清单文件。

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

<supports-screens
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:xlargeScreens="true" />

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.SEND_SMS" />

<application
    android:name=".Application"
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true">
    <activity android:name=".TutorialPage"
        android:theme="@style/AppTheme.NoActionBar"/>
    <activity
        android:name=".ConfirmDetails"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".DrivingMakingDeliveries"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".GuideToUrbanInsure"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".ReportIssue"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".TermsandConditions"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".LoginActivity"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".MotorVehicle"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".OrderStatus"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".SearchAddress"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".DeliveryActivity"
        android:theme="@style/AppTheme.NoActionBar" />

    <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="@string/google_maps_api_key" />
    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
    <meta-data android:name="com.facebook.accountkit.FacebookAppEventsEnabled"
        android:value="false"/>


    <meta-data android:name="com.facebook.accountkit.ApplicationName"
        android:value="@string/app_name" />
    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/facebook_app_id" />

    <meta-data android:name="com.facebook.accountkit.ClientToken"
        android:value="@string/ACCOUNT_KIT_CLIENT_TOKEN" />

    <activity
        android:name=".InsurancePayment"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".ClaimForm"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".FileClaim"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".ClaimsProcess"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".ClaimsHistory"
        android:theme="@style/AppTheme.NoActionBar" />

    <activity
        android:name="com.facebook.accountkit.ui.AccountKitActivity" />

    <activity
        android:name="com.facebook.FacebookActivity"
        android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
        android:label="@string/app_name" />
    <activity
        android:name="com.facebook.CustomTabActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="@string/fb_login_protocol_scheme" />
        </intent-filter>
    </activity>

    <activity
        android:name=".Splash"
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".VerficationPhone"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".MainActivity"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".Notifications"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".InviteAFriend"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".Help"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".About"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".Payment"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".MyAccount"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".ProposalForm1"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".InsuranceHistory"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".InsuranceCalculator"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".RenewInsurance"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".Claims"
        android:theme="@style/AppTheme.NoActionBar" />
    <activity
        android:name=".Cart"
        android:theme="@style/AppTheme.NoActionBar" />
</application>

</manifest>

0 个答案:

没有答案