Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/Questions/How to fix the ''manifest merger failed with multiple errors, see logs'' error?
Next
Answered
pete
  • 0
pete
Asked: August 12, 20222022-08-12T05:04:31+00:00 2022-08-12T05:04:31+00:00In: Error

How to fix the ”manifest merger failed with multiple errors, see logs” error?

  • 0

Hi guys, Today when I run my program, I encounter the ”manifest merger failed with multiple errors, see logs” error. 

Here is my code:

<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.my.app" android:versionCode="3" android:versionName="1.2">
<supports-screens android:resizeable="true" />
<supports-screens android:smallScreens="true" />
<supports-screens android:normalScreens="true" />
<supports-screens android:largeScreens="true" />
<supports-screens android:anyDensity="true" />
<!-- Permission - Internet Connect -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- Network State Permissions -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Allows the API to access Google web-based services. -->
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<!-- Allows the API to cache map tile data in the device's external storage area. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-feature android:glEsVersion="0x00020000" android:required="true" />


<!--
Creates a custom permission so only this app can receive its messages.
NOTE: the permission *must* be called PACKAGE.permission.C2D_MESSAGE,
where PACKAGE is the application's package name.
-->
<permission android:name="com.my.app.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.my.app.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive data message. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<application android:name="com.my.app.util.HotelApp" android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@android:style/Theme.Black.NoTitleBar">
<activity android:name="com.my.app.activity.SplashActivity" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|screenSize" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.my.app.activity.HomeActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|screenSize" />
<activity android:name="com.my.app.activity.CategoryActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.ContactUSActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.LeisuresActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.LeisureActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.PromosActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.ReservationActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.AboutUsActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.ReservationContinueActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.BookTableActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.AccommodationsActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.CorporatesActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.GuestServicesActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.PhotoGalleryActivity" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|screenSize" />
<activity android:name="net.hockeyapp.android.UpdateActivity" android:screenOrientation="portrait" />
<!--<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyDAk_PM9Ce-z_9onkItz4aSahE1AGSBKDo" />-->
<!--
BroadcastReceiver that will receive intents from GCM
services and handle them to the custom IntentService.

The com.google.android.c2dm.permission.SEND permission is necessary
so only GCM services can send data messages for the app.
-->
<receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<!-- Receives the actual messages. -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<!-- Receives the registration id. -->
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.my.app" />
</intent-filter>
</receiver>
<!--
Application-specific subclass of GCMBaseIntentService that will
handle received messages.

By default, it must be named .GCMIntentService, unless the
application uses a custom BroadcastReceiver that redefines its name.
-->
<service android:name=".GCMIntentService" />
</application>
</manifest>

and for build.gradle as follows

android {
compileSdkVersion 23
buildToolsVersion "24.0.2"

defaultConfig {
applicationId "com.stgeorge.hotel"
minSdkVersion 8
targetSdkVersion 19
}

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

I have tried some solution but its not work. Can someone give me some advice for the error? Many thanks!

  • 1 1 Answer
  • 62 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    hdtutoria Expert
    2022-08-12T05:20:29+00:00Added an answer on August 12, 2022 at 5:20 am

    The cause: This occurs if you added a service Android Studio automatically adds and there is a conflict if you add a second service line of the type you wanted to create.

    Solution: The solution for this error is: To check :

    • Android manifest file. duplicate or wrong file to add.
    • Gradle file to check the latest version is compatible or other version is available so install Build Sdk. Next ->install and finish To complete run your program.

    To check Layout file is Recources not available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.