Android: Installation failed with message INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - android

I get the following error when I run the application on my phone via Android Studio.
I have checked, there is no version of this app installed on any of the user accounts on my phone. My build.gradle file contains defaultConfig.applicationId = "com.fyp.agripoint"
Here is the AndroidManifest.xml file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fyp.agripoint">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="AgriPointApp"
android:supportsRtl="true">
<activity
android:name=".MainActivity"
android:theme="#style/AppChildTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".buysell.MainActivityMap"
android:theme="#style/AppChildTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" />
</activity>
<activity
android:name=".calendar.MainActivityCalendar"
android:theme="#style/AppChildTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" />
</activity>
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="#string/google_maps_key" />
<service
android:name=".location.LocationService"
android:enabled="true"
android:exported="true" />
<service
android:name=".location.test"
android:enabled="true"
android:exported="true" />
<activity
android:name=".mandi.MandiRateActivity"
android:theme="#style/AppChildTheme" />
<meta-data
android:name="io.fabric.ApiKey"
android:value="my_key" />
<activity
android:name=".profile.ProfileActivity"
android:theme="#style/AppChildTheme" />
<activity
android:name=".profile.PrefsActivity"
android:theme="#style/AppChildTheme" />
<activity
android:name=".profile.EditProfileActivity"
android:theme="#style/AppChildTheme" />
<activity
android:name=".events.MainActivityEvent"
android:theme="#style/AppChildTheme" />
<receiver
android:name=".events.AlarmReceiver"
android:process="remote" />
<service
android:name=".events.NotificationService"
android:enabled="true"
android:exported="true" />
<activity
android:name=".articles.MainActivityArticles"
android:theme="#style/AppChildTheme" />
<activity
android:name=".articles.ArticleDetail"
android:theme="#style/AppChildTheme" />
</application>
</manifest>

Specify complete activity name in manifest.
Always use:
www.yourcompany.com.MainActivity
instead of :
.MainActivity

Related

Cause: duplicate entry: AndroidManifest.xml- What seems to be the issue?

I also have the same issue with the AndroidManifest file.
The "Merged Manifest" tab shows this error
Merging Errors: Warning provider#com.telhum.chat.utils.MyFileProvider#android:authorities was tagged at AndroidManifest.xml:75 to replace other declarations but no other declaration present DreamsChat.app main manifest (this file), line 74
Here is my AndroidManifest.xml
<?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.telhum.chat">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application
android:name="com.telhum.chat.BaseApplication"
android:allowBackup="false"
android:appComponentFactory="whateverString"
android:hardwareAccelerated="true"
android:icon="#drawable/ic_logo_"
android:label="#string/app_name"
android:largeHeap="true"
android:supportsRtl="true"
android:theme="#style/AppTheme"
android:usesCleartextTraffic="true"
tools:replace="android:allowBackup,android:appComponentFactory">
<activity
android:name="com.telhum.chat.activities.MainActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.ChatActivity"
android:parentActivityName="com.telhum.chat.activities.MainActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize">
<!--android:windowSoftInputMode="stateHidden|adjustResize|adjustPan">-->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.telhum.chat.activities.MainActivity" />
</activity>
<activity android:name="com.telhum.chat.activities.ImageViewerActivity" />
<service
android:name="com.telhum.chat.services.FirebaseChatService"
android:enabled="true" />
<service android:name="com.telhum.chat.services.MyFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<receiver
android:name="com.telhum.chat.receivers.ConnectivityReceiver"
android:enabled="true">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<!-- https://developers.google.com/places/android-sdk/signup -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyCkFC_Ev5SLOfJPto9NG0BJnlwOwxwc5Z0" />
<provider
android:name="com.telhum.chat.utils.MyFileProvider"
android:authorities="#string/authority"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="#xml/file_paths" />
</provider>
<activity
android:name="com.telhum.chat.activities.ContactViewerActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.ChatDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.SignInActivity"
android:screenOrientation="portrait"
android:theme="#style/AppTheme.NoTitle"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.CallScreenActivity"
android:screenOrientation="portrait" />
<activity
android:name="com.telhum.chat.activities.IncomingCallScreenActivity"
android:screenOrientation="portrait" />
<activity
android:name="com.telhum.chat.activities.SplashActivity"
android:screenOrientation="portrait"
android:theme="#style/AppTheme.NoTitle"
android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name="com.telhum.chat.services.FetchMyUsersService"
android:exported="false" />
<service
android:name="com.telhum.chat.services.SinchService"
android:enabled="true"
android:exported="false" />
<activity
android:name="com.telhum.chat.activities.ChooseSignInActivity"
android:label="#string/title_activity_choose_sign_in"
android:theme="#style/AppTheme" />
<activity
android:name="com.telhum.chat.activities.ContactActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name="com.telhum.chat.activities.PrivacyPolicyActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize" />
<meta-data
android:name="com.telhum.chat.status.glideProgressBar.OkHttpProgressGlideModule"
android:value="GlideModule" />
<activity
android:name="com.telhum.chat.activities.StatusStoriesActivity"
android:exported="true"
android:screenOrientation="portrait"
android:theme="#style/FullScreenVideoTheme" />
<activity
android:name="com.telhum.chat.activities.CallListActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden|adjustResize|adjustPan" />
</application>
</manifest>

