Category: Android

안드로이드 개발 관련 카테고리입니다.

Android

[백그라운드 서비스]Bad notification for startForeground: [java.lang.RuntimeException: invalid channel for service notification

android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 backgroundColor=0x00000000 vis=PRIVATE) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1745) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6853) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860) 2019-10-31 20:02:36.128 18834-18834/ E/UncaughtException: android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification: Notification(channel=null pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x40 color=0x00000000 backgroundColor=0x00000000 vis=PRIVATE) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1745) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6853) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:860) [원인 코드] @Override public void...
Android

[빌드 오류]Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project.

Unfortunately you can’t have non-Gradle Java modules and Android-Gradle modules in one project. [오류발생 원인] 기존 프로젝트를 폴더명만 변경후 기존 프로젝트와 폴더명만 변경한 프로젝트를 동시에 시작했다.  그리고나서 기존 프로젝트는 종료하였다. 그리고 폴더명만 변경한 프로젝트의 전체 패키지명을 변경하였고...
Android

Key android.intent.extra.INITIAL_INTENTS expected Parcelable[] but value was a android.content.Intent. The default value was returned

이메일 발송관련 기능을 개발하던 과정에 발생한 오류이다.  Intent 호출 전 설정하는 과정에 EXTRA_INITIAL_INTENTS를 사용하였다. 10-29 11:00:26.860 11294-11294/ddolcatmaster.finedustrecord W/Bundle: Key android.intent.extra.INITIAL_INTENTS expected Parcelable[] but value was a...
Android

java.lang.ClassNotFoundException: Didn’t find class “com.google.android.gms.ads.MobileAdsInitProvider”

java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.ClassNotFoundException: Didn’t find class “com.google.android.gms.ads.MobileAdsInitProvider” on path: DexPathList[[zip file “/data/app/ddolcatmaster.finedustrecord-I9sX3NnW8Ncpg-N3_bqEDw==/base.apk”, zip file “/data/app/ddolcatmaster.finedustrecord-I9sX3NnW8Ncpg-N3_bqEDw==/split_lib_resources_apk.apk”, zip file “/data/app/ddolcatmaster.finedustrecord-I9sX3NnW8Ncpg-N3_bqEDw==/split_lib_slice_0_apk.apk”],nativeLibraryDirectories=[/data/app/ddolcatmaster.finedustrecord-I9sX3NnW8Ncpg-N3_bqEDw==/lib/arm64, /system/lib64, /vendor/lib64]] at...
Android

Caused by: java.lang.RuntimeException: Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:wellness:processReleaseManifest’. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) at...
error: Content is protected !!