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

gradle 7.3.3 can not generate R2 #1673

Open
strongmanb opened this issue May 13, 2022 · 8 comments
Open

gradle 7.3.3 can not generate R2 #1673

strongmanb opened this issue May 13, 2022 · 8 comments

Comments

@strongmanb
Copy link

My project library can not found R2 When gradle version upgrade to 7.3.3. I guess that's namespace caused it,how can I fixed it ?

@lxb-symbol
Copy link

I have the same problem

@zhaosunny1
Copy link

butterknife and realm all need to fix

@zhaosunny1
Copy link

is there no one to solve this problem ? or we need delete all butterknife ??

@dodsont
Copy link

dodsont commented Aug 31, 2022

Any solution found yet for this issue?

@EesiLife
Copy link

EesiLife commented Oct 11, 2022 via email

@zhangnanvip
Copy link

same ,please help us.

@giaur500
Copy link

giaur500 commented Dec 6, 2022

Delete all butterknife from your project. Butterknife is not maintained anymore. There's no way to add support for new Gradle version.

@d2callpod
Copy link

For me the problem is moving the package attribute from the manifest to gradle as namespace. Without it the generated R2 classes to not have package x.y.z at the top. Moving it back to the manifest solves the problem. Just a workaround that works for now.

Keep this in the AndroidManifest.xml.

<manifest 
	xmlns:android="http://schemas.android.com/apk/res/android"
	package="x.y.z">

Instead of this in build.gradle

namespace 'x.y.z'

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

8 participants