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>
Related
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>
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>
Push notification not working in my app.
When I send push notification it show message as below:
GCM HTTP status: 200
GCM response body: {"multicast_id":5052582973644051315,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"NotRegistered"}]}
My menifest code is as below:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.scryp">
<permission
android:name="com.scryp.permission.MAPS_RECEIVE"
android:protectionLevel="signature"></permission>
<uses-permission android:name="com.skryp.permission.MAPS_RECEIVE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<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.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="com.example.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.gcm.permission.C2D_MESSAGE" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<application
android:name=".activities.SkrypApplication"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme">
<activity
android:name="com.scryp.activities.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>
<service
android:name="com.scryp.activities.PushNotificationService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<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="com.scryp.activities" />
</intent-filter>
</receiver>
<activity
android:name="com.scryp.activities.LoginActivity"
android:label="#string/title_activity_login"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateAlwaysHidden" />
<activity
android:name="com.scryp.activities.SignupActivity"
android:label="#string/title_activity_signup"
android:screenOrientation="portrait" />
<activity
android:name="com.scryp.activities.ForgotPasswordActivity"
android:label="#string/title_activity_forgot_password"
android:screenOrientation="portrait" />
<activity
android:name="com.scryp.activities.ProfileActivity"
android:label="#string/title_activity_profile"
android:screenOrientation="portrait" />
<activity
android:name="com.scryp.activities.CouponActivity"
android:label="#string/title_activity_coupon"
android:screenOrientation="portrait" />
<activity
android:name="com.scryp.activities.HomeActivity"
android:label="#string/title_activity_home"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.scryp.activities.CouponDetailActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name="com.scryp.activities.DownloadCouponActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name="com.scryp.activities.TutorialActivity"
android:screenOrientation="portrait"></activity>
<activity android:name="com.facebook.FacebookActivity" />
<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="AIzaSyB4rU0s2yS-3RGu5GQOb_L_JG6_H5toy60" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id" />
</application>
</manifest>
<permission android:name="com.example.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.gcm.permission.C2D_MESSAGE" />
Change com.example.gcm to com.scryp:
I experience this error when trying to test the app on my phone on Run. I dunno why this error pop out but I have try to do some fix based based on some solution from stack but it is not working.
my pkg: /data/local/tmp/com.example.wolex_000.freesim
MY Manifest code is:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.chat.freshim"
android:versionCode="1"
android:versionName="0.1" >
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- FOR QB -->
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.FLASHLIGHT"/>
<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
<uses-feature android:name="android.hardware.camera.flash"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<!-- For GCM -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<!-- For GCM
<permission android:name=".permission.C2D_MESSAGE"
android:protectionLevel="signature" /> -->
<uses-permission android:name=".permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<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_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:icon="#drawable/icon_fresh"
android:label="fssl"
android:theme="#style/MyTheme">
<activity
android:name="com.chat.freshim.LoginActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"
android:label="fssl"
android:theme="#style/NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.chat.freshim.FriendsListActivity"
android:screenOrientation="portrait"
android:launchMode="singleTask"
android:theme="#style/NoActionBar"/>
<activity
android:name="com.chat.freshim.FriendsAllListActivity"
android:screenOrientation="portrait"
android:launchMode="singleTask"/>
<activity
android:name="com.chat.freshim.FriendsDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.RegisterActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.UserDetailActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.StatusActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.SettingsActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.EditProfileActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.EditPasswordActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.GroupCreateActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.GroupListActivity"
android:screenOrientation="portrait"
android:launchMode="singleTask"/>
<activity
android:name="com.chat.freshim.GroupMessageDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.GroupChooseFriendListActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.GroupDetailActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.GroupEditMemberListActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.UploadFileActivity"
android:screenOrientation="portrait"/>
<activity
android:name="com.chat.freshim.CountryCodesActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.InviteFriends"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<activity
android:name="com.chat.freshim.AddContactFriend"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"/>
<!-- QB ACTIVITY AND SERVICES -->
<activity
android:name="com.chat.freshim.qb.ActivityVideoChat"
android:label="fssl"
android:screenOrientation="portrait"
android:theme="#style/NoActionBar"/>
<activity
android:name="com.chat.freshim.qb.ActivityCallUser"
android:label="fssl"
android:screenOrientation="portrait"/>
<service android:name="com.quickblox.module.videochat.core.service.QBVideoChatService"/>
<!-- For GCM -->
<receiver
android:name="com.chat.freshim.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.chat.imapp" />
</intent-filter>
</receiver>
<service android:name="com.chat.freshim.services.GcmIntentService" />
<service android:name="com.chat.freshim.services.LoadImageService" />
<service android:name="com.chat.freshim.services.LoadFileService" />
<service android:name="com.chat.freshim.services.ResponseRequestService" />
<service android:name="com.chat.freshim.services.FriendRequestService" />
<service android:name="com.chat.freshim.services.DownLoadFileService" />
<service android:name="com.chat.freshim.services.DownloadImageService" />
<service android:name="com.chat.freshim.services.LastSeenGetService" />
<service android:name="com.chat.freshim.services.LastSeenSetService" />
<service android:name="com.chat.freshim.services.QbRegisterService" />
<!--service android:name="com.quickblox.module.chat.videochat.VideoChatService"/-->
<!-- For GCM -->
<meta-data
android:name="com.google.android.gms.version"
/>
</application>
I have try some help but have not get the solution to it.
Your <meta-data> tag is missing the required android:value entry. It should read:
<meta-data android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
Try removing this line :
<meta-data
android:name="com.google.android.gms.version"
/>