I built the sources in general, instead of building only the framework module and it worked. Thanks
segunda-feira, 30 de Janeiro de 2017 às 18:11:26 UTC, Pedro Maltez escreveu: > > Hi > I need to add some code in ViewGroup.java and/or ViewRootImpl.java. I already > had the sources compiled so I only recompiled the last chages I made with > the command make framework. But when I run the emulator I receive this > error: > > > > --------- beginning of crash > 01-29 22:22:30.570 280 280 E AndroidRuntime: *** FATAL EXCEPTION IN > SYSTEM PROCESS: main > 01-29 22:22:30.570 280 280 E AndroidRuntime: java.lang. > RuntimeException: Missing class when invoking static main com.android. > server.SystemServer > 01-29 22:22:30.570 280 280 E AndroidRuntime: at com.android. > internal.os.RuntimeInit.invokeStaticMain(RuntimeInit.java:205) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at com.android. > internal.os.RuntimeInit.applicationInit(RuntimeInit.java:326) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at com.android. > internal.os.RuntimeInit.zygoteInit(RuntimeInit.java:278) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at com.android. > internal.os.ZygoteInit.handleSystemServerProcess(ZygoteInit.java:458) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at com.android. > internal.os.ZygoteInit.startSystemServer(ZygoteInit.java:545) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at com.android. > internal.os.ZygoteInit.main(ZygoteInit.java:608) > 01-29 22:22:30.570 280 280 E AndroidRuntime: Caused by: java.lang. > ClassNotFoundException: com.android.server.SystemServer > 01-29 22:22:30.570 280 280 E AndroidRuntime: at java.lang.Class. > classForName(Native Method) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at java.lang.Class. > forName(Class.java:324) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at com.android. > internal.os.RuntimeInit.invokeStaticMain(RuntimeInit.java:203) > 01-29 22:22:30.570 280 280 E AndroidRuntime: ... 5 more > 01-29 22:22:30.570 280 280 E AndroidRuntime: Caused by: java.lang. > ClassNotFoundException: Didn't find class > "com.android.server.SystemServer" on path: DexPathList[[zip file > "/system/framework/services.jar", zip file > "/system/framework/ethernet-service.jar", zip file > "/system/framework/wifi-service.jar"],nativeLibraryDirectories=[/vendor/lib, > /system/lib]] > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > java.lang.ClassLoader.loadClass(ClassLoader.java:511) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > java.lang.ClassLoader.loadClass(ClassLoader.java:469) > 01-29 22:22:30.570 280 280 E AndroidRuntime: ... 8 more > 01-29 22:22:30.570 280 280 E AndroidRuntime: Suppressed: > java.io.IOException: No original dex files found for dex location > /system/framework/services.jar > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.DexFile.openDexFileNative(Native Method) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.DexFile.openDexFile(DexFile.java:295) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.DexFile.<init>(DexFile.java:80) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.DexFile.<init>(DexFile.java:59) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.DexPathList.loadDexFile(DexPathList.java:279) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.DexPathList.makePathElements(DexPathList.java:248) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.DexPathList.<init>(DexPathList.java:120) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > dalvik.system.PathClassLoader.<init>(PathClassLoader.java:38) > 01-29 22:22:30.570 280 280 E AndroidRuntime: at > com.android.internal.os.ZygoteInit.handleSystemServerProcess(ZygoteInit.java:451) > > Does this means that I can't change these files? > -- -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting --- You received this message because you are subscribed to the Google Groups "android-porting" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
