butterknife
Gradle DSL method not found: ‘apt()’
It’s entirely possible that there’s a way to get your plugins to work. Given your error, I’d start by following what the ButterKnife project uses, get that working, then see if there is a recipe for what you’re trying. First, in your top-level build.gradle file, include classpath ‘com.neenbedankt.gradle.plugins:android-apt:1.8’ in the buildscript dependencies, such as: buildscript … Read more
Android Butterknife – binding in fragment
This work for me: Gradle compile ‘com.jakewharton:butterknife:8.6.0’ annotationProcessor ‘com.jakewharton:butterknife-compiler:8.6.0’ Code . … @BindView(R.id.text_input) TextView text_input; @Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_home, container, false); ButterKnife.bind(this, view); return view; } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); text_input.setText(“Lorem Ipsum”); … .
Remove “Method is never used” warning for OnClick annotation in Android Studio
The correct way in Android Studio to suppress these warnings is to press Alt+Enter on the method giving the Method ‘yourFunction()’ is never used warning, and selecting Suppress for methods annotated by ‘butterknife.OnClick’
java.lang.VerifyError: Verifier rejected class on Lollipop when using release APK
Cleaning out the build folder resolved the problem. Not sure why ART had an issue but Dalvik did not. Running a gradle clean task was not clearing out my build folder all the way. I had to do it manually, but clean may work for some people.