Manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.piggybank">
<activity
android:name="c.b.a.A"
android:configChanges="orientation|keyboardHidden|navigation"
android:exported="false"
android:screenOrientation="behind"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name="c.b.a.B"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Translucent"/>
<!-- 允许联网 -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- 获取wifi网络状态的信息 -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<!-- 保持CPU 运转,屏幕和键盘灯有可能是关闭的,用于文件上传和下载 -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- 获取sd卡写的权限,用于文件上传和下载 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- 允许读取手机状态 用于创建BmobInstallation -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<!-- android:hardwareAccelerated="false"66666 -->
<activity android:name=".MainActivity1">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity2"
android:label="#string/title_activity_main2"
android:theme="#style/AppTheme.NoActionBar" />
<activity android:name=".EditWishMainActivity" />
<activity android:name=".personalMainActivity" />
<activity android:name=".registMainActivity" />
<activity android:name=".BankMainActivity" />
<activity android:name=".PayMainActivity" />
<activity android:name=".MainActivity" />
<activity android:name=".fragment.WishFragment" />
<activity android:name=".fragment.SuccessFragment" />
<activity android:name=".fragment.DiscoverFragment" />
<activity android:name=".fragment.MeFragment" />
<activity android:name=".fragment.jingxuan_fragment" />
<activity android:name=".fragment.Mytidings_fragment" />
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="#xml/provider_paths" />
</provider>
<activity android:name=".EditDotaiMainActivity" />
<activity android:name=".QianBaoMainActivity"></activity>
</application>
</manifest>
When I build the apk, it keeps making this error,but I cannot find the reason...I don't think I put an activity in an activity, but the error is there...
Error:(5) Error: The element must be a direct child of the
element [WrongManifestParent] Error:(12) Error: The element must be a direct child of the element
[WrongManifestParent]
Try adding the activities inside your Apllication tag
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.piggybank">
<!-- 允许联网 -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- 获取GSM(2g)、WCDMA(联通3g)等网络状态的信息 -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- 获取wifi网络状态的信息 -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<!-- 保持CPU 运转,屏幕和键盘灯有可能是关闭的,用于文件上传和下载 -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- 获取sd卡写的权限,用于文件上传和下载 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- 允许读取手机状态 用于创建BmobInstallation -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<!-- android:hardwareAccelerated="false"66666 -->
<activity android:name=".MainActivity1">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="c.b.a.A"
android:configChanges="orientation|keyboardHidden|navigation"
android:exported="false"
android:screenOrientation="behind"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name="c.b.a.B"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Translucent"/>
<activity
android:name=".MainActivity2"
android:label="#string/title_activity_main2"
android:theme="#style/AppTheme.NoActionBar" />
<activity android:name=".EditWishMainActivity" />
<activity android:name=".personalMainActivity" />
<activity android:name=".registMainActivity" />
<activity android:name=".BankMainActivity" />
<activity android:name=".PayMainActivity" />
<activity android:name=".MainActivity" />
<activity android:name=".fragment.WishFragment" />
<activity android:name=".fragment.SuccessFragment" />
<activity android:name=".fragment.DiscoverFragment" />
<activity android:name=".fragment.MeFragment" />
<activity android:name=".fragment.jingxuan_fragment" />
<activity android:name=".fragment.Mytidings_fragment" />
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="#xml/provider_paths" />
</provider>
<activity android:name=".EditDotaiMainActivity" />
<activity android:name=".QianBaoMainActivity"></activity>
</application>
also please refer https://developer.android.com/guide/topics/manifest/manifest-intro.html
Try this
you have to declare activity inside application like this.
I think you have to close the tag of </manifest>
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns :android="http://schemas.android.co
m /apk/res/android"
package="com.example.piggybank">
<!-- 允许联网 -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- 获取GSM(2g)、WCDMA(联通3g)等网络状态的信息 -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- 获取wifi网络状态的信息 -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<!-- 保持CPU 运转,屏幕和键盘灯有可能是关闭的,用于文件上传和下载 -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- 获取sd卡写的权限,用于文件上传和下载 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- 允许读取手机状态 用于创建BmobInstallation -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<!-- android:hardwareAccelerated="false"66666 -->
<activity android:name=".MainActivity1">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity2"
android:label="#string/title_activity_main2"
android:theme="#style/AppTheme.NoActionBar" />
<activity android:name=".EditWishMainActivity" />
<activity android:name=".personalMainActivity" />
<activity android:name=".registMainActivity" />
<activity android:name=".BankMainActivity" />
<activity android:name=".PayMainActivity" />
<activity android:name=".MainActivity" />
<activity android:name=".fragment.WishFragment" />
<activity android:name=".fragment.SuccessFragment" />
<activity android:name=".fragment.DiscoverFragment" />
<activity android:name=".fragment.MeFragment" />
<activity android:name=".fragment.jingxuan_fragment" />
<activity android:name=".fragment.Mytidings_fragment" />
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="#xml/provider_paths" />
</provider>
<activity android:name=".EditDotaiMainActivity" />
<activity android:name=".QianBaoMainActivity">. </activity>
<activity
android:name="c.b.a.A"
android:configChanges="orientation|keyboardHidden|navigation"
android:exported="false"
android:screenOrientation="behind"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name="c.b.a.B"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Translucent"/>
</application>
</manifest>
Related
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>
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 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 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.
Im getting an error in my manifest file.
Parser exception for /Cheve En Breve App/AndroidManifest.xml: Attribute name "andrcom.chevenbreve.app.libraries.ServiceNotification" associated with an element type "service" must be followed by the ' = ' character.
Can't seem to get it fixed, any suggestions?
<?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.chevenbreve.app"
android:versionCode="7"
android:versionName="2.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET"/>
<!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- This app has permission to register and receive data message. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- Creates a custom permission so only this app can receive its messages. -->
<permission
android:name="com.chevenbreve.app.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.chevenbreve.app.permission.C2D_MESSAGE" />
<!-- Permission to vibrate -->
<uses-permission android:name="android.permission.VIBRATE" />
<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"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!-- change com.pongodev.perkututapp with your own package name -->
<permission
android:name="com.chevenbreve.app.permission.MAPS_RECEIVE"
android:protectionLevel="signature"/>
<uses-permission android:name="com.chevenbreve.app.permission.MAPS_RECEIVE"/>
<!-- Maps API needs OpenGL ES 2.0. -->
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<!-- End of copy. -->
<application
android:allowBackup="true"
android:icon="#drawable/ic_share"
android:label="#string/app_name"
android:logo="#drawable/logo"
android:theme="#style/Theme.Apptheme" >
<!-- Admob -->
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version"/>
<!-- 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="AIzaSyC29XS3jhhrZGOh3wdSN5iDZeRELhavI4E"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version"/>
<activity
android:name="com.chevenbreve.app.ActivitySplash"
android:label="#string/app_name"
android:theme="#style/Theme.Apptheme.NoActionBar"
android:noHistory="true"
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.chevenbreve.app.ActivityHome"
android:screenOrientation="portrait"
android:label="#string/app_name" >
<meta-data android:name="android.app.default_searchable"
android:value="com.chevenbreve.app.ActivitySearch" />
</activity>
<activity
android:name="com.chevenbreve.app.ActivitySearch"
android:screenOrientation="portrait">
<intent-filter >
<action android:name="android.intent.action.SEARCH"/>
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="#xml/searchable"/>
</activity>
<activity
android:name="com.chevenbreve.app.ActivityPlaceAroundYou"
android:screenOrientation="portrait"
android:label="#string/page_around_you" />
<activity
android:name="com.chevenbreve.app.ActivityCategory"
android:screenOrientation="portrait"
android:label="#string/page_category" />
<activity
android:name="com.chevenbreve.app.ActivityPlaceList"
android:screenOrientation="portrait"
android:label="#string/page_place_list" />
<activity
android:name="com.chevenbreve.app.ActivityDetailPlace"
android:screenOrientation="portrait"
android:label="#string/page_detail_place" />
<activity
android:name="com.chevenbreve.app.ActivitySetting"
android:screenOrientation="portrait"
android:label="#string/page_setting" />
<activity
android:name="com.chevenbreve.app.ActivityShare"
android:label="#string/page_share" />
<activity
android:name="com.chevenbreve.app.ActivityAbout"
android:label="#string/page_about" />
<activity
android:name="com.chevenbreve.app.ActivityDirection"
android:label="#string/direction" />
<activity
android:name="com.chevenbreve.app.ActivityBrowser"
android:screenOrientation="portrait"
android:label="#string/app_name"
android:uiOptions="splitActionBarWhenNarrow" >
<meta-data android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name="com.facebook.LoginActivity"
android:theme="#android:style/Theme.Translucent.NoTitleBar"
android:label="#string/app_name" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="#string/facebook_app_id"/>
<provider android:name="com.chevenbreve.app.libraries.SuggestionProvider" com.chevenbreve.app.libraries.SuggestionProviderrities="com.chevenbreve.app.libraries.SuggestionProvider"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
<service android:name="com.chevenbreve.app.libraries.ServiceNotification" andrcom.chevenbreve.app.libraries.ServiceNotification
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.chevenbreve.app" />
</intent-filter>
</receiver>
<service android:name="com.chevenbreve.app.GCMIntentService"/>
</application>
</manifest>
Your manifest.xml contains some obvious mistakes, I have corrected it for you, use the following code instead:
<?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.chevenbreve.app"
android:versionCode="7"
android:versionName="2.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET"/>
<!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- This app has permission to register and receive data message. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- Creates a custom permission so only this app can receive its messages. -->
<permission
android:name="com.chevenbreve.app.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.chevenbreve.app.permission.C2D_MESSAGE" />
<!-- Permission to vibrate -->
<uses-permission android:name="android.permission.VIBRATE" />
<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"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!-- change com.pongodev.perkututapp with your own package name -->
<permission
android:name="com.chevenbreve.app.permission.MAPS_RECEIVE"
android:protectionLevel="signature"/>
<uses-permission android:name="com.chevenbreve.app.permission.MAPS_RECEIVE"/>
<!-- Maps API needs OpenGL ES 2.0. -->
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<!-- End of copy. -->
<application
android:allowBackup="true"
android:icon="#drawable/ic_share"
android:label="#string/app_name"
android:logo="#drawable/logo"
android:theme="#style/Theme.Apptheme" >
<!-- Admob -->
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version"/>
<!-- 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="AIzaSyC29XS3jhhrZGOh3wdSN5iDZeRELhavI4E"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version"/>
<activity
android:name="com.chevenbreve.app.ActivitySplash"
android:label="#string/app_name"
android:theme="#style/Theme.Apptheme.NoActionBar"
android:noHistory="true"
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.chevenbreve.app.ActivityHome"
android:screenOrientation="portrait"
android:label="#string/app_name" >
<meta-data android:name="android.app.default_searchable"
android:value="com.chevenbreve.app.ActivitySearch" />
</activity>
<activity
android:name="com.chevenbreve.app.ActivitySearch"
android:screenOrientation="portrait">
<intent-filter >
<action android:name="android.intent.action.SEARCH"/>
</intent-filter>
<meta-data
android:name="android.app.searchable"
android:resource="#xml/searchable"/>
</activity>
<activity
android:name="com.chevenbreve.app.ActivityPlaceAroundYou"
android:screenOrientation="portrait"
android:label="#string/page_around_you" />
<activity
android:name="com.chevenbreve.app.ActivityCategory"
android:screenOrientation="portrait"
android:label="#string/page_category" />
<activity
android:name="com.chevenbreve.app.ActivityPlaceList"
android:screenOrientation="portrait"
android:label="#string/page_place_list" />
<activity
android:name="com.chevenbreve.app.ActivityDetailPlace"
android:screenOrientation="portrait"
android:label="#string/page_detail_place" />
<activity
android:name="com.chevenbreve.app.ActivitySetting"
android:screenOrientation="portrait"
android:label="#string/page_setting" />
<activity
android:name="com.chevenbreve.app.ActivityShare"
android:label="#string/page_share" />
<activity
android:name="com.chevenbreve.app.ActivityAbout"
android:label="#string/page_about" />
<activity
android:name="com.chevenbreve.app.ActivityDirection"
android:label="#string/direction" />
<activity
android:name="com.chevenbreve.app.ActivityBrowser"
android:screenOrientation="portrait"
android:label="#string/app_name"
android:uiOptions="splitActionBarWhenNarrow" >
<meta-data android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity android:name="com.facebook.LoginActivity"
android:theme="#android:style/Theme.Translucent.NoTitleBar"
android:label="#string/app_name" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="#string/facebook_app_id"/>
<provider android:name="com.chevenbreve.app.libraries.SuggestionProvider" android:authorities="com.chevenbreve.app.libraries.SuggestionProvider"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
<service android:name="com.chevenbreve.app.libraries.ServiceNotification"
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.chevenbreve.app" />
</intent-filter>
</service>
<service android:name="com.chevenbreve.app.GCMIntentService"/>
</application>
</manifest>