framework编译报错记录

1.报错内容

1970-07-03 09:25:32.243 14775-14775/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.android.provision, PID: 14775
    java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.provision/com.android.provision.DefaultActivity}: java.lang.ClassNotFoundException: Didn't find class "com.android.provision.DefaultActivity" on path: DexPathList[[zip file "/system/priv-app/Provision/Provision.apk"],nativeLibraryDirectories=[/system/priv-app/Provision/lib/arm64, /system/lib64, /vendor/lib64, /system/lib64, /vendor/lib64]]
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2568)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)
        at android.app.ActivityThread.-wrap12(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6121)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.provision.DefaultActivity" on path: DexPathList[[zip file "/system/priv-app/Provision/Provision.apk"],nativeLibraryDirectories=[/system/priv-app/Provision/lib/arm64, /system/lib64, /vendor/lib64, /system/lib64, /vendor/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.app.Instrumentation.newActivity(Instrumentation.java:1079)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2558)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727) 
        at android.app.ActivityThread.-wrap12(ActivityThread.java) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:154) 
        at android.app.ActivityThread.main(ActivityThread.java:6121) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779) 
        Suppressed: java.io.IOException: No original dex files found for dex location /system/priv-app/Provision/Provision.apk
        at dalvik.system.DexFile.openDexFileNative(Native Method)
        at dalvik.system.DexFile.openDexFile(DexFile.java:367)
        at dalvik.system.DexFile.(DexFile.java:112)
        at dalvik.system.DexFile.(DexFile.java:77)
        at dalvik.system.DexPathList.loadDexFile(DexPathList.java:359)
        at dalvik.system.DexPathList.makeElements(DexPathList.java:323)
        at dalvik.system.DexPathList.makeDexElements(DexPathList.java:263)
        at dalvik.system.DexPathList.(DexPathList.java:126)
        at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:48)
        at dalvik.system.PathClassLoader.(PathClassLoader.java:64)
        at com.android.internal.os.PathClassLoaderFactory.createClassLoader(PathClassLoaderFactory.java:43)
        at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:58)
        at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:520)
        at android.app.LoadedApk.getClassLoader(LoadedApk.java:553)
        at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:1867)
        at android.app.LoadedApk.getResources(LoadedApk.java:766)
        at android.app.ContextImpl.(ContextImpl.java:2038)
        at android.app.ContextImpl.createAppContext(ContextImpl.java:1983)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5296)
        at android.app.ActivityThread.-wrap2(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1546)
                ... 6 more

 

解决方案: 重新编译provision这个模块.

路径:\sc60\packages\apps\Provision

编译:  1. mmm packages\apps\Provision 进行模块编译,  2.编译完成后使用 make snod 进行打包.

 

你可能感兴趣的:(Android源码)