butterknife Questions

5

Solved

I am trying to use this library project, so I tried to run the sample application (in /app/source/main/ in the Github link), and in MainActivity.java, I am getting the error on the import import ...
Moderator asked 21/7, 2015 at 6:4

3

Solved

I keep getting the error Plugin with id 'android-apt' not found. What's going wrong here? plugins { id "me.tatarka.retrolambda" version "3.2.5" } apply plugin: 'com.android.application' apply pl...
Stepparent asked 12/9, 2016 at 20:24

5

There is a BaseActivity with a layout and a sub Activity that extends this BaseActivity. How do you bind views so that views in BaseActivity are binded in BaseActivity and views in Sub activity ar...
Northnorthwest asked 22/2, 2018 at 5:6

2

this is an extension of Android: Why do we need to use R2 instead of R with butterknife? and Reference in R.java not final I understand that fields of R.java in the library project do not have fin...
Bryonbryony asked 2/2, 2018 at 6:44

5

Solved

I have the following problem when I run the 'app' (Android studio emulator): Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicitly declared now....
Credo asked 3/11, 2017 at 2:49

3

Solved

I am using butterknife library. I don't know much about how to use it. I found injectView and bind doing the same thing but I am not really sure. Can anyone explain the difference between these two...
Buyer asked 1/2, 2016 at 4:40

3

Solved

I am facing java.lang.IllegalStateException Required view 'splash_text' but I have included it in the xml. I am using Butterknife to Bind the views. compile 'com.jakewharton:butterknife:7.0.1' ...
Wigwag asked 3/3, 2016 at 11:23

3

Solved

I get an exception java.lang.RuntimeException: Unable to bind views for Fragment on ButterKnife.bind(this, view). The code is as shown below: @Override public View onCreateView(LayoutInflater infl...
Glister asked 9/8, 2015 at 16:21

2

I have a layout where I include the same sub-layout multiple times, each one with a different role: <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" an...
Lapse asked 26/5, 2015 at 12:37

4

As onItemClick is no more in RecyclerView, does ButterKnife still able to handle its item clicks with @onItemClick or with @onClick annotations? If not so, any work around to use that?
Dardani asked 6/11, 2014 at 4:24

6

Solved

@OnClick is not working in implementation of ButterKnife Library When I click on the Button, nothing is happening. This is my full code: public class MainActivity extends ActionBarActivity { @I...
Thingumajig asked 3/1, 2015 at 12:23

5

Solved

I injected views perfectly using butterknife library. But when I try to implement listeners, for example onclick I'm not able to implement them. Following java code will help you to understand my p...
Mclemore asked 13/4, 2015 at 11:7

3

Solved

I'm using Butterknife for the first time but something must be wrong. I have a fragment and a Listview and a TextView just for testing but Butterknife wont bind my variables: public class MyFragme...
Vange asked 11/12, 2015 at 17:0

1

Solved

Hi I have just updated ButterKnife library version 8.7.0 to 8.8.0 compile 'com.jakewharton:butterknife:8.8.0' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.0' and found that: f...
Fluidextract asked 4/8, 2017 at 23:24

5

Solved

I am trying to add the latest version of butterknife and I get this error from gradle: Error:(31, 0) Gradle DSL method not found: 'apt()' Possible causes:The project 'MyProject' may be using a ...
Muna asked 26/4, 2016 at 21:31

2

Solved

I was looking at the generated code of ButterKnife, and noticed that for @OnClick annotations it is using a DebouncingOnClickListener, implemented by the library. What the DebouncingOnClickListene...

2

Solved

i recently integrated butterknife in my android project, and now i am trying to use @OnCheckedChanged annotation for radiogroup. but getting error of not giving callback. So what is the right metho...
Juanitajuanne asked 9/5, 2017 at 12:25

1

Solved

Android Studio by default format Butterknife code in this way: @BindView(R.id.text_view) TextView mTextView Is there a way to tell Android Studio to format code in one line, like this: @BindVi...
Dariodariole asked 9/6, 2017 at 11:57

3

I wanted navigation drawer in all my activities.So i used a BaseActivity for Navigation drawer and extended other activities from base activity.Base activity has Navigation drawers. Dashboard activ...
Latinist asked 14/11, 2016 at 6:46

5

Solved

I've just tried to generate signed apk for one of my projects (I already did this before), but (maybe since updating Android Studio) I'm getting Error:Error: Expected resource of type string [Re...
Sting asked 26/1, 2016 at 8:44

1

Solved

I am trying to run my android application through Proguard, however this keeps appearing: Warning:Exception while processing task java.io.IOException: Can't write [C:\Users\Aliaksei\AndroidStudio...
Stimulus asked 19/3, 2017 at 16:46

7

Solved

I am trying to implement Butterknife into my android studio project. However when I do so I get an error on @InjectView "cannot resolve symbol InjectView". Have I not implemented Butterknife su...
Varela asked 25/1, 2015 at 16:49

2

I need to install the plugin Butter Knife. Where can I download it? I downloaded a .jar plugin (but not if the file is the one I need), I have installed but when I click on the option "generate" no...
Rabid asked 10/6, 2016 at 18:15

1

Solved

I've been using butterknife for a few months and I've just noticed in its documentation that it says: Now make sure you use R2 instead of R inside all Butter Knife annotations. Why is that? I...
Shiv asked 21/2, 2017 at 8:22

2

Solved

Can anyone explain why my View element (ListView) is null with the following code: public class NewsFragment extends Fragment { @InjectView(R.id.news_listView) ListView lv; @Override public V...
District asked 14/12, 2013 at 18:53

© 2022 - 2024 — McMap. All rights reserved.