INSTALL_PARSE_FAILED_MANIFEST_MALFORMED in android - android

I got this kind of error while I am running application on android device.Even I tried to uninstall by configuring the setting in general tab under edit configuration. Can anyone help me to solve this issue.But this was working on emulator.Event the package name is also in small letters.But still don't know the issue.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.arunmannuru.arun">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<!-- <uses-feature -->
<!-- android:name="android.hardware.camera.any" -->
<!-- android:required="true" /> -->
<!-- <uses-feature -->
<!-- android:name="android.hardware.camera.autofocus" -->
<!-- android:required="false" /> -->
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ResponseActivity" />
<activity android:name=".PromotionsFeedActivity" />
<activity
android:name=".Main2Activity"
android:label="#string/title_activity_main2"
android:theme="#style/AppTheme" />
<activity android:name=".AddNewEvent" />
<activity android:name=".Detail_PromotionFeed" />
<activity android:name=".Profile" />
<activity android:name=".Settings" />
<activity android:name=".Search" />
<activity android:name=".SearchFeedActivity" />
<activity android:name=".SignUpActivity" />
<activity android:name=".CalendarActivity" />
<activity android:name="Community.CommunityActivity" />
<activity android:name=".ConnectBusinessActivity" />
<activity android:name=".DialogClass" />
<activity android:name=".BusinessProfile" />
<activity android:name=".EventPost" />
<activity android:name=".MediaActivity" />
<activity android:name=".AddBusinessProfileActivity" />
<activity android:name=".UserFeedBackActivity" />
<activity android:name=".ContactUsActivity" />
<activity android:name=".FaqActivity" />
<activity android:name=".PrivacyPolicyActivity" />
<activity android:name=".TermsServices" />
<activity android:name=".RsvpPopUp" />
<!--
The API key for Google Maps-based APIs is defined as a string resource.
(See the file "res/values/google_maps_api.xml").
Note that the API key is linked to the encryption key used to sign the APK.
You need a different API key for each encryption key, including the release key that is used to
sign the APK for publishing.
You can define the keys for the debug and release targets in src/debug/ and src/release/.
-->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="#string/google_maps_key" />
<activity
android:name=".map_search"
android:label="#string/title_activity_map_search" />
<activity android:name=".Webview"></activity>
</application>
</manifest>

Do Android Studio->Analyze->Inspect code and check at bottom. is there any error or not?if there is error, please fix it. This operation will check whole your code

Related

launch icons not displaying in emulator or on a device

The launch icons are not showing on either the emulator or a device when I run the App. There is a similar questions but the answer provided does not resolve this for me so I think it warrants posing the question again.
I have added the required tags in the manifest file. The ic_launcher clipart icons were generated using the Configure Image Asset facility with the default name of ic_launcher and they are there in the mipmaps folder under the headings:
ic_launcher(6)
ic_launcher_foreground(5)
ic_launcher_round(6)
The Manifest file is as follows:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxxxxxxxxxxxxxxxxxxxxxxx">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<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-feature
android:glEsVersion="0x00020000"
android:required="true" />
<application
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme"
android:fullBackupContent="#xml/backup_descriptor">
<activity
android:name=".HomeActivity"
android:label="#string/app_name"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
<data android:scheme="http"
android:host="https://wwww.xxxxxxxxxxxxxx.com"
android:pathPrefix="/kalkan"/>
<!-- note that the leading "/" is required for pathPrefix-->
<!-- Accepts URIs that begin with "example://gizmos” -->
<data android:scheme="rental"
android:host="kalkan" />
</intent-filter>
</activity>
<activity
android:name=".DetailActivity" />
<activity android:name=".MapsActivity"/>
<activity android:name=".ListActivity"/>
<activity android:name=".AboutKalkanActivity" />
<activity android:name=".WebActivity" />
<activity android:name=".OwnerImageUploadActivity" />
<activity android:name=".OwnerInputDataActivity" />
<activity android:name=".OwnerLoginActivity" />
<activity android:name=".OwnerMainActivity" />
<activity android:name=".OwnerMapActivity" />
<activity android:name=".OwnerResetPasswordActivity" />
<activity android:name=".OwnerSignupActivity" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="xxxxxxxxxxxxxxxxxxxxxxxxxxx" />
</application>

