不幸的是MyApp已经停止了消息,不确定如何解决

时间:2017-07-17 19:28:16

标签: java android

当使用模拟器调试我的android studio程序时,我突然开始在应用程序打开时收到以下错误。它工作正常,然后才开始给我这个错误。我在代码中没有改变任何内容。

"不幸的是MyApp已经停止"

如果它有帮助,我开始在logcat中看到错误。

e07-17 18:58:20.744 1260-1296/? E/vold: Failed to chmod /data/system_ce/0: No such file or directory
    07-17 18:58:20.744 1260-1296/? E/vold: Failed to chmod /data/misc_ce/0: No such file or directory
    07-17 18:58:20.744 1260-1296/? E/vold: Failed to chmod /data/media/0: No such file or directory
    07-17 18:58:23.142 1305-1305/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
    07-17 18:58:23.332 1305-1305/? E/SurfaceFlinger: hwcomposer module not found
    07-17 18:58:25.169 1305-1321/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
    07-17 18:58:25.173 1350-1357/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
    07-17 13:58:26.662 1369-1369/? E/EmulatedCamera_Factory: 2 cameras are being emulated. 0 of them are fake cameras.
    07-17 13:58:26.662 1369-1369/? E/EmulatedCamera_HotplugThread: createFileIfNotExists: Could not create file '/data/misc/media/emulator.camera.hotplug.0', error: 'Permission denied' (13)
    07-17 13:58:26.662 1369-1369/? E/EmulatedCamera_HotplugThread: createFileIfNotExists: Could not create file '/data/misc/media/emulator.camera.hotplug.1', error: 'Permission denied' (13)
    07-17 13:58:26.662 1369-1369/? E/CameraService: setUpVendorTags: Vendor tag operations not fully defined. Ignoring definitions.
    07-17 13:58:27.333 1368-1368/? E/RadioService: couldn't load radio module radio.primary (No such file or directory)
    07-17 13:58:27.334 1368-1368/? E/SoundTriggerHwService: couldn't load sound trigger module sound_trigger.primary (No such file or directory)
    07-17 13:58:29.248 1511-1511/? E/ipv6proxy: Failed to forward Neighbor Solicitation for fe80::d003:fdff:fe0f:d2c9 from radio0-peer to eth0: Cannot assign requested address
    07-17 13:58:29.315 1524-1524/? E/hostapd: Configuration file: /system/etc/simulated_hostapd.conf
    07-17 13:58:30.251 1511-1511/? E/ipv6proxy: Failed to forward Router Advertisement from eth0 to wlan1: Network is unreachable
    07-17 13:58:30.251 1511-1511/? E/ipv6proxy: Failed to forward Router Advertisement from eth0 to radio0-peer: Cannot assign requested address
    07-17 13:58:31.184 1367-1367/? E/memtrack: Couldn't load memtrack module (No such file or directory)
    07-17 13:58:31.184 1367-1367/? E/android.os.Debug: failed to load memtrack module: -2
    07-17 13:58:32.344 1367-1367/? E/Typeface: Error mapping font file /system/fonts/DroidSansFallback.ttf
    07-17 13:58:32.421 1377-1377/? E/Netd: cannot find interface dummy0
    07-17 13:58:34.251 1511-1511/? E/ipv6proxy: Failed to forward Router Advertisement from eth0 to wlan1: Network is unreachable
    07-17 13:58:34.401 1367-1367/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
    07-17 13:58:34.472 1367-1367/? E/Hyphenator: error loading hyphenation /system/usr/hyphen-data/hyph-as.hyb
                                                 java.io.FileNotFoundException: /system/usr/hyphen-data/hyph-as.hyb: open failed: ENOENT (No such file or directory)
                                                     at libcore.io.IoBridge.open(IoBridge.java:455)
                                                     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:247)

                                                     at android.text.Hyphenator.loadHyphenator(Hyphenator.java:118)
                                                     at android.text.Hyphenator.init(Hyphenator.java:224)
                                                     at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:252)
                                                     at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:206)
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:743)
                                                  Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)e

1 个答案:

答案 0 :(得分:1)

尝试清理项目

Build -> Clean
Build -> Rebuild Project