Im trying to change the apk targetsdkversion to 30 so i can upload it to google play and im using apk easy tool to change it but after changing it the app keeps crashing after i open it and i dont know why it keeps crashing. any help is welcome
This is my android manifest file and i cant understand why it keeps crashing if i try to use sdk 29 it works but when i put 30 it crashes
<?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.dancingskye.rollingsky" platformBuildVersionCode="30" platformBuildVersionName="11">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:xlargeScreens="true"/>
<meta-data android:name="CMPLAY_SYNC_IPC" android:value="com.cmplay.kinfoc.sync"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="com.android.vending.BILLING"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-feature android:glEsVersion="0x00020000"/>
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false"/>
<uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false"/>
<uses-permission android:name="com.android.vending.CHECK_LICENSE"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>>
<meta-data android:name="android.support.VERSION" android:value="25.3.1"/>
<application android:allowBackup="false" android:icon="#drawable/app_icon" android:label="#string/app_name" android:largeHeap="true" android:name="com.dancingskye.rollingsky.GameApp" android:supportsRtl="true" android:testOnly="false">
<meta-data android:name="SET_PROMOTION_LOG" android:value="false"/>
<meta-data android:name="unity.build-id" android:value="51ab80af-cbe7-4e4b-8493-de4a37a54b1f"/>
<meta-data android:name="unity.splash-mode" android:value="2"/>
<meta-data android:name="unity.splash-enable" android:value="true"/>
<meta-data android:name="android.max_aspect" android:value="2.1"/>
<activity android:configChanges="fontScale|keyboard|keyboardHidden|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:label="#string/app_name" android:launchMode="singleTop" android:name="com.dancingskye.rollingsky.AppActivity" android:screenOrientation="sensorPortrait">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
</intent-filter>
<meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="true"/>
<meta-data android:name="unityplayer.UnityActivity" android:value="true"/>
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true"/>
</activity>
<receiver android:exported="true" android:name="com.appsflyer.MultipleInstallBroadcastReceiver">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER"/>
</intent-filter>
</receiver>
<receiver android:exported="true" android:name="com.dancingskye.rollingsky.notification.Level8NoticationBroadcast">
<intent-filter>
<action android:name="Level8NoticationBroadcast_Action"/>
</intent-filter>
</receiver>
<receiver android:exported="true" android:name="com.dancingskye.rollingsky.notification.NotificationDeletedBroadcast">
<intent-filter>
<action android:name="NotificationDeletedBroadcast_Action"/>
</intent-filter>
</receiver>
<meta-data android:name="com.google.android.gms.version" android:value="#integer/google_play_services_version"/>
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="7.1881595E11"/>
<activity android:configChanges="orientation|screenSize" android:name="com.applovin.adview.AppLovinInterstitialActivity"/>
<activity android:configChanges="orientation|screenSize" android:name="com.applovin.adview.AppLovinConfirmationActivity"/>
<meta-data android:name="applovin.sdk.key" android:value="UdAAPq-zrVhcaaKovlmPEn8qXmrUnzGFbRP_FOz5uehTE0G7l0X-nfpJPepBc3QCVrClEAr7qWa2XsAHshGdM4"/>
<meta-data android:name="applovin.sdk.verbose_logging" android:value="false"/>
<activity android:configChanges="keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize" android:launchMode="singleTop" android:name="com.vuugle.warren.ui.VuugleActivity" android:theme="#style/vuugle_theme"/>
<activity android:configChanges="keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize" android:hardwareAccelerated="true" android:launchMode="singleTop" android:name="com.vuugle.warren.ui.VuugleFlexViewActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.mopub.common.privacy.ConsentDialogActivity"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.mopub.common.MoPubBrowser"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.mopub.mobileads.MoPubActivity"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.mopub.mobileads.MraidActivity"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.mopub.mobileads.RewardedMraidActivity"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.mopub.mobileads.MraidVideoPlayerActivity"/>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" android:exported="false" android:name="com.google.android.gms.ads.AdActivity" android:theme="#android:style/Theme.Translucent"/>
<receiver android:exported="true" android:name="com.dancingskye.rollingsky.CMCampaignTrackingReceiver">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER"/>
</intent-filter>
</receiver>
<service android:name="com.dancingskye.rollingsky.commons.RollingSkyService" android:process=":service"/>
<activity android:configChanges="orientation" android:exported="true" android:label="#string/app_name" android:name="com.dancingskye.rollingsky.webview.ui.WebViewActivity" android:screenOrientation="portrait"/>
<receiver android:exported="true" android:name="com.dancingskye.rollingsky.webview.broadcast.GameBroadcast">
<intent-filter>
<action android:name="com.dancingskye.rollingsky.webview.broadcast.gamebroadcast"/>
</intent-filter>
</receiver>
<receiver android:exported="true" android:name="com.dancingskye.rollingsky.webview.broadcast.WebBroadcast">
<intent-filter>
<action android:name="com.dancingskye.rollingsky.webview.broadcast.WebBroadcast"/>
</intent-filter>
</receiver>
<provider android:authorities="com.dancingskye.rollingsky.ipc_provider" android:exported="false" android:name="com.dancingskye.rollingsky.ipc.IpcProvider" android:process=":service"/>
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="#string/facebook_app_id"/>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize" android:label="#string/app_name" android:name="com.facebook.FacebookActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.facebook.ads.InterstitialAdActivity"/>
<provider android:authorities="com.facebook.app.FacebookContentProvider1082192450000087" android:exported="true" android:name="com.facebook.FacebookContentProvider"/>
<provider android:authorities="com.dancingskye.rollingsky.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="#xml/provider_paths"/>
</provider>
<service android:name="com.cmplay.kinfoc.report.service.KinfocReportSerivce" android:process=":service">
<intent-filter>
<action android:name="start_service"/>
</intent-filter>
</service>
<receiver android:name="com.cmplay.kinfoc.report.service.NetWorkChangeReceiver" android:process=":service">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>
</receiver>
<service android:name="com.cmplay.internalpush.InnerPushService" android:process=":service"/>
<provider android:authorities="com.dancingskye.rollingsky.innerpush_provider" android:exported="false" android:name="com.cmplay.base.util.ipc.IpcProvider" android:process=":service"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:launchMode="singleTask" android:name="com.cmplay.internalpush.ui.OpenScreenActivity" android:screenOrientation="sensorPortrait" android:theme="#style/innerpush_theme" android:windowSoftInputMode="adjustResize"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:hardwareAccelerated="true" android:launchMode="singleTask" android:name="com.cmplay.internalpush.ui.OpenScreenVideoActivity" android:screenOrientation="sensorPortrait" android:theme="#style/innerpush_theme" android:windowSoftInputMode="adjustResize"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:launchMode="singleTask" android:name="com.cmplay.internalpush.ui.InsertScreenActivity" android:screenOrientation="sensorPortrait" android:theme="#style/innerpush_theme" android:windowSoftInputMode="adjustResize"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:hardwareAccelerated="true" android:launchMode="singleTask" android:name="com.cmplay.internalpush.video.IncentiveVideoPlayActivity" android:process=":inner" android:theme="#style/innerpush_theme"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:launchMode="singleTask" android:name="com.cmplay.internalpush.video.VideoAdDetailActivity" android:process=":inner" android:theme="#style/innerpush_theme"/>
<activity android:configChanges="orientation|screenSize" android:hardwareAccelerated="true" android:name="com.ironsource.sdk.controller.ControllerActivity"/>
<activity android:configChanges="orientation|screenSize" android:hardwareAccelerated="true" android:name="com.ironsource.sdk.controller.InterstitialActivity" android:theme="#android:style/Theme.Translucent"/>
<activity android:configChanges="orientation|screenSize" android:hardwareAccelerated="true" android:name="com.ironsource.sdk.controller.OpenUrlActivity" android:theme="#android:style/Theme.Translucent"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.dancingskye.rollingsky.ad.interstitial.admob.AdmobTestActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<activity android:configChanges="fontScale|keyboard|keyboardHidden|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:hardwareAccelerated="true" android:name="com.unity3d.ads.adunit.AdUnitActivity" android:theme="#android:style/Theme.NoTitleBar.Fullscreen"/>
<activity android:configChanges="fontScale|keyboard|keyboardHidden|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:hardwareAccelerated="true" android:name="com.unity3d.ads.adunit.AdUnitTransparentActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<activity android:configChanges="fontScale|keyboard|keyboardHidden|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:hardwareAccelerated="false" android:name="com.unity3d.ads.adunit.AdUnitTransparentSoftwareActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<activity android:configChanges="fontScale|keyboard|keyboardHidden|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:hardwareAccelerated="false" android:name="com.unity3d.ads.adunit.AdUnitSoftwareActivity" android:theme="#android:style/Theme.NoTitleBar.Fullscreen"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.facebook.ads.AudienceNetworkActivity"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.applovin.sdk.AppLovinWebViewActivity"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.aiming.mdt.adt.video.VideoActivity" android:screenOrientation="user" android:theme="#android:style/Theme.Black.NoTitleBar.Fullscreen"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.aiming.mdt.adt.interstitial.InterstitialActivity" android:screenOrientation="user" android:theme="#android:style/Theme.Black.NoTitleBar.Fullscreen"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:name="com.aiming.mdt.adt.interactive.InteractiveActivity" android:screenOrientation="portrait" android:theme="#android:style/Theme.Black.NoTitleBar.Fullscreen"/>
<activity android:configChanges="keyboardHidden|screenSize" android:name="com.aiming.mdt.adt.AdtActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:hardwareAccelerated="true" android:name="com.tapjoy.TJAdUnitActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:hardwareAccelerated="true" android:name="com.tapjoy.TJContentActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar"/>
<activity android:configChanges="keyboardHidden|orientation|screenSize" android:excludeFromRecents="true" android:hardwareAccelerated="true" android:name="com.chartboost.sdk.CBImpressionActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<receiver android:exported="true" android:name="com.tapjoy.InstallReferrerReceiver">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER"/>
</intent-filter>
</receiver>
<receiver android:name="com.tapjoy.TapjoyReceiver"/>
<activity android:configChanges="orientation|screenSize" android:name="com.youappi.sdk.AdActivity"/>
<receiver android:exported="true" android:name="com.cmplay.base.util.webview.broadcast.GameBroadcast">
<intent-filter>
<action android:name="com.cmplay.base.util.webview.broadcast.gamebroadcast"/>
</intent-filter>
</receiver>
<receiver android:exported="true" android:name="com.cmplay.base.util.webview.broadcast.WebBroadcast" android:process=":web">
<intent-filter>
<action android:name="com.cmplay.base.util.webview.broadcast.WebBroadcast"/>
</intent-filter>
</receiver>
<receiver android:name="com.cmplay.base.util.notify.NotifyReceiver">
<intent-filter>
<action android:name="com.cmplay.base.util.notify"/>
</intent-filter>
</receiver>
<activity android:name="com.cmplay.gppay.UnityPayActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<receiver android:enabled="true" android:exported="false" android:name="com.google.android.gms.analytics.AnalyticsReceiver"/>
<service android:enabled="true" android:exported="false" android:name="com.google.android.gms.analytics.AnalyticsService"/>
<service android:enabled="true" android:exported="false" android:name="com.google.android.gms.analytics.AnalyticsJobService" android:permission="android.permission.BIND_JOB_SERVICE"/>
<activity android:exported="false" android:name="com.google.android.gms.common.api.GoogleApiActivity" android:theme="#android:style/Theme.Translucent.NoTitleBar"/>
<activity android:exported="true" android:name="com.facebook.CustomTabActivity"/>
<activity android:label="Test By Network" android:name="com.google.ads.mediation.testsuite.activities.NetworkListActivity"/>
<activity android:label="Test Network Adapter" android:name="com.google.ads.mediation.testsuite.activities.NetworkDetailActivity" android:windowSoftInputMode="stateAlwaysHidden"/>
<activity android:label="Native Ad Preview" android:name="com.google.ads.mediation.testsuite.activities.NativeAdActivity"/>
<activity android:label="AdMob Mediation Test Suite" android:name="com.google.ads.mediation.testsuite.activities.InitialActivity"/>
<activity android:label="Test By Ad Unit" android:name="com.google.ads.mediation.testsuite.activities.AdUnitListActivity"/>
<activity android:label="Please select a country" android:name="com.google.ads.mediation.testsuite.activities.CountryListActivity"/>
</application>
Related
<?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.video.maker1">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE" />
<application
android:name="com.video.maker1.MyApplication"
android:allowBackup="true"
android:extractNativeLibs="true"
android:hardwareAccelerated="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:largeHeap="true"
android:networkSecurityConfig="#xml/network_security_config"
android:requestLegacyExternalStorage="true"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/theme"
android:usesCleartextTraffic="true"
>
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-9731420309932281~3771749504" />
<!-- <activity-->
<!-- android:name="com.facebook.ads.AudienceNetworkActivity"-->
<!-- android:hardwareAccelerated="true" />-->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="true"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="#xml/provider_paths" />
</provider>
<activity
android:name="com.video.maker1.activity.SplashActivity"
android:exported="true"
android:screenOrientation="nosensor">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.video.maker1.activity.MainActivity"
android:exported="true"
android:screenOrientation="portrait">
</activity>
<activity
android:name="com.video.maker1.activity.ImagePickerActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.SwapImageActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.SelectFrameActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.VideoPlayerActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.SongGalleryActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.VideoThemeActivity"
android:exported="true"
android:screenOrientation="portrait" />
<service android:name="com.video.maker1.theme.service.ServiceAnim" />
<activity
android:name="com.video.maker1.activity.MyVideo"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.VideoMakerActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.PrivacyActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:exported="true"
android:theme="#style/Base.Theme.AppCompat" />
<activity android:name="com.video.maker1.activity.VideoTrimActivity" />
<activity
android:name="com.video.maker1.activity.VideoEditorActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.LibraryActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity
android:name="com.video.maker1.activity.SaveVideoFileActivity"
android:exported="true"
android:screenOrientation="portrait" />
<activity android:name="com.video.maker1.activity.VideoListActivity" />
<activity
android:name="com.infiapp.imagelibrary.editimage.EditImageActivity"
android:exported="true"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan"></activity>
</application>
</manifest>
this is my manifest code when i try to install my app on the emulator it shows me this error
^^The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED^^
i'hv tryed evrything that i know but it still showing me the same error
as you see i have tried the ^^android exported true commnd on all my activity but it doesn't work.
I integrated OneSignal push notification into my app and everything worked perfectly well until I upgraded to Android 12 (31). When I upgraded, AndroidStudio reports this error to me, I really don't know what I need to do to avoid it:
Manifest merger failed : android:exported needs to be explicitly specified
for <service>. Apps targeting Android 12 and higher are required to specify
an explicit value for `android:exported` when the corresponding component
has an intent filter defined.
AndroidManifest:
<?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.my.app">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="oppo.permission.OPPO_COMPONENT_SAFE"/>
<uses-permission android:name="com.huawei.permission.external_app_settings.USE_COMPONENT"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:name="com.my.app.MainApplication"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:networkSecurityConfig="#xml/network_security_config"
android:theme="#style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="#string/admob_app_ID" />
<activity
android:name="com.my.app.activity.StepActivity"
android:screenOrientation="portrait"
android:theme="#style/Splash">
</activity>
<activity android:name="com.my.app.activity.PrivacyPolicyActivity"
android:screenOrientation="portrait"/>
<activity android:name="com.my.app.activity.TermsToUseActivity"
android:screenOrientation="portrait"/>
<activity android:name="com.my.app.activity.SplashActivity"
android:screenOrientation="portrait"
android:exported="true"
tools:node="merge">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.my.app.activity.MainActivity"
android:screenOrientation="portrait"/>
<activity android:name="com.my.app.activity.PremiumActivity"
android:screenOrientation="portrait"/>
<activity android:name="com.my.app.activity.ChooseServerActivity"
android:screenOrientation="portrait"/>
<service
android:name="com.my.app.OneSignal.MyNotificationExtenderService"
android:exported="true"
tools:node="merge"
android:permission="android.permission.BIND_JOB_SERVICE">
<intent-filter>
<action android:name="com.onesignal.NotificationExtender" />
</intent-filter>
</service>
<service
android:name="com.my.app.service.BackgroundJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:enabled="true"
android:exported="true"
tools:node="merge"/>
<service
android:name="com.my.app.service.MyService"
android:exported="false"
tools:node="merge">
<intent-filter>
<action android:name="androidsrc.intent.action.PICK_PLUGIN" />
<category android:name="androidsrc.intent.category.ADD_PLUGIN" />
</intent-filter>
</service>
<receiver android:name="com.my.app.service.BootCompletedReceiver"
android:enabled="true"
android:exported="true"
tools:node="merge">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON"/>
</intent-filter>
</receiver>
</application>
build.gradle (app):
manifestPlaceholders = [onesignal_app_id : "xxxxx-xxxx-xxxx-xxx-xxxxxxxx",
onesignal_google_project_number: "REMOTE"]
Why is my app name "Money" instead of "My Application" ? What can I do to change it to "My Application"?
https://i.stack.imgur.com/9buup.png
#string/app_name = My Application
#string/main_activity_title = Money
<application
android:name=".MyApplication"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppBaseTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".activities.money.list.MoneyActivity"
android:exported="true"
android:label="#string/main_activity_title"
android:launchMode="singleTop"/>
<activity-alias
android:name=".MainActivity"
android:label="#string/main_activity_title"
android:launchMode="singleTop"
android:targetActivity=".activities.money.list.MoneyActivity">
<intent-filter android:label="#string/app_name">
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity-alias>
</application>
in your values/strings.xml change
<string name="app_name">Money</string>
to
<string name="app_name">My Application</string>
Try this.....
<application
android:name=".MyApplication"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppBaseTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".activities.money.list.MoneyActivity"
android:exported="true"
android:launchMode="singleTop"/>
<activity-alias
android:name=".MainActivity"
android:label="#string/main_activity_title"
android:launchMode="singleTop"
android:targetActivity=".activities.money.list.MoneyActivity">
<intent-filter android:label="#string/app_name">
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity-alias>
</application>
I am getting strange issue while installing app. If i install app on Android 5.0 version and above then app is getting installed and working fine. But if i install app on lower version like 4.4 or 4.2 then its give me this error while installation.
Getting error while installing app
After lots of RND i get that if your package name contains caps letters then you get this type of error but in my package name there is no cap letter. Below is my Manifest file code :-`
package="com.aznimo">
<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_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
////////////////
<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" />
<application
android:name="Comman.MyApplication"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/app_id" />
<activity
android:name=".Splash_Screen"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Login_Screen"
android:label="#string/title_activity_login__screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".Signup_Screen"
android:label="#string/title_activity_signup__screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".Forgot_Password"
android:label="#string/title_activity_forgot__password"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<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" />
<provider
android:name="com.facebook.FacebookContentProvider"
android:authorities="com.facebook.app.FacebookContentProvider922739857843448"
android:exported="true" />
<activity
android:name=".Privacy_Policy_Screen"
android:label="#string/title_activity_privacy__policy__screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Home_Screen"
android:label="#string/title_activity_home__screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Product_View_All"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Category_List_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Product_detail"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".GalleryActivity"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".You_Tube_Screen"
android:screenOrientation="landscape"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Profile_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Edit_Profile_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="t4jsample"
android:scheme="oauth" />
</intent-filter>
</activity>
<activity
android:name=".New_Address_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden|adjustResize" />
<activity
android:name=".Twitter_Webview_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Address_List_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Order_List_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Order_Detail_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Search_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateAlwaysVisible" />
<activity
android:name=".Cart_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Delivery_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Payment_Confirmation_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".Payment_Method_Screen"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
<activity
android:name=".New_Address_Screen_Map"
android:screenOrientation="portrait"
android:theme="#style/AppTheme"
android:windowSoftInputMode="stateHidden" />
/////////////
<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.aznimo" />
</intent-filter>
</receiver>
<service
android:name=".PushNotificationService"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</service>
<!--
Optionally, register AnalyticsReceiver and AnalyticsService to support background
dispatching on non-Google Play devices
-->
<receiver
android:name="com.google.android.gms.analytics.AnalyticsReceiver"
android:enabled="true">
<intent-filter>
<action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />
</intent-filter>
</receiver>
<service
android:name="com.google.android.gms.analytics.AnalyticsService"
android:enabled="true"
android:exported="false" />
<!--
Optionally, register CampaignTrackingReceiver and CampaignTrackingService to enable
installation campaign reporting
-->
<receiver
android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
<service android:name="com.google.android.gms.analytics.CampaignTrackingService" />
<!--
The API key for Google Maps-based APIs is defined as a string resource.
(See the file "res/values/google_maps_api.xml").
Note that the API key is linked to the encryption key used to sign the APK.
You need a different API key for each encryption key, including the release key that is used to
sign the APK for publishing.
You can define the keys for the debug and release targets in src/debug/ and src/release/.
-->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="#string/google_maps_key" />
</application>
`
I am not even getting any error in logcat section. Can any body tell me whats the problem or what i am doing wrong. Thanks in advance.
At least this causes a "manifest malformed" error:
<application
android:name="Comman.MyApplication"
If the application class name contains a ., it is treated as a fully qualified package name. The package part must start with a lowercase letter between a and z and yours begins with a capital C.
See the PackageParser source for the various ways installation can fail with "manifest malformed". In this case null get returned from buildClassName() when parsing the application element.
I have this error when running my apk:
09-20 14:08:57.052: E/AndroidRuntime(5430): FATAL EXCEPTION: main
09-20 14:08:57.052: E/AndroidRuntime(5430): java.lang.RuntimeException: Unable to instantiate application com.soinfit.serverAndServices.ErrorReport: java.lang.ClassNotFoundException: Didn't find class "com.soinfit.serverAndServices.ErrorReport" on path: DexPathList[[zip file "/data/app/com.soinfit-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.soinfit-1, /system/lib]]
09-20 14:08:57.052: E/AndroidRuntime(5430): at android.app.LoadedApk.makeApplication(LoadedApk.java:509)
09-20 14:08:57.052: E/AndroidRuntime(5430): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4417)
I have read all the topics about this issue on stackoverflow and no one helped me.
I cleaned my project
Checked order and export
My application project is this class:
package serverAndServices;
import org.acra.ACRA;
import org.acra.ReportField;
import org.acra.ReportingInteractionMode;
import org.acra.annotation.ReportsCrashes;
import serverAndServices.ServerUtilities;
import android.app.Application;
import com.soinfit.R;
#ReportsCrashes(formKey = "dGVacG0ydVHnaNHjRjVTUTEtb3FPWGc6MQ",
customReportContent = { ReportField.APP_VERSION_CODE,
ReportField.APP_VERSION_NAME, ReportField.ANDROID_VERSION,
ReportField.PHONE_MODEL, ReportField.CUSTOM_DATA, ReportField.BUILD,
ReportField.STACK_TRACE, ReportField.LOGCAT, ReportField.DEVICE_ID }, formUri = ServerUtilities.ERROR_REPORT_FILE, mode = ReportingInteractionMode.TOAST, forceCloseDialogAfterToast = false, // optional,
// default
// false
resToastText = R.string.error_happned)
public class ErrorReport extends Application {
#Override
public void onCreate() {
super.onCreate();
// The following line triggers the initialization of ACRA
ACRA.init(ErrorReport.this);
}
}
In my manifest I have this code:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.soinfit"
android:versionCode="36"
android:versionName="1.16" >
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<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" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<permission
android:name="com.soinfit.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.soinfit.gcm.permission.C2D_MESSAGE" />
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="20" />
<application
android:name=".serverAndServices.ErrorReport"
android:allowBackup="true"
android:configChanges="orientation|keyboardHidden|screenSize|locale"
android:icon="#drawable/app_icon"
android:label="#string/app_name"
android:debuggable="false"
android:theme="#style/AppTheme" >
<activity
android:name="soInFitMain.SplashScreen"
android:configChanges="keyboardHidden|orientation"
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="soInFitMain.ProgramPlay" >
</activity>
<activity android:name="soInFitMain.SocialPage" >
</activity>
<activity android:name="soInFitMain.RegisterPage" >
</activity>
<activity android:name="soInFitMain.FinishProgramPage" >
</activity>
<activity android:name="soInFitMain.ProgramBuilder" >
</activity>
<activity android:name="soInFitMain.BuildProgramScreen" >
</activity>
<activity android:name="soInFitMain.ChooseProgramType" >
</activity>
<activity android:name="soInFitMain.SettingChoosePage" >
</activity>
<activity android:name="soInFitMain.ProfilePage" >
</activity>
<activity android:name="soInFitMain.PersonalDetails" >
</activity>
<activity android:name="soInFitMain.PrivacyPage" >
</activity>
<activity android:name="soInFitMain.HomePage" >
</activity>
<activity android:name="soInFitMain.ProgramSettings" >
</activity>
<activity android:name="soInFitMain.QandA" >
</activity>
<activity android:name="soInFitMain.SentProgramsPage" >
</activity>
<activity android:name="soInFitMain.MyGymPage" >
</activity>
<activity android:name="soInFitMain.UsersInClass" >
</activity>
<activity android:name="soInFitMain.GymMessages" >
</activity>
<activity android:name="soInFitMain.PrivateTrains" >
</activity>
<activity android:name="soInFitMain.TrainerClasses" >
</activity>
<activity android:name="soInFitMain.TrainersInMyGym" >
</activity>
<activity android:name="soInFitMain.ChallengesPage" >
</activity>
<receiver
android:name="serverAndServices.ChallengesActionReceiver"
android:enabled="true" >
<intent-filter>
<action android:name="com.soinfit.utilities.CHALLENGE_CLICK" />
</intent-filter>
</receiver>
<receiver
android:name="serverAndServices.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.GCM_RECEIVED_ACTION" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.soinfit" />
</intent-filter>
</receiver>
<service android:name="serverAndServices.GcmIntentService" />
<service android:name="serverAndServices.OnTheWayCounterService" />
<service android:name="serverAndServices.ProgramTimeCounterService" />
<service android:name="serverAndServices.SetRestTimeCounterService" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/app_id" />
<activity android:name="com.facebook.LoginActivity" />
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name="org.acra.CrashReportDialog"
android:excludeFromRecents="true"
android:finishOnTaskLaunch="true"
android:launchMode="singleInstance"
android:theme="#android:style/Theme.Dialog" />
</application>
</manifest>
My project packages
The package in your custom application is serverAndServices. Making your class serverAndServices.ErrorReport. Android is looking for com.soinfit.serverAndServices.ErrorReport. Which is the name you declared in the manifest. The two should match.