App showing incompatible with the device I developed it on in play store

The reason given by a play support agent is :
"I've also found your app is not compatible with the Micromax Yurenka S due to a conflict in your app's manifest with the following:
No supported native platform:arm64-v8a, armeabi, armeabi-v7a"
I am pasting my manifest file below:
Can someone just point me what I am doing wrong.
<!-- Permissions for the app start -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<permission android:name="com.mypackage.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.mypackage.permission.C2D_MESSAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Permissions for the app end -->
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/NoActionBarTheme">
<receiver android:name="com.mixpanel.android.mpmetrics.GCMReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.mypackage" />
</intent-filter>
</receiver>
<!-- Bugsnag api key start -->
<meta-data
android:name="com.bugsnag.android.API_KEY"
android:value="5b9b5215b476a9a2c83c22f7bd62beb6" />
<!-- Bugsnag api key end -->
<activity android:name=".Controllers.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity
android:name=".Controllers.SplashActivity"
android:theme="#style/NoActionBarTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Controllers.SelectionActivity"
android:theme="#style/NoActionBarTheme" />
<activity android:name=".Controllers.LoginActivity" />
<activity android:name=".Controllers.SignUpStep1Activity" />
<activity android:name=".Controllers.ForgotPasswordActivity" />
<activity android:name=".Controllers.ForgotMembershipNumberActivity" />
<activity android:name=".Controllers.VerifyOtpActivity" />
<activity android:name=".Controllers.MobNoChangedActivity" />
<activity android:name=".Controllers.GetStartedActivity" />
<activity android:name=".Controllers.ForgotPasswordStep2Activity" />
<activity android:name=".Controllers.ForgotPasswordStep3Activity" />
<activity android:name=".Controllers.EventsListActivity" />
<activity android:name=".Controllers.EventsDetailActivity" />
<activity android:name=".Controllers.ProfileDetailActivity" />
<activity android:name=".Controllers.AnnouncementListActivity" />
<activity android:name=".Controllers.AnnouncementDetailActivity" />
<activity android:name=".Controllers.WebviewActivity" />
<activity
android:name=".Controllers.MemberDirectoryListActivity"
android:theme="#style/AppTheme" />
<activity android:name=".Controllers.MemberDirectoryDetailActivity" />
<activity android:name=".Controllers.IdCardActivity" />
<activity android:name=".Controllers.EditProfileActivity" />
<activity android:name=".Controllers.ChangePasswordActivity"></activity>
<activity android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:theme="#style/Base.Theme.AppCompat"/>
</application>
Atlast found the issue after spending 2 days. Check the post for more details. I am posting the answer for someone who might come in future. Android app is supported by 0 devices
Check your build.gradle file - if you see something like:
compile 'org.apache.directory.studio:org.apache.commons.codec:1.+'
change it to:
compile 'commons-codec:commons-codec:1.+'

INSTALL_PARSE_FAILED_MANIFEST_MALFORMED error while installing app android

