Android开发vivo x20手机问题

vivo x20一直卡在启动页面,过后就闪退了。

看下错误log:

* 
11-07 19:21:42.175 21414-21451/? E/System:  * New versions of the Android SDK no longer support the Crypto provider.
11-07 19:21:42.175 21414-21451/? E/System:  * If your app was relying on setSeed() to derive keys from strings, you
11-07 19:21:42.175 21414-21451/? E/System:  * should switch to using SecretKeySpec to load raw key bytes directly OR
11-07 19:21:42.175 21414-21451/? E/System:  * use a real key derivation function (KDF). See advice here : 
11-07 19:21:42.175 21414-21451/? E/System:  * http://android-developers.blogspot.com/2016/06/security-crypto-provider-deprecated-in.html 
11-07 19:21:42.175 21414-21451/? E/System:  *********************************** 
11-07 19:21:42.185 21414-21470/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x9a043f03 in tid 21470 (yiban1314.yiban)
                                         
                                         [ 11-07 19:21:42.186   590:  590 W/         ]
                                         debuggerd: handling request: pid=21414 uid=10197 gid=10197 tid=21470
                                         
                                         
                                         [ 11-07 19:21:42.189 21478:21478 E/         ]
                                         debuggerd: ptrace attach to 21477 failed: No such process
11-07 19:21:42.257 21478-21478/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-07 19:21:42.257 21478-21478/? A/DEBUG: Build fingerprint: 'vivo/PD1709/PD1709:7.1.1/NMF26X/compil10132106:user/release-keys'
11-07 19:21:42.257 21478-21478/? A/DEBUG: Revision: '0'
11-07 19:21:42.257 21478-21478/? A/DEBUG: ABI: 'arm'
11-07 19:21:42.257 21478-21478/? A/DEBUG: pid: 21414, tid: 21470, name: yiban1314.yiban  >>> com.yiban1314.yiban <<<
11-07 19:21:42.257 21478-21478/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x9a043f03
11-07 19:21:42.257 21478-21478/? A/DEBUG:     r0 9a043e6b  r1 d50862d6  r2 05f46a44  r3 ef2a19ed
11-07 19:21:42.257 21478-21478/? A/DEBUG:     r4 d78a2fda  r5 1193b4e8  r6 1a319114  r7 c9f3e7d0
11-07 19:21:42.257 21478-21478/? A/DEBUG:     r8 1f4a2c9f  r9 1a319113  sl 1f4a2c9e  fp 05f46a43
11-07 19:21:42.257 21478-21478/? A/DEBUG:     ip ef2a19ec  sp c9f3e768  lr 1193b4e9  pc db538b42  cpsr 60000030
11-07 19:21:42.258 21478-21478/? A/DEBUG: backtrace:
11-07 19:21:42.258 21478-21478/? A/DEBUG:     #00 pc 0004bb42  /data/data/com.yiban1314.yiban/files/libsecuritysdkx-3.1.27.so
11-07 19:21:42.258 21478-21478/? A/DEBUG:     #01 pc 1193b4e7  
11-07 19:21:42.606 615-3331/? E/ANDR-PERF-RESOURCEQS: Failed to reset optimization [3, 0]
11-07 19:21:43.377 1802-21480/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!  (parcel size = 1049328)

这里有两个错误

1.New versions of the Android SDK no longer support the Crypto provider

2./data/data/com.yiban1314.yiban/files/libsecuritysdkx-3.1.27.so


解决:

方案1:降低项目版本targetSdkVersion:23

方案2:删除项目的libsecuritysdkx-3.1.27.so(建议采用此方案)

你可能感兴趣的:(vivo,x20bug)