-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
R2 not found in my library module #1597
Comments
Please provide a sample project that demonstrates the issue. |
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript {
} allprojects {
} task clean(type: Delete) { and in my module:app apply plugin: 'com.android.application' android {
// To inline the bytecode built with JVM target 1.8 into
} dependencies {
} and in my module library:: boolean signConfigExists = project.hasProperty("SIGN_PROPS") && new File(project.property("SIGN_PROPS")).exists()
} android {
} dependencies {
} configurations.all { |
I need to help my friend |
A bunch of snippets doesn't help me reproduce your problem. I need a self-contained project zip that I can just open, hit run, and see the failure, ideally with as little other code as possible. |
I try to merge two project and when I convert the second project to library module the @BindView(R.id.xxx) in library is tell me (attribute value must be a constant) and when I research I add in my library module:
apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'
and:
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
and:
implementation 'com.jakewharton:butterknife:10.2.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
and I add in my project:
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.1'
my gradle is 5.6.4
but when I replace R to R2 , The R2 is not found
please help me
The text was updated successfully, but these errors were encountered: