错误:任务':app:processDebugManifest'执行失败。在运行项目时

时间:2016-08-10 16:39:41

标签: android android-manifest

我的项目由于硬盘崩溃而丢失。但我有apk文件。我反编译它并在我上一个备份项目中使用反编译项目的显示文件。现在它抛出了错误。我按照错误日志中给出的建议但是徒劳无功。我把错误日志和显示文件放在这里。请帮我做这份工作。这是我的清单文件。



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

    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:name=".General.MyApplication"
        android:allowBackup="true"
        tools:replace="android:icon,android:theme"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/facebook_app_id" />
        <meta-data
            android:name="io.fabric.ApiKey"
            android:value="5d2875712018223074fecf326eb18d66b1d7b271" />

        <activity
            android:name=".Activities.SignIn"
            android:configChanges="orientation"
            android:screenOrientation="portrait">
            <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:host="redirect"
                    android:scheme="sociallogin" />
            </intent-filter>
        </activity>
        <activity
            android:name=".Activities.SignUp"
            android:configChanges="orientation"
            android:screenOrientation="portrait"
            android:theme="@style/SignUpTheme">
            <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:host="redirect"
                    android:scheme="sociallogin" />
            </intent-filter>
        </activity>
        <activity
            android:name=".Activities.Splash"
            android:configChanges="orientation"
            android:screenOrientation="portrait"
            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=".Activities.Home"
            android:configChanges="orientation"
            android:label="@string/title_activity_home"
            android:screenOrientation="portrait"
            android:theme="@style/AppTheme.NoActionBar" />
        <activity
            android:name=".Activities.MyRecipe"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".Activities.SearchRecipe"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".Activities.TopRatedRecipe"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".Activities.Setting"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".Activities.Cousine"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name="com.facebook.FacebookActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" />
        <activity
            android:name=".Activities.AddRecipe"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".Activities.TabActivities.AddRecipeTabs.Image"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".Activities.TabActivities.AddRecipeTabs.Ingredients"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".Activities.TabActivities.AddRecipeTabs.Method"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name=".Activities.TabActivities.AddRecipeTabs.TimeServes"
            android:configChanges="orientation"
            android:screenOrientation="portrait" />
        <activity
            android:name="com.twitter.sdk.android.core.identity.OAuthActivity"
            android:configChanges="orientation"
            android:excludeFromRecents="true"
            android:exported="false" />
        <activity

            android:name="com.twitter.sdk.android.core.identity.ShareEmailActivity"
            tools:replace="android:configChanges"
            android:configChanges="orientation"
            android:excludeFromRecents="true"
            android:exported="false"
            android:icon="@drawable/tw__transparent"
            android:label="@string/kit_name" />
        <activity android:name=".Activities.Edit_Profile"
            android:configChanges="orientation"
            android:screenOrientation="portrait"/>
    </application>

</manifest>
&#13;
&#13;
&#13;

这是我的错误日志。请帮帮我。

&#13;
&#13;
E:\2B VISION\DishDo\app\src\main\AndroidManifest.xml:122:13-48 Error:
	Attribute activity#com.twitter.sdk.android.core.identity.OAuthActivity@configChanges value=(orientation) from AndroidManifest.xml:122:13-48
	is also present at [com.twitter.sdk.android:twitter-core:1.6.3] AndroidManifest.xml:30:13-59 value=(orientation|screenSize).
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute activity#com.twitter.sdk.android.core.identity.OAuthActivity@configChanges value=(orientation) from AndroidManifest.xml:122:13-48
	is also present at [com.twitter.sdk.android:twitter-core:1.6.3] AndroidManifest.xml:30:13-59 value=(orientation|screenSize).
	Suggestion: add 'tools:replace="android:configChanges"' to <activity> element at AndroidManifest.xml:120:9-124:40 to override.
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
	Suggestion: add 'tools:replace="android:configChanges"' to <activity> element at AndroidManifest.xml:120:9-124:40 to override.
:app:processDebugManifest FAILED
Information:BUILD FAILED
Information:Total time: 55.803 secs
Information:1 error
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

尝试更换

<activity
    android:name="com.twitter.sdk.android.core.identity.OAuthActivity"
    android:configChanges="orientation"
    android:excludeFromRecents="true"
    android:exported="false" />

使用:

<activity
    android:name="com.twitter.sdk.android.core.identity.OAuthActivity"
    android:configChanges="orientation"
    android:excludeFromRecents="true"
    tools:replace="android:configChanges"
    android:exported="false" />