关于错误Failed to open dex from file descriptor for zip file

I/PackageManager(  934): Running dexopt on: /system/app/Development/Development.apk pkg=com.android.development isa=x86 vmSafeMode=false with dexOptFlag=O2
I/dex2oat (10384): /system/bin/dex2oat --zip-fd=6 --zip-location=/system/app/Development/Development.apk --oat-fd=7 --oat-location=/data/dalvik-cache/x86/system@app@[email protected]@classes.dex --instruction-set=x86 --instruction-set-features=sse4_2,aes_in,popcnt,movbe --runtime-arg -Xms64m --runtime-arg -Xmx512m --compiler-filter=interpret-only --swap-fd=21
E/dex2oat (10384): Failed to open dex from file descriptor for zip file '/system/app/Development/Development.apk': Entry not found
E/installd(  647): DexInv: --- END '/system/app/Development/Development.apk' --- status=0x0100, process failed
I/PackageManager(  934): Running dexopt on: /system/app/Development/Development.apk pkg=com.android.development isa=x86 vmSafeMode=false with dexOptFlag=O2
D/        ( 1670): Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC

W/Settings( 1549): Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
W/Settings( 1549): Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
E/installd(  647): DexInv: --- END '/system/app/DevI/dex2oat (10386): /system/bin/dex2oat --zip-fd=6 --zip-location=/system/app/Development/Development.apk --oat-fd=7 --oat-location=/data/dalvik-cache/x86/system@app@[email protected]@classes.dex --instruction-set=x86 --instruction-set-features=sse4_2,aes_in,popcnt,movbe --runtime-arg -Xms64m --runtime-arg -Xmx512m --compiler-filter=interpret-only --swap-fd=22
E/dex2oat (10386): Failed to open dex from file descriptor for zip file '/system/app/Development/Development.apk': Entry not foundelopment/Development.apk' --- status=0x0100, process failed
W/ResourcesManager(10368): Asset path '/system/framework/android.test.runner.jar' does not exist or contains no resources.
D/AndroidRuntime(10368): Shutting down VM
E/AndroidRuntime(10368): FATAL EXCEPTION: main
E/AndroidRuntime(10368): Process: com.android.development, PID: 10368
E/AndroidRuntime(10368): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.development/com.android.development.Development}: java.lang.ClassNotFoundException: Didn't find class "com.android.development.Development" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/app/Development/Development.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/AndroidRuntime(10368): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2236)
E/AndroidRuntime(10368): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
E/AndroidRuntime(10368): 	at android.app.ActivityThread.access$800(ActivityThread.java:151)
E/AndroidRuntime(10368): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
E/AndroidRuntime(10368): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(10368): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(10368): 	at android.app.ActivityThread.main(ActivityThread.java:5258)
E/AndroidRuntime(10368): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(10368): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(10368): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime(10368): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
E/AndroidRuntime(10368): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.development.Development" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/system/app/Development/Development.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/AndroidRuntime(10368): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime(10368): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/AndroidRuntime(10368): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
E/AndroidRuntime(10368): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1066)
E/AndroidRuntime(10368): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2226)
E/AndroidRuntime(10368): 	... 10 more
E/AndroidRuntime(10368): 	Suppressed: java.io.IOException: Zip archive '/system/app/Development/Development.apk' doesn't contain classes.dex (error msg: Entry not found)
E/AndroidRuntime(10368): 		at dalvik.system.DexFile.openDexFileNative(Native Method)
E/AndroidRuntime(10368): 		at dalvik.system.DexFile.openDexFile(DexFile.java:295)
E/AndroidRuntime(10368): 		at dalvik.system.DexFile.<init>(DexFile.java:80)
E/AndroidRuntime(10368): 		at dalvik.system.DexFile.<init>(DexFile.java:59)
E/AndroidRuntime(10368): 		at dalvik.system.DexPathList.loadDexFile(DexPathList.java:262)
E/AndroidRuntime(10368): 		at dalvik.system.DexPathList.makeDexElements(DexPathList.java:231)
E/AndroidRuntime(10368): 		at dalvik.system.DexPathList.<init>(DexPathList.java:109)
E/AndroidRuntime(10368): 		at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
E/AndroidRuntime(10368): 		at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
E/AndroidRuntime(10368): 		at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:57)
E/AndroidRuntime(10368): 		at android.app.LoadedApk.getClassLoader(LoadedApk.java:361)
E/AndroidRuntime(10368): 		at android.app.LoadedApk.makeApplication(LoadedApk.java:553)
E/AndroidRuntime(10368): 		at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4530)
E/AndroidRuntime(10368): 		at android.app.ActivityThread.access$1500(ActivityThread.java:151)
E/AndroidRuntime(10368): 		at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
E/AndroidRuntime(10368): 		... 7 more
E/AndroidRuntime(10368): 	Caused by: java.io.IOException: Failed to open oat file from dex location '/system/app/Development/Development.apk'
E/AndroidRuntime(10368): 		... 22 more
E/AndroidRuntime(10368): 	Caused by: java.io.IOException: Failed to open oat file from /system/app/Development/x86/Development.odex (error Failed to open oat filename for reading: No such file or directory) (no dalvik_cache availible) and relocation failed.
E/AndroidRuntime(10368): 		... 22 more
E/AndroidRuntime(10368): 	Caused by: java.io.IOException: 
E/AndroidRuntime(10368): 		... 22 more
E/AndroidRuntime(10368): 	Suppressed: java.lang.ClassNotFoundException: com.android.development.Development
E/AndroidRuntime(10368): 		at java.lang.Class.classForName(Native Method)
E/AndroidRuntime(10368): 		at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
E/AndroidRuntime(10368): 		at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
E/AndroidRuntime(10368): 		at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/AndroidRuntime(10368): 		... 13 more
E/AndroidRuntime(10368): 	Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available


details and solution will be added the day after tomorrow. :)

do not create dex file .  Android.mk

+LOCAL_DEX_PREOPT := false

 

你可能感兴趣的:(Android开发)