Why my app is not compatible with my own phone in google play

I know this questions has been asked a lot but I really don't get any answer
My app is not compatible with any phone:
Developer console
this is my android manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="amaigh.biolotel">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="#drawable/ico"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity
android:name=".FullscreenActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="#string/app_name"
android:theme="#style/FullscreenTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:theme="#style/AppTheme.NoActionBar">
</activity>
<activity android:name=".Settings" />
<activity android:name=".Chooser" />
<activity android:name=".PdfReader"></activity>
</application>
</manifest>
When I Analyze my app with android studio I get this manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="3"
android:versionName="1.0"
package="amaigh.biolotel"
platformBuildVersionCode="25"
platformBuildVersionName="7.1.1">
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="25" />
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission
android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission
android:name="android.permission.WAKE_LOCK" />
<uses-permission
android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission
android:name="amaigh.biolotel.permission.C2D_MESSAGE"
android:protectionLevel="0x2" />
<uses-permission
android:name="amaigh.biolotel.permission.C2D_MESSAGE" />
<application
android:theme="#ref/0x7f08003b"
android:label="#ref/0x7f06003d"
android:icon="#ref/0x7f02006d"
android:debuggable="true"
android:allowBackup="true"
android:supportsRtl="true">
<activity
android:theme="#ref/0x7f0800d7"
android:label="#ref/0x7f06003d"
android:name="amaigh.biolotel.FullscreenActivity"
android:configChanges="0x4a0">
<intent-filter>
<action
android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:theme="#ref/0x7f08003c"
android:label="#ref/0x7f06003d"
android:name="amaigh.biolotel.MainActivity" />
<activity
android:name="amaigh.biolotel.Settings" />
<activity
android:name="amaigh.biolotel.Chooser" />
<activity
android:name="amaigh.biolotel.PdfReader" />
<activity
android:theme="#ref/0x0103000f"
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="0xfb0" />
<activity
android:theme="#ref/0x7f080125"
android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity" />
<activity
android:theme="#ref/0x01030010"
android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:exported="false" />
<receiver
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
android:enabled="true"
android:exported="false" />
<receiver
android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
android:permission="android.permission.INSTALL_PACKAGES"
android:enabled="true">
<intent-filter>
<action
android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
<service
android:name="com.google.android.gms.measurement.AppMeasurementService"
android:enabled="true"
android:exported="false" />
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
android:permission="com.google.android.c2dm.permission.SEND"
android:exported="true">
<intent-filter>
<action
android:name="com.google.android.c2dm.intent.RECEIVE" />
<action
android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category
android:name="amaigh.biolotel" />
</intent-filter>
</receiver>
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
android:exported="false" />
<service
android:name="com.google.firebase.iid.FirebaseInstanceIdService"
android:exported="true">
<intent-filter
android:priority="-500">
<action
android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<provider
android:name="com.google.firebase.provider.FirebaseInitProvider"
android:exported="false"
android:authorities="amaigh.biolotel.firebaseinitprovider"
android:initOrder="100" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#ref/0x7f0a0006" />
</application>
</manifest>
Don't use this code in manifest.. if you are using android studio
just check in your app.gridle file min and target SDK api no

Error:Android Source Generator: [project] Package is not specified in AndroidManifest.xml

I am trying to generate a signed APK in Android Studio,
however I get this error :
Error:Android Source Generator: [project] Package is not specified in AndroidManifest.xml
There are some lines that seem to have a problem
however, I do not get it and how to fix them :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:"http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="2.0" package="project">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="18" />
<uses-feature android:glEsVersion="20000" android:required="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="project.gcm.permission.C2D_MESSAGE" android:protectionLevel="signature|signatureOrSystem" />
<uses-permission android:name="project.gcm.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<permission android:name="android.permission.FLASHLIGHT" android:protectionLevel="UNKNOWN_DATA_0x0" android:permissionGroup="android.permission-group.HARDWARE_CONTROLS" />
<application android:theme="#style/Theme_Ab" android:label="Project" android:icon="#drawable/ic_launcher">
<receiver android:name="project.SimpleWakefulReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.example.gcm" />
</intent-filter>
</receiver>
<service android:name="project.SimpleWakefulService" />
<uses-library android:name="com.google.android.maps" />
<meta-data android:name="com.google.android.gms.version" android:value="4242000" />
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyCpYsVH0zJSuL1SX5SuVoCP2RqeGqfSL1o" />
<meta-data android:name="bundleName" android:value="fr.project" />
<meta-data android:name="displayName" android:value="project display" />
<meta-data android:name="version" android:value="1.0" />
<meta-data android:name="build" android:value="1" />
<meta-data android:name="showroomName" android:value="project showroom name" />
<meta-data android:name="navBarCaption" android:value="navbar project name" />
<meta-data android:name="showroomAddr" android:value="address" />
<meta-data android:name="showroomPhone" android:value="phone number" />
<meta-data android:name="showroomMail" android:value="projectmail" />
<meta-data android:name="assistanceNatTel" android:value="phone" />
<meta-data android:name="savPhone" android:value="service phone" />
<meta-data android:name="savMail" android:value="service mail" />
<meta-data android:name="isRent" android:value="true" />
<meta-data android:name="mentionsAtelier" android:value="legal mentions" />
<meta-data android:name="facebookLink" android:value="facebookurl" />
<meta-data android:name="mentions" android:value="app mentions" />
<activity android:theme="#*android:style/Theme.Light.NoTitleBar.Fullscreen" android:label="name of app" android:name="project.SplashScreen" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:label="#string/title_activity_news" android:icon="#drawable/ic_action_about" android:name="project.News" android:launchMode="singleTop" android:screenOrientation="portrait" android:uiOptions="splitActionBarWhenNarrow" />
<activity android:label="#string/title_activity_news_web" android:icon="#drawable/ic_action_about" android:name="project.NewsWeb" android:launchMode="singleTop" android:screenOrientation="portrait" android:uiOptions="splitActionBarWhenNarrow" />
<activity android:label="#string/title_activity_news" android:icon="#drawable/ic_action_about" android:name="project.NewsPager" android:screenOrientation="portrait" android:uiOptions="splitActionBarWhenNarrow" />
<activity android:label="#string/title_activity_cars" android:icon="#drawable/ic_action_about" android:name="project.Cars" android:launchMode="singleTop" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation" android:uiOptions="splitActionBarWhenNarrow" />
<activity android:label="#string/title_activity_cars" android:icon="#drawable/ic_action_about" android:name="project.CarDetail" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation" android:uiOptions="splitActionBarWhenNarrow" android:parentActivityName=".Cars" />
<activity android:name="project.Gallery" android:screenOrientation="landscape" android:configChanges="keyboardHidden|orientation" android:uiOptions="splitActionBarWhenNarrow" />
<activity android:label="#string/title_activity_staffs" android:icon="#drawable/ic_action_about" android:name="project.StaffGridPager" android:screenOrientation="portrait" android:uiOptions="splitActionBarWhenNarrow" />
<activity android:label="#string/title_activity_cars" android:icon="#drawable/ic_action_about" android:name="project.Showrooms" android:launchMode="singleTop" android:screenOrientation="portrait" android:configChanges="keyboardHidden|orientation" android:uiOptions="splitActionBarWhenNarrow" />
</application>
</manifest>

Error:The value of attribute "android:name" associated with an element type "null" must not contain the '<' character

I am a novice trying to figure out the error. But I have reached upon no solution even after trying it several times.
I am sharing the android-manifest.xml file code. More details are after this code.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.home.timestopper" >
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity
android:name=".StopwatchActivity"
android:label="#string/app_name"
android:theme="#style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data android:name="com.applozic.application.key"
android:value="API_KEY" /> <!-- Applozic Application Key -->
<meta-data android:name="com.applozic.mobicomkit.notification.icon"
android:resource="#drawable/mobicom_ic_launcher" /> <!-- Launcher Icon -->
<meta-data android:name="com.applozic.mobicomkit.notification.smallIcon"
android:resource="YOUR_LAUNCHER_SMALL_ICON" /> <!-- Launcher white Icon -->
<meta-data android:name="share_text"
android:value="Talk about time!..the essence of life." /> <!-- Invite Message -->
<meta-data android:name="main_folder_name"
android:value="#string/default_media_location_folder" /> <!-- Attachment Folder Name -->
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="GEO_KEY" /> <!--Replace with your geo api key from google developer console -->
<!-- For testing purpose use
To disable the location sharing via map add this line ApplozicSetting.getInstance(context).disableLocationSharingViaMap(); in onSuccess of Applozic UserLoginTask -->
<meta-data android:name="activity.open.on.notification"
android:value="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity" /> <!-- NOTE : Do NOT change this value -->
<meta-data android:name="com.package.name"
android:value="${applicationId}" /> <!-- NOTE: Do NOT change this, it should remain same i.e 'com.package.name' -->
<receiver android:name="com.applozic.mobicomkit.uiwidgets.notification.MTNotificationBroadcastReceiver">
<intent-filter>
<action android:name="${applicationId}.send.notification" />
</intent-filter>
</receiver>
<activity android:name="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/app_name"
android:parentActivityName=".StopwatchActivity"
android:theme="#style/ApplozicTheme"
android:launchMode="singleTask" >
<!-- Parent activity meta-data to support API level 7+ -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".StopwatchActivity" />
</activity>
<activity android:name="com.applozic.mobicomkit.uiwidgets.people.activity.MobiComKitPeopleActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="#string/activity_contacts_list"
android:parentActivityName="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
android:theme="#style/Applozic.People.Theme"
android:windowSoftInputMode="adjustResize">
<!-- Parent activity meta-data to support API level 7+ -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity" />
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="#xml/searchable_contacts" />
</activity>
<activity android:name="com.applozic.mobicomkit.uiwidgets.conversation.activity.FullScreenImageActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="Image"
android:parentActivityName="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
android:theme="#style/Applozic_FullScreen_Theme">
<!-- Parent activity meta-data to support API level 7+ -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity" />
</activity>
<activity
android:name="com.applozic.mobicomkit.uiwidgets.conversation.activity.ContactSelectionActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop"
android:parentActivityName="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
android:theme="#style/ApplozicTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity" />
</activity>
<activity
android:name="com.applozic.mobicomkit.uiwidgets.conversation.activity.ChannelCreateActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop"
android:parentActivityName="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
android:theme="#style/ApplozicTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity" />
</activity>
<activity android:name="com.applozic.mobicomkit.uiwidgets.conversation.activity.ChannelNameActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop"
android:parentActivityName="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
android:theme="#style/ApplozicTheme">
</activity>
<activity android:name="com.applozic.mobicomkit.uiwidgets.conversation.activity.ChannelInfoActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop"
android:parentActivityName="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
android:theme="#style/ApplozicTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity" />
</activity>
<activity
android:name="com.applozic.mobicomkit.uiwidgets.conversation.activity.MobiComAttachmentSelectorActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop"
android:parentActivityName="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
android:theme="#style/ApplozicTheme"
android:windowSoftInputMode="stateHidden|adjustResize">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity" />
</activity>
<activity android:name="com.applozic.mobicomkit.uiwidgets.conversation.activity.MobicomLocationActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:parentActivityName="com.applozic.mobicomkit.uiwidgets.conversation.activity.ConversationActivity"
android:theme="#style/ApplozicTheme"
android:windowSoftInputMode="adjustResize">
</activity>
<service android:name="com.applozic.mobicomkit.api.conversation.MessageIntentService"
android:exported="false" />
<service android:name="org.eclipse.paho.android.service.MqttService" />
<service android:name="com.applozic.mobicomkit.api.conversation.ApplozicIntentService"
android:exported="false" />
<service android:name="com.applozic.mobicomkit.api.conversation.ApplozicMqttIntentService"
android:exported="false" />
<receiver android:name="com.applozic.mobicomkit.broadcast.TimeChangeBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.TIME_SET" />
<action android:name="android.intent.action.TIMEZONE_CHANGED" />
</intent-filter>
</receiver>
<receiver android:name="com.applozic.mobicomkit.broadcast.ConnectivityReceiver"
android:exported="true" android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
<receiver android:name="com.google.android.gms.gcm.GcmReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="<APP_PKG_NAME>" />
</intent-filter>
</receiver>
<service android:name=".pushnotification.ApplozicGcmListenerService">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<service android:name=".pushnotification.GcmInstanceIDListenerService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.gms.iid.InstanceID" />
</intent-filter>
</service>
</application>
<uses-permission android:name="com.example.home.timestopper.pushnotification.permission.C2D_MESSAGE" />
<uses-permission android:name="com.example.home.timestopper.pushnotification.permission.MAPS_RECEIVE" />
<permission android:name="com.example.home.timestopper.pushnotification.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<permission android:name="com.example.home.timestopper.pushnotification.permission.MAPS_RECEIVE" android:protectionLevel="signature" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<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.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</manifest>
So, what I am trying to do here is to integrate a chat feature in a small time-stopper app that I just created for the learning purpose and I am integrating it also for the learning purpose.
When I build gradle,Result shows Error:The value of attribute "android:name" associated with an element type "null" must not contain the '<' character.
and
Error:Cannot read packageName from C:\Users\APnaturals\AndroidStudioProjects\TimeStopper\app\src\main\AndroidManifest.xml
When I replace APP_PKG_NAME with the one mentioned in here
manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.home.timestopper"
Gradle Build fails again without giving any cause.
<category android:name="<APP_PKG_NAME>" />
Looks like you forgot to configure your package name in this element.
Simply remove the APP_PKG_NAME from metadata and put your package name or ID, as in androidmanifest.xml not allow <>.

