Category : butterknife

I am not able to build android project due to error of butterknife dependency. ERROR Execution failed for task ‘:app:javaPreCompileDebug’. Could not resolve all files for configuration ‘:app:debugAnnotationProcessorClasspath’. Failed to transform butterknife-compiler-8.6.0.jar (com.jakewharton:butterknife-compiler:8.6.0) to match attributes {artifactType=processed-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. > Execution failed for JetifyTransform: /Users/jordan/.gradle/caches/modules-2/files-2.1/com.jakewharton/butterknife-compiler/8.6.0/d3defb48a63aa0591117d0cec09f47a13fffda19/butterknife-compiler-8.6.0.jar. > Failed to transform ‘/Users/jordan/.gradle/caches/modules-2/files-2.1/com.jakewharton/butterknife-compiler/8.6.0/d3defb48a63aa0591117d0cec09f47a13fffda19/butterknife-compiler-8.6.0.jar’ using Jetifier. Reason: ..

Read more

In my source code I have the following ButterKnife annotation: public class MyActivity extends AppCompatActivity { @BindString(R2.string.settings_progress) String progressText; . . . } Now I’ve decided to switch to Android Data Binding. What would the equivalent be if I use Android data binding? Should I declare a variable inside <data></data> tags in the activities XML ..

Read more

i am trying to use butter knife in updated android studio 4.1.2 but not getting generate butterknife injection in Generate option. i have already added Plugin: Android ButterKnife Zelezny build gradle(Project) / / Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() maven { url ..

Read more

I’m using annotated attributes all over my Android project to bind Views and events to fields and methods. @BindView(R.id.textViewOrderId) TextView textViewOrderId; @OnClick(R.id.buttonDateFilter) public void onButtonDateFilter(View view) {…} Migrating out of ButterKnife has become a bit expensive now. I would like to clarify a few things about this new Gradle Plugin change, How will non-final resource ..

Read more

I’m using annotated attributes all over my Android project to bind Views and events to fields and methods. @BindView(R.id.textViewOrderId) TextView textViewOrderId; @OnClick(R.id.buttonDateFilter) public void onButtonDateFilter(View view) {…} Migrating out of ButterKnife has become a bit expensive now. I would like to clarify a few things about this new Gradle Plugin change, How will non-final resource ..

Read more