Android

[안드로이드 오류] ActivityThread.java line 3671 android.app.ActivityThread.handleCreateService

ActivityThread.java line 3671

android.app.ActivityThread.handleCreateService


오류가 발생한 휴대전화 정보

 

[오류내용]

Fatal Exception: java.lang.RuntimeException: 
Unable to instantiate service com.test.ManageService: 
java.lang.ClassNotFoundException: Didn't find class "com.test.ManageService" on path: 
DexPathList[[zip file "/data/app/com.test-2/base.apk"],
nativeLibraryDirectories=[/vendor/lib, /system/lib]]
       at android.app.ActivityThread.handleCreateService(ActivityThread.java:3674)
       at android.app.ActivityThread.access$2000(ActivityThread.java:218)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1827)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:145)
       at android.app.ActivityThread.main(ActivityThread.java:7007)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by java.lang.ClassNotFoundException:
Didn't find class "com.test.ManageService" on path: 
DexPathList[[zip file "/data/app/com.test-2/base.apk"],
nativeLibraryDirectories=[/vendor/lib, /system/lib]]
       at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
       at android.app.ActivityThread.handleCreateService(ActivityThread.java:3671)
       at android.app.ActivityThread.access$2000(ActivityThread.java:218)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1827)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:145)
       at android.app.ActivityThread.main(ActivityThread.java:7007)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

build.gradle(:app) 파일에 multiDexEnabled 속성값을 true로 설정을 추가했음에도 DexPathList오류가 발생하였다.

defaultConfig {
    applicationId "com.test"
    minSdkVersion 16    
    targetSdkVersion 29
    versionCode 198
    versionName "1.9.8" 

    // Enabling multidex support.
    multiDexEnabled true
}  

해결방법을 찾아보자

Leave a Reply

error: Content is protected !!