Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R8编译报错 #136

Open
starlingever opened this issue Aug 5, 2024 · 5 comments
Open

R8编译报错 #136

starlingever opened this issue Aug 5, 2024 · 5 comments

Comments

@starlingever
Copy link

No description provided.

@starlingever
Copy link
Author

项目中两个类与btrace发生冲突,于是把这两个类删去,但还是报错,信息如下:
com.android.tools.r8.errors.b: Undefined value encountered during compilation. This is typically caused by invalid dex input that uses a register that is not defined on all control-flow paths leading to the use.
尝试在app的build.gradle中加入:
minifyEnabled false // 禁用代码混淆
shrinkResources false // 禁用资源缩减
但这并没有什么效果,请问有类似的情况吗?

@starlingever starlingever changed the title R R8编译报错 Aug 5, 2024
@WangFeng-AHU
Copy link
Collaborator

麻烦提供下完整编译错误信息

@starlingever
Copy link
Author

好的,这里是报错的构建日志信息
error.txt

@WangFeng-AHU
Copy link
Collaborator

关闭 r8 能编译成功吗

@stwie2k
Copy link

stwie2k commented Aug 23, 2024

关闭 r8 能编译成功吗

您好我们应该没有开启r8,还是会报这个错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants