butterknife
butterknife copied to clipboard
gradle 7.3.3 can not generate R2
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 ?
I have the same problem
butterknife and realm all need to fix
is there no one to solve this problem ? or we need delete all butterknife ??
Any solution found yet for this issue?
这是来自QQ邮箱的自动回复邮件。 您好,现在无法回复您的邮件。我将尽快给您回复。
same ,please help us.
Delete all butterknife from your project. Butterknife is not maintained anymore. There's no way to add support for new Gradle version.
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'