Java 8 language support, as requested by 'android.enableD8.desugaring= true' in your gradle.properti

最近在集成网易云信的即时通讯,被迫迁移到androidx,记录其中的问题。
迁移到andoridx。
和tinker的冲突

和kotlin的冲突。

Java 8 language support, as requested by 'android.enableD8.desugaring= true' in your gradle.properti_第1张图片

kotlin之前不需要写findviewbyid,直接写的的,现在找不到了。

Java 8 language support, as requested by 'android.enableD8.desugaring= true' in your gradle.properti_第2张图片

整个项目基本都需要改,所有的界面,所有的viewmodule
Java 8 language support, as requested by 'android.enableD8.desugaring= true' in your gradle.properti_第3张图片

费了好大功夫改完了包名,一运行都没有打开app就奔溃了

在这里插入图片描述

所有xml文件中的v4-v7控件都要更改,

Java 8 language support, as requested by 'android.enableD8.desugaring= true' in your gradle.properti_第4张图片

清单列表文件也要更改
Java 8 language support, as requested by 'android.enableD8.desugaring= true' in your gradle.properti_第5张图片

又遇到
AGPBI: {“kind”:“error”,“text”:"No resource found that matches the given name (at \u0027layout_toRightOf\u0027 with value \u0027@id/img_user
Java 8 language support, as requested by 'android.enableD8.desugaring= true' in your gradle.properti_第6张图片

你可能感兴趣的:(Android)