How to fix Manifest error?

I have got this error:
INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
I read that most popular problem is package name,
but my package looks good(all letters small).
so can anyone tell why this happens?
Here is my manifest code. will be glad any help
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ua.andriyantonov.donorua" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<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_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<!--
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
Google Maps Android API v2, but are recommended.
-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/DonorUaTheme" >
<activity
android:name=".activities.RegisterActivity"
android:label="#string/title_activity_register" >
</activity>
<activity
android:name=".activities.RecipientsActivity"
android:label="#string/app_name"
android:launchMode="singleInstance"
android:theme="#style/MainActivityTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.RecipientDetailActivity"
android:label="#string/title_activity_recipient_detail"
android:parentActivityName=".activities.RecipientsActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.RecipientsActivity" />
</activity>
<activity
android:name=".activities.SettingsActivity"
android:label="#string/title_activity_settings"
android:parentActivityName=".activities.RecipientsActivity"
android:theme="#style/SettingsTheme" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.RecipientsActivity" />
</activity>
<activity
android:name=".activities.CentersOnMapActivity"
android:label="#string/title_activity_centers_on_map"
android:launchMode="singleInstance"
android:parentActivityName=".activities.RecipientsActivity"
android:theme="#style/MainActivityTheme" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.RecipientsActivity" />
</activity>
<activity
android:name=".activities.NeedToKnowActivity"
android:label="#string/title_activity_need_to_know"
android:launchMode="singleInstance"
android:theme="#style/MainActivityTheme" >
</activity>
<activity
android:name=".activities.NeedToKnowDetailActivity"
android:label="#string/title_activity_need_to_know_detail"
android:parentActivityName=".activities.NeedToKnowActivity"
android:theme="#style/DonorUaTheme" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.NeedToKnowActivity" />
</activity>
<activity
android:name=".activities.UserInfoActivity"
android:label="#string/drawer_item_user_info"
android:launchMode="singleInstance"
android:theme="#style/MainActivityTheme" >
</activity>
==================================
<provider
android:name=".data.DonorProvider"
android:authorities="#string/content_authority"
android:exported="false"
android:syncable="true" />
<service android:name=".sync.DonorAuthenticatornService" >
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="#xml/authenticator" />
</service>
<service
android:name=".sync.DonorSyncService"
android:exported="true" >
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data
android:name="android.content.SyncAdapter"
android:resource="#xml/syncadapter" />
</service>
<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="#string/google_maps_key" />
</application>
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ua.andriyantonov.donorua"
android:versionCode="1"
android:versionName="1.0"> <-- provide versionCode, versionName
<uses-sdk android:minSdkVersion="14"/> <-- provide min sdk version
<uses-permission android:name="android.permission.INTERNET" />
....
</manifest>
android:versionCode and android:versionName are missing
it should be something like this
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ua.andriyantonov.donorua"
android:versionCode="1"
android:versionName="1.0" >

Categories

Resources