I am facing the INSTALL_PARSE_FAILED_MANIFEST_MALFORMED error when trying to install my app.
I have gone through all the solutions available for this error on stack overflow. There is no capital letter in my mainfest file package name.
Can anyone point out what might be the problem?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.punchtech">
<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="25" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<application
android:name="com.punchtech.AppController"
android:allowBackup="true"
android:icon="#mipmap/new_logo"
android:label="#string/app_name"
android:theme="#style/LoginTheme">
<activity
android:name="com.punchtech.login_signup.MainActivity"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.punchtech.login_signup.Login_signup_Mainscreen" />
<activity android:name="com.punchtech.login_signup.Login_screen" />
<activity android:name="com.punchtech.login_signup.Signup_screen" />
<activity
android:name="com.punchtech.Bottombar_main"
android:theme="#style/ForFragment"
android:windowSoftInputMode="adjustPan" />
<activity android:name="com.punchtech.Main_Post" />
<activity android:name="com.punchtech.User_profile_all.Jump_userProfile" />
<activity
android:name="com.punchtech.CreatePunch.image_search_api"
android:theme="#style/create_community" />
<activity
android:name="com.punchtech.CreatePunch.Tag_selection_create_punch"
android:theme="#style/create_community" />
<activity
android:name="com.punchtech.CreatePunch.Create_punch"
android:theme="#style/create_community" />
<activity
android:name="com.punchtech.CreatePunch.select_Community"
android:theme="#style/create_community" />
<activity
android:name="com.punchtech.Home_communiy_all.tag_selection_main"
android:theme="#style/create_community" />
<activity
android:name="com.punchtech.User_profile_all.setting_user_profile"
android:theme="#style/create_community" />
<activity
android:name="com.punchtech.User_profile_all.user_profile_follow"
android:theme="#style/create_community" />
<activity
android:name="com.punchtech.User_profile_all.user_profile_edit"
android:theme="#style/create_community" />
<activity android:name="com.punchtech.Home_communiy_all.community_view_home_community" />
<activity
android:name="com.punchtech.Comment_all.Comment_post"
android:theme="#style/create_community" />
<activity
android:name="com.punchtech.Home_communiy_all.Create_Community_main"
android:theme="#style/create_community" />
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="#string/app_name"
android:theme="#android:style/Theme.Translucent.NoTitleBar" />
<meta-data android:name="android.support.multidex.MultiDexApplication" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
</application>
</manifest>
Your meta data is incorrect:
<meta-data android:name="android.support.multidex.MultiDexApplication" />
As stated in the api a meta-data tag is a name-value pair and needs a value or resource. It must be for example:
<meta-data android:name="android.support.multidex.MultiDexApplication"
android:value="#string/yourValue" />
or
<meta-data android:name="android.support.multidex.MultiDexApplication"
android:resource="#string/yourValue" />
Change this, delete your app from device, clean project and reinstall it.

google play says my app is incompatible on certain phones

I looked up all possibilities for this to be happening, but found no solution. The size of my apk is 7MB, size of the app goes upto 10Mb after installation. I have no bulky files in Raw folder, i have no raw folder at all for that matter. There are no features with requires-true. support all densities is true. support all screens is true. Even then, my app is not listed when searched from some devices, and incompatible on a few other. Why is this happening?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myapp.app"
android:versionCode="2"
android:versionName="1.1" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<permission
android:name="com.myapp.app.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="permission_name" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<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.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<!--
The following two permissions are not required to use
Google Maps Android API v2, but are recommended.
-->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<!-- <uses-feature -->
<!-- android:glEsVersion="0x00020000" -->
<!-- android:required="false" /> -->
<!-- <uses-feature -->
<!-- android:name="problem feature" -->
<!-- android:required="false" /> -->
<application
android:name="com.application.app.entity.GlobalData"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:largeHeap="true"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="#string/api_key" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name="org.application.app.squeakee.HomeActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="org.application.app.squeakee.SqueakeeMapListViewPager"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="org.application.app.squeakee.ActvityOffersPage"
android:screenOrientation="portrait" />
<activity
android:name="org.application.app.squeakee.MainActivityAlt"
android:screenOrientation="portrait" />
<activity
android:name="org.application.app.squeakee.ListOffers"
android:screenOrientation="portrait" />
<activity
android:name="org.application.app.squeakee.OfferDeatilsActivity"
android:screenOrientation="portrait" />
<activity
android:name="org.application.app.squeakee.MerchantActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="org.application.app.squeakee.ActvityReview"
android:screenOrientation="portrait" >
<intent-filter>
<data
android:host="reviewactvity"
android:scheme="squeekee-reviewactivity" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="org.application.app.squeakee.ImageDetailActivity"
android:screenOrientation="portrait"
android:theme="#style/AppDialog" />
<activity
android:name="org.application.app.squeakee.GetDirection"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustNothing|stateHidden" >
<intent-filter>
<data
android:host="myactivity"
android:scheme="squeekee-getDirection" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver android:name="com.commonsware.cwac.updater.WakefulReceiver" />
<receiver android:name="org.application.app.constant.AlarmSetter" />
<service android:name="com.commonsware.cwac.updater.UpdateService" />
<service android:name="org.application.app.squeakee.VersionCheckService" />
<service android:name="org.application.app.constant.ServiceSense" />
<activity
android:name="org.application.app.squeakee.ListOffersoffers"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="org.application.app.squeakee.BecomeAnOfferChampActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="org.application.app.squeakee.ProfileActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="org.application.app.squeakee.ActivityFeedback"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="org.application.app.squeakee.ActivityOfferAlerts"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="org.application.app.squeakee.ActivityListOfCategories"
android:screenOrientation="portrait" >
</activity>
</application>
</manifest>
may be you are using fragments some where like in google maps that you used, which make your app incompatible because it does not supported by api version 8.see here for api < 11.
Android - Fragment API for API level < 11
if you are using fragments only in google maps , then you can use supportfragment.
read here too.
http://developer.android.com/training/basics/fragments/creating.html

