解决Android闪退的坑

        今天在使用Android Studio时,写了一个程序,直接在手机上运行的闪退。 用别人的手机又可以运行,以为是自己的手机坏了,于是有开始分析,发现只要是使用<ImageView>加载图片时,就会闪退,编译时可以正常运行。

将图片全部从drawable-v24移到drawable目录后正常了。

 

展开阅读全文

安卓7.0退,在6.0及以前都是好的,有没有大神指点一下

03-24
03-24 10:04:00.766 26263-26263/cci.com.soundmax.hk I/BitmapFactory: set decoder allocator to gralloc 03-24 10:04:00.768 26263-26263/cci.com.soundmax.hk I/gralloc: alloc_device_alloc:564: Alloc handle(0xc46a2f00): interfmt=1, stride=320, size=520192, usage=0x2000003 03-24 10:04:00.774 26263-26263/cci.com.soundmax.hk I/gralloc: alloc_device_alloc:564: Alloc handle(0xc46a2d00): interfmt=1, stride=896, size=4345856, usage=0x2000003 03-24 10:04:00.789 26263-26263/cci.com.soundmax.hk I/gralloc: alloc_device_free:586: Free handle(0xc46a2d00) 03-24 10:04:00.789 26263-26263/cci.com.soundmax.hk I/gralloc: alloc_device_free:586: Free handle(0xc46a2f00) 03-24 10:04:00.789 26263-26263/cci.com.soundmax.hk E/HW-JPEG-DEC: [HME_JPEG_DEC_Delete](3298): HME_JPEG_DEC_Delete: decoder_ctx=null 03-24 10:04:00.813 26263-26263/cci.com.soundmax.hk I/Process: Sending signal. PID: 26263 SIG: 9 03-24 10:04:01.101 27688-27688/cci.com.soundmax.hk W/art: JIT profile information will not be recorded: profile file does not exits. 03-24 10:04:01.419 27688-27688/cci.com.soundmax.hk I/MultiDex: VM with version 2.1.0 has multidex support 03-24 10:04:01.419 27688-27688/cci.com.soundmax.hk I/MultiDex: install 03-24 10:04:01.419 27688-27688/cci.com.soundmax.hk I/MultiDex: VM has multidex support, MultiDex support library is disabled. 03-24 10:04:01.576 27688-27688/cci.com.soundmax.hk E/CCIApplication: 目录:/storage/emulated/0/HIFI music/download 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: java.lang.IllegalArgumentException: You cannot keep your settings in the secure settings. 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165) 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135) 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at android.content.ContentProviderProxy.call(ContentProviderNative.java:646) 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at android.provider.Settings$NameValueCache.putStringForUser(Settings.java:1570) 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at android.provider.Settings$System.putStringForUser(Settings.java:1942) 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at android.provider.Settings$System.putString(Settings.java:1926) 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at com.iflytek.thirdparty.S.c(Unknown Source) 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at com.iflytek.thirdparty.S.a(Unknown Source) 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at com.iflytek.thirdparty.S$1.run(Unknown Source) 03-24 10:04:01.701 27688-27725/cci.com.soundmax.hk W/System.err: at java.lang.Thread.run(Thread.java:776) 03-24 10:04:01.764 27688-27688/cci.com.soundmax.hk E/PushFactory: getPushInstance not found push instance. 03-24 10:04:01.789 27688-27688/cci.com.soundmax.hk E/MscSpeechLog: getMscParameter MSC return -1 03-24 10:04:01.800 27688-27688/cci.com.soundmax.hk W/ImageLoader: memoryCache() and memoryCacheSize() calls overlap each other 03-24 10:04:01.801 27688-27688/cci.com.soundmax.hk W/ImageLoader: diskCache(), diskCacheSize() and diskCacheFileCount calls overlap each other 03-24 10:04:01.801 27688-27688/cci.com.soundmax.hk W/ImageLoader: diskCache() and diskCacheFileNameGenerator() calls overlap each other
©️2020 CSDN 皮肤主题: 大白 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值