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.
Related
Application being published on Play Store but cannot launch it.
My app is being downloaded on Play Store but cannot view it on the screen or see the logo anywhere. After installing, there is no 'Open" option either
The MainActivity has launch intent so i do not know what is the issue.
Here is my Manifest file.
<?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.blommaritime.app1">
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="#drawable/logo_pros"
android:label="BLOM Maritime"
android:roundIcon="#drawable/logo_pros"
android:supportsRtl="true"
android:theme="#style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name="com.blommaritime.app1.contact_us" />
<activity
android:name="com.blommaritime.app1.Projects"
android:parentActivityName="com.blommaritime.app1.MainActivity"
android:theme="#style/AppTheme.NoActionBar" />
<activity
android:name="com.blommaritime.app1.Water_slide"
android:parentActivityName="com.blommaritime.app1.Projects" />
<activity
android:name="com.blommaritime.app1.BW_offshore"
android:parentActivityName="com.blommaritime.app1.Projects" />
<activity
android:name="com.blommaritime.app1.Grand_Princess"
android:parentActivityName="com.blommaritime.app1.Projects" />
<activity
android:name="com.blommaritime.app1.ECGS_services"
android:parentActivityName="com.blommaritime.app1.Projects" />
<activity
android:name="com.blommaritime.app1.Hull_Mesh"
android:parentActivityName="com.blommaritime.app1.Projects" />
<activity
android:name="com.blommaritime.app1.About_us"
android:parentActivityName="com.blommaritime.app1.MainActivity"
android:theme="#style/AppTheme.NoActionBar" />
<activity
android:name="com.blommaritime.app1.Services_Home"
android:parentActivityName="com.blommaritime.app1.MainActivity"
android:theme="#style/AppTheme.NoActionBar" />
<activity android:name="com.blommaritime.app1.Clients" />
<activity
android:name="com.blommaritime.app1.ECGS"
android:parentActivityName="com.blommaritime.app1.Services_Home" />
<activity
android:name="com.blommaritime.app1.NUbes"
android:parentActivityName="com.blommaritime.app1.Services_Home" />
<activity
android:name="com.blommaritime.app1.Naval_Architecture"
android:parentActivityName="com.blommaritime.app1.Services_Home" />
<activity
android:name="com.blommaritime.app1.Laser_scanning"
android:parentActivityName="com.blommaritime.app1.Services_Home" />
<activity
android:name="com.blommaritime.app1.engineering"
android:parentActivityName="com.blommaritime.app1.Services_Home"
android:theme="#style/AppTheme.NoActionBar" />
<activity
android:name="com.blommaritime.app1.MainActivity"
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="preloaded_fonts"
android:resource="#array/preloaded_fonts" />
</application>
</manifest>!
[this is what it looks like when the app is searched for in the phone]
(https://i.stack.imgur.com/hvazH.jpg)
I'm trying to convert my app to Instant app. I create the base module but my manifest giving some error. I tried a lot. Is this is a plugin error or any third party library issue which I am using?
I am attaching here my Manifest file of base module and app module. Please help me to resolve this issue.
ManifestFileOFBaseModule:
`<?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="blast.com.lovethisplace">
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="Manifest.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.BATTERY_STATS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<application
android:name=".Myapplication"
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="#mipmap/app_logo"
android:label="#string/app_name"
android:largeHeap="true"
android:theme="#style/MyMaterialTheme">
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<!-- Google api -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="#string/google_server_api_key" />
<!-- Facebook app -->
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/fb_id" />
<activity
android:name=".activity.SplashActivity"
android:label="#string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:theme="#style/Base.Theme.AppCompat" />
<activity
android:name=".activity.StartActivity"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.StickerActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".activity.CameraActivity"
android:launchMode="singleTop"
android:screenOrientation="portrait" />
<activity
android:name=".activity.ImageStickerActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" />
<activity
android:name=".activity.GoogleSearchActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name=".activity.PreviewActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.FullImageActivity"
android:screenOrientation="portrait" />
<activity
android:name=".activity.PromoteActivity"
android:screenOrientation="portrait" />
<activity android:name=".activity.EarnPromoteActivity" />
<activity android:name=".activity.PaidPromoteActivity" />
<activity
android:name=".activity.FilterActivity"
android:screenOrientation="portrait" />
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="#string/app_name"
/>
<activity android:name=".activity.HelpWebActivity" />
<activity android:name=".activity.AboutWebActivity" />
<activity android:name=".activity.TellAFriendWebActivity" />
<service android:name=".service.GPSTracker" />
<provider
android:name="com.facebook.FacebookContentProvider" android:authorities="com.facebook.app.FacebookContentProvider967904406680696"
android:exported="true"
tools:replace="android:authorities"
/>
<!-- Fabric api -->
<meta-data
android:name="io.fabric.ApiKey"
android:value="#string/fabric_id" />
<activity android:name=".activity.InvitePlaceScreen">
</activity>
</application>
</manifest>`
ManfiestAppModule:
`<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.blastapk">
</manifest>`
Thank you
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
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>
I have added the cwac-cam2 library to my project and I uploaded it in the play store. All seems to be good, but when I look my app in the play store from a nexus 7, the app says that isn't compatible with my device. Have you ever had a similar issue? I've read that could be the android permissions, but I didn't add new permissions. This is my AndroidManifest file.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.waiter.android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<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.CALL_PHONE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
<uses-sdk tools:overrideLibrary="com.commonsware.cwac.cam2, com.github.clans.fab" />
<application
android:name="com.waiter.android.WaiterApplication"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:largeHeap="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id"/>
<meta-data
android:name="AA_DB_NAME"
android:value="waiter.db" />
<meta-data
android:name="AA_DB_VERSION"
android:value="3" />
<activity
android:name="com.waiter.android.HomeActivity"
android:label="#string/app_name"
android:alwaysRetainTaskState="true"
android:screenOrientation="sensorPortrait"
android:windowSoftInputMode="stateHidden">
</activity>
<activity
android:name="com.waiter.android.CommentsActivity"
android:label="#string/app_name"
android:alwaysRetainTaskState="true"
android:screenOrientation="sensorPortrait"
android:windowSoftInputMode="stateHidden" >
</activity>
<activity
android:name="com.waiter.android.SplashActivity"
android:label="#string/app_name"
android:alwaysRetainTaskState="true"
android:screenOrientation="sensorPortrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.commonsware.cwac.cam2.CameraActivity"
android:theme="#style/AppTheme"
android:process=":cwac_cam2"/>
<!-- Google Tag Manager Preview Activity -->
<activity
android:name="com.google.tagmanager.PreviewActivity"
android:label="#string/app_name"
android:noHistory="true" > <!-- Optional, removes the PreviewActivity from activity stack. -->
<intent-filter>
<data android:scheme="tagmanager.c.com.waiter.android" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
<activity android:name="net.hockeyapp.android.UpdateActivity" />
<!--Facebook login Activity-->
<activity android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:theme="#android:style/Theme.Translucent.NoTitleBar"
android:label="#string/app_name"/>
</application>
Thanks!