cannot run the google map original sample

I cannot run the sample google map app from google's website. I followed the instruction as it said and added my own API key. but still not working. help plz
this is the manifest I just changed the API key
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mapdemo"
android:versionCode="1"
android:versionName="1.0" >
<permission
android:name="com.example.mapdemo.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.mapdemo.permission.MAPS_RECEIVE" />
<!-- Copied from Google Maps Library/AndroidManifest.xml. -->
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<!-- External storage for caching. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- My Location -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<!-- Maps API needs OpenGL ES 2.0. -->
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<!-- End of copy. -->
<application
android:hardwareAccelerated="true"
android:icon="#drawable/ic_launcher"
android:label="#string/demo_title" >
<!-- You must insert your own Google Maps for Android API v2 key in here. -->
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="Here I put my API key" />
<activity android:name=".MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".BasicMapActivity"
android:label="#string/basic_map" />
<activity
android:name=".CameraDemoActivity"
android:label="#string/camera_demo" />
<activity
android:name=".EventsDemoActivity"
android:label="#string/events_demo" />
<activity
android:name=".GroundOverlayDemoActivity"
android:label="#string/groundoverlay_demo" />
<activity
android:name=".LayersDemoActivity"
android:label="#string/layers_demo" />
<activity
android:name=".LocationSourceDemoActivity"
android:label="#string/locationsource_demo" />
<activity
android:name=".MarkerDemoActivity"
android:label="#string/marker_demo" />
<activity
android:name=".OptionsDemoActivity"
android:label="#string/options_demo" />
<activity
android:name=".PolygonDemoActivity"
android:label="#string/polygon_demo" />
<activity
android:name=".PolylineDemoActivity"
android:label="#string/polyline_demo" />
<activity
android:name=".ProgrammaticDemoActivity"
android:label="#string/programmatic_demo" />
<activity
android:name=".TileOverlayDemoActivity"
android:label="#string/tile_overlay_demo" />
<activity
android:name=".UiSettingsDemoActivity"
android:label="#string/uisettings_demo" />
<activity
android:name=".RawMapViewDemoActivity"
android:label="#string/raw_mapview_demo" />
<activity
android:name=".RetainMapActivity"
android:label="#string/retain_map" />
<activity
android:name=".MultiMapDemoActivity"
android:label="#string/multi_map_demo" />
</application>
</manifest>
Include the library for android google maps inside the application on manifest file
<uses-library android:required="true" android:name="com.google.android.maps" />

Categories

Resources