Category: Android

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

Android

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)...
Android

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...
Android

[android] 백그라운드 서비스를 유지시킬 수 있는 방법이 있는가???도즈(Doze)모드에 진입되면 백그라운드 서비스는 동작을 멈추게 된다. 배터리 최적화에서 벗어나기

안드로이드 운영체제가 버전업 할 때 마다 백그라운드 서비스에 대한 제약은 극히 심해졌다. 백그라운드 서비스가 항상 살아 있어야 앱이 제대로 동작을 하는데, 휴대폰 제조사 마다 백그라운드...
error: Content is protected !!