-
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
Android X support #1280
Comments
I got my app compiling by adding my own copies of the old package "android.support.annotation"s for @callsuper and @UiThread.
Its a start, but then I hit further problems caused by this new jetifier process with other libraries. Guess we just have to be patient to wait for all these third party libraries to update. |
I'll take a crack at this. |
Merged |
I'm sorry to say the error still persists. |
Can you paste the stack trace? Are you building against a JAR cut from master? |
It's from the import statement for the annotations which is found in the auto generated viewbinding files. |
|
Um, in terms of production code how safe is this on a scale of 1-10 where 1="wtf are you doing this shouldn't be in the same room as a production app" |
This isn't working for me |
Ok, now it works, just be sure to put it inside the |
Is it safe to use 9.0.0-SNAPSHOT version in production code? |
In case like me you are confused about the gradle settings, you can find the complete solution to this as a stack overflow answer: https://stackoverflow.com/a/52308912/10224384 |
Please publish releases instead of snapshots or please leave a note. Shall I update README? |
Hello `* What went wrong:
how to fix it? |
@siavash-sajjad try butterknife 9+ first. then you'll need to add |
implementation 'com.jakewharton:butterknife:10.2.0' |
It works for me, thanks~ |
I've recently attempted to upgrade a project which uses Butterknife v8.8.1 to make use of the new Android X libraries by using the jetifier tool in Android Studio.
The project fails to compile as the generated _ViewBinding classes reference the old android.support.annotation. annotations which no longer exist.
There may also be additional issues I'm not aware of.
I was just wondering if there was a plan to migrate over to reference the new androidx package names in the generated code.
I'm not familiar with the Butterknife code, but let me know if there's anything I could contribute to the project to facilitate adding support.
Thank you for your time
The text was updated successfully, but these errors were encountered: