在oarcle jdk1.8上执行256位的aes秘钥加密报错如下: java.lang.RuntimeException: java.security.InvalidKeyException: Illegal key size at com.xx.opal.core.utils.aes.AESTool.encryptWithoutEncode(AESTool.java:33) at com.xx.opal.aes.AESTest.test(AESTest.java:19) at sun.ref
情况1 呃,被坑了几个小时,后来发现,在调用setResult的时候,requestCode随便传了个Activity的RESULT_OK,而这个常量的值是-1,导致onActivityResult没有被调用. 握了棵草啊... 看看文档:requestCode If >= 0, this code will be returned in onActivityResult() when the activity exits. 所以,但你们的setResult无效时,看看你传的requestCod