Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘void androidx.appcompat.widget.ad.a()’ on a null object reference
androidx로 마이그레이션 후 발생한 오류이다. 8409/com.Test E/UncaughtException: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.Test/com.Test.MainActivity}: android.view.InflateException: Binary XML file line #37: Binary XML file line #37: Error...
[해결방법 : 앱이 설치되지 않았습니다] Caused by: android.os.RemoteException: Remote stack trace:at com.android.server.wm.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1032)
안드로이드 스튜디오에서 앱의 불편함을 개선 후 테스트 폰을 USB로 연결 후 앱을 테스트하기 위해 빌드 후 앱을 실행하였다. 보통의 경우 앱이 설치되면서 앱이 실행되었지만, 어찌된 영문인지...
org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures.
org.gradle.execution.MultipleBuildFailures: Build completed with 1 failures. at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:386) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:247) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:159) at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:134) at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:58) at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:55) at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:82) at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:75) at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183) at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40) at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:75) at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:55) at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run(ClientProvidedPhasedActionRunner.java:60) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:58) at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32) at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39) at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:49)...
WARNING: API ‘variant.getMergeResources()’ is obsolete and has been replaced with ‘variant.getMergeResourcesProvider()
WARNING: API ‘variant.getMergeResources()’ is obsolete and has been replaced with ‘variant.getMergeResourcesProvider()’.It will be removed at the end of 2019. For more information, see https://d.android.com/r/tools/task-configuration-avoidance. To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information. Affected Modules: app REASON: It is currently called from the following trace: java.lang.Thread.getStackTrace(Thread.java:1556) com.android.build.gradle.internal.errors.DeprecationReporterImpl.reportDeprecatedApi(DeprecationReporterImpl.kt:79) com.android.build.gradle.internal.api.BaseVariantImpl.getMergeResources(BaseVariantImpl.java:349) com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated.getMergeResources(null:-1) sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:498) org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:104) groovy.lang.MetaBeanProperty.getProperty(MetaBeanProperty.java:59) org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.getProperty(BeanDynamicObject.java:228) org.gradle.internal.metaobject.BeanDynamicObject.tryGetProperty(BeanDynamicObject.java:171) org.gradle.internal.metaobject.CompositeDynamicObject.tryGetProperty(CompositeDynamicObject.java:55) org.gradle.internal.metaobject.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:59) com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated.getProperty(null:-1) org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:298) com.google.gms.googleservices.GoogleServicesPlugin.handleVariant(GoogleServicesPlugin.groovy:164) sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)...
[Andorid] 액티비티 생명주기(life cycle of Activity)
액티비티 생명주기 흐름도!! 출처 : https://stackoverflow.com/questions/6812003/difference-between-oncreate-and-onstart [연관 정보] 안드로이드 개발자 문서 : 활동 수명 주기에 관한 이해 Difference between onCreate() and onStart()? [duplicate] onStart()...
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘void androidx.appcompat.widget.ad.a()’ on a null object reference ….ClassNotFoundException: Didn’t find class “androidx.core.app.CoreComponentFactory” on path: DexPathList[[]..
AndroidX로 마이그레이션 후 발생한 오류다!! 진심 짱난다. 2019-07-04 22:16:01.359 3978-3978/? E/LoadedApk: Unable to instantiate appComponentFactory java.lang.ClassNotFoundException: Didn’t find class “androidx.core.app.CoreComponentFactory” on path: DexPathList[[],nativeLibraryDirectories=[/data/app/com.kakao.talk-o6GXVZ6B1yCPRz3TPvAjWA==/lib/arm, /data/app/com.kakao.talk-o6GXVZ6B1yCPRz3TPvAjWA==/base.apk!/lib/armeabi-v7a, /system/lib64, /system/product/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at android.app.LoadedApk.createAppFactory(LoadedApk.java:226) at android.app.LoadedApk.updateApplicationInfo(LoadedApk.java:341) at android.app.ActivityThread.handleDispatchPackageBroadcast(ActivityThread.java:5526) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1741) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at com.android.server.SystemServer.run(SystemServer.java:489) at com.android.server.SystemServer.main(SystemServer.java:329) 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:840) 2019-07-04 22:16:01.685 22032-22032/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.Test, PID: 22032...
Bad notification for startForeground: java.lang.RuntimeException: invalid channel for service notification
targetSdkVersion26 에서 targetSdkVersion 28로 변경 후 빌드까지 성공하고 앱 설치까지 성공하였다.하지만 앱을 실행한 결과 앱은 죽었다. Fatal Exception: android.app.RemoteServiceException Bad notification for startForeground: java.lang.RuntimeException: invalid...
[Android] 다크 테마(Dark Theme) 만드는 방법
사용자에게 앱의 색상을 변경할 수 있도록 하는 기능을 제공할 때가 있다. 이 때 테마(theme)를 사용해야한다. 그렇지않으면 모든 엑티비티를 호출하는 클래스안에 사용자가 선택한 색상에 따라 액티비티의...
[android] 백그라운드 서비스를 유지시킬 수 있는 방법이 있는가???도즈(Doze)모드에 진입되면 백그라운드 서비스는 동작을 멈추게 된다. 배터리 최적화에서 벗어나기
안드로이드 운영체제가 버전업 할 때 마다 백그라운드 서비스에 대한 제약은 극히 심해졌다. 백그라운드 서비스가 항상 살아 있어야 앱이 제대로 동작을 하는데, 휴대폰 제조사 마다 백그라운드...