Exception 记录
文章平均质量分 65
Exception
周周都刷火焰猫头鹰
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
INSTALL_FAILED_SHARED_USER_INC +
Installation did not succeed.The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE正常来讲如上问题,是因为添加了如下代码 android:sharedUserId="android.uid.system"而且还未使用系统签名打包就要安装的才产生的然而,我使用了系统签名文件,还有这个问题,为什么我确信我使用了呢?那是因为多个APK只有这么一个APK产生这个问题,其原创 2021-12-16 11:12:55 · 2065 阅读 · 0 评论 -
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
首先,这个问题虽然暂时解决了,但是还没有完全解决不知道是怎么回事。问题在请求网络接口的时候,出现的异常:java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.描述一下问题:使用的是HTTPS第一次安装并且没有退出过应用,才会出现,其余100个接口没有问题,只有一个接口出现。重启应用后,再调用就不会再产生。解决:出现这个问题,与证书有关检查一下证书认证的代码原创 2021-10-08 15:38:13 · 9902 阅读 · 0 评论 -
Expected [!]interface|@interface|class|enum
代码编译的时候弹出异常:Expected [!]interface|@interface|class|enum相比之前只是开启了混淆,所以问题更可能是混淆文件的问题中途也弹出混淆和R8的异常了AGPBI: {"kind":"error","text":"Expected [!]interface|@interface|class|enum","sources":[{"file":"D:\\project_xx\\xxxx\\xxxx_aar\\app\\proguard-rules.pro","p原创 2021-02-18 16:59:49 · 1026 阅读 · 0 评论 -
阿里云移动推送 - 异常记录
阿里云推送遇见的问题记录一下原创 2020-12-18 13:20:11 · 877 阅读 · 0 评论 -
NullPointerException: Attempt to invoke virtual method ‘boolean android.graphics.Bitmap.isRecycled()
调用 Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher); canvas.drawBitmap(bitmap, 50, 50, paintText);问题发生在什么位置?D/skia: --- Failed to create image decoder with message 'unimplemented'....原创 2020-12-14 16:29:35 · 5189 阅读 · 0 评论 -
RxCache java.lang.NoClassDefFoundError: Failed resolution of: Ldagger/internal/Preconditions;
代码: if (messageCache == null) { messageCache = rxCache.using(MessageCache.class);//这些配置对应的缓存接口 }报异常: java.lang.NoClassDefFoundError: Failed resolution of: Ldagger/internal/Preconditions;java.lang.ClassNotFoundException: Did原创 2020-11-27 11:34:59 · 494 阅读 · 0 评论 -
HTTP FAILED: java.net.UnknownServiceException: CLEARTEXT communication to xx.xx.xx.xx not permitted
前因:环境:Android 8.1手机:VIVO X20A上远行没有问题,但是,环境:Android 10.1手机:HUAWEI P30上运行就请求失败:HTTP FAILED: java.net.UnknownServiceException: CLEARTEXT communication to xx.xx.xx.xx not permitted原因是:Android 9.0 及以上被Google要求密文传输对应的,Android targetSdkVersion 27 支持明文原创 2020-11-27 10:33:00 · 1177 阅读 · 0 评论 -
app:transformClassesWithDexBuilderForDevDebug
error processing C:\Users\Administrator\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jdk8\1.4.10\998caa30623f73223194a8b657abd2baec4880ea\kotlin-stdlib-jdk8-1.4.10.jarjava.lang.RuntimeException at org.objectweb.asm.ClassVisitor.v原创 2020-11-16 16:00:29 · 976 阅读 · 0 评论 -
INotificationSideChannel
AGPBI: {"kind":"error","text":"Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy","sources":[{}],"tool":"D8"}:app:transformDexArchiveWithExternalLibsDexMergerForDevDebug FAILEDFAILURE: Build failed with an excepti.原创 2020-11-16 14:41:04 · 658 阅读 · 0 评论 -
app:processDevDebugResources
FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:processDevDebugResources'.> Android resource linking failed Output: D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\incremental\mergeDevDebugResour原创 2020-11-16 14:27:31 · 599 阅读 · 0 评论 -
java.io.FileNotFoundException: /data/user/0/com.xx.xx/files/com_alibaba_aliyun_crash_defend_sd
java.io.FileNotFoundException: /data/user/0/com.dfsk.fengon/files/com_alibaba_aliyun_crash_defend_sdk_info_com.dfsk.fengon:channel (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.op...原创 2020-11-10 11:50:43 · 61931 阅读 · 2 评论 -
AS3.6.1 65535
异常Error: Cannot fit requested classes in a single dex file (# methods: 67667 > 65536)原因是:Android App中的方法数超过65535时,如果往下兼容到低版本设备时,就会报编译错误,尤其在引入一些jar包和搞了一个modle进来之后容易出现这个错误,因为Android系统定义总方法数是一个short int,short int 最大值为65536,当你引入一些jar包后方法超过65k个方法。一个dex已经原创 2020-11-04 09:18:02 · 233 阅读 · 0 评论 -
No field mActive of type Landroid/util/SparseArray; in class Landroidx/fragment/app/FragmentManagerI
2020-11-03 13:18:38.980 14299-14299/com.yoshin.test E/AndroidRuntime: FATAL EXCEPTION: main Process: com.yoshin.test, PID: 14299 java.lang.NoSuchFieldError: No field mActive of type Landroid/util/SparseArray; in class Landroidx/fragment/app/Fragmen原创 2020-11-04 09:13:02 · 1460 阅读 · 0 评论 -
Lambda expression are not supported at language level 7
因为 Lambda 表达式需要JDK1.8以上的版本支持。修改办法:build.gradle内会被自动添加: compileOptions { targetCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8 }即可,支持Lambda...原创 2020-11-02 10:03:52 · 312 阅读 · 0 评论 -
Glide 4.11 异常:GeneratedAppGlideModuleImpl +
Glide4.10以上异常异常:原因:第一种解决办法第二种解决办法三,也能是混淆的问题帮助:异常:java.lang.IllegalStateException: GeneratedAppGlideModuleImpl is implemented incorrectly. If you've manually implemented this class, remove your implementation. The Annotation processor will generate a co原创 2020-10-30 17:19:40 · 7952 阅读 · 1 评论 -
遇见异常:AS Generate 不能用了
现象在自定义Bean中,想调起Generate,所以通过Alt+insert调用了下,发现调用不起来;又通过右键找到菜单栏的方式,找到了Generate,点击,也调用不起来。解决因为最近在弄kotlin,所以下载了一些kotlin相关的插件。再删除了kotlin用的ButterKnife之后,重启AS,Generate可以用了。原因kotlin和java的ButterKnife插件有冲突...原创 2020-07-06 16:18:22 · 395 阅读 · 0 评论 -
遇见异常记录:ClassNotFoundException
1.异常 Didn’t find class “android.view.View$OnUnhandledKeyEventListener”I/zygote64: at void com.yoshin.company.kotlin2app.MainActivity.onCreate(android.os.Bundle) (MainActivity.kt:17)I/zygote64: at void android.app.Activity.performCreate(android.os原创 2020-06-28 16:40:41 · 599 阅读 · 0 评论 -
Apk安装失败
这样的问题主要是签名冲突造成的,比如你使用了ADB的debug权限签名,但后来使用标准sign签名后再安装同一个文件会出现这样的错误提示,解决的方法除了只有先老老实实从手机上卸载原有版本再进行安装,而adb install -r参数也无法解决这个问题。如果是apk包,请重新下载。4、INSTALL_FAILED_INVALID_INSTALL_LOCATION:无效的安装位置。INSTALL_FAILED_INVALID_INSTALL_LOCATION 无效的安装路径。修改为英文名就OK了。原创 2020-06-28 14:13:01 · 545 阅读 · 0 评论 -
No Network Security Config specified, using platform default
参考地址参考地址:学徒浅析Android——Android7.0(N)对于自定义证书和非CA机构证书的适配校验异常遇见的第一个异常是:No Network Security Config specified, using platform default解决办法: <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:lab原创 2020-06-03 11:51:48 · 23324 阅读 · 13 评论 -
每天记录学习的新知识:异常,当后台返回时间戳为String,提取后转换时间错误
前提:因为Ios不能从后台获取long型时间戳,所以用String包裹。使用:long start = Long.valueOf(bean.getStartTime()) * 1000;long end = Long.valueOf(bean.getEndTime()) * 1000;time.setText(String.format("%s - %s", sdf.format(new...原创 2020-01-17 14:35:02 · 369 阅读 · 0 评论 -
每天记录学习的新知识:android studio 新项目可以build,不能编译、rebuild、clean
转载:AndroidStudio新导入项目,无法编译,rebuild、clean都无效原创 2020-01-17 17:38:52 · 436 阅读 · 0 评论 -
每天记录学习的新知识:Svn因为下载特殊字符图片报错
错误:因为有人把带特殊字符名字的图片上传到Svn,我们这些下载的人就全操作报错了。原因:一些特殊字符对于windows系统(mac 提交的)是不符的(’<>|"?*:’)。解决:直接调用clean up不管用。参考地址:svn 特殊字符文件提交后操作报错...原创 2020-01-02 13:37:32 · 366 阅读 · 0 评论 -
每天记录学习的新知识 :The number of method references in a .dex file cannot exceed 64K.
异常:java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: D:\github_yangjun\BlogDemo\app\build\intermediates\transforms\dexBuilder\debug\0...原创 2019-12-04 09:34:18 · 313 阅读 · 0 评论 -
Suggestion: add ‘tools:replace=“android:appComponentFactory“‘ to <application> element
异常:D:\github_yangjun\BlogDemo\app\src\main\AndroidManifest.xml:22:18-91 Error: Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support...原创 2019-12-02 17:00:15 · 4928 阅读 · 0 评论 -
每天记录学习的新知识:GitHub push failed,SSL certificate problem
遇到个问题:向GitHub提交代码的时候,push failed,报错如下:Failed with error: unable to access 'https://github.com/ShenYangKratos/BlogDemo.git/': SSL certificate problem: unable to get local issuer certificate意思是“SSL...原创 2019-12-02 09:47:36 · 517 阅读 · 0 评论 -
每天记录学习的新知识 : Android 项目可以运行,但是编译异常,R文件爆红
AS 编译新项目R文件爆红,但可以正常运行原创 2019-11-29 09:47:57 · 204 阅读 · 0 评论 -
@SuppressLint 的警告问题记录
@SuppressLint或者@SuppressWarnings黄色警告,虽然不去处理程序依然能够运行,但是实际上,解决这些问题往往会提高程序的安全性、可用性、性能等。转:https://blog.youkuaiyun.com/pangjl1982/article/details/86699164Lint是一个静态检查器,它围绕Android项目的正确性、安全性、性能、可用性以及可访问性进行分析。它检查的对象包括XML资源、位图、ProGuard配置文件、源文件甚至编译后的字节码。Lint包含了API版本检查、性能原创 2019-01-11 16:05:47 · 10921 阅读 · 1 评论
分享