Mac os系统Android Studio 4.1 版本 不适配butterknife的问题

方案:1.在Android studio 中选择Preferences选项卡,现在plugins条目 ,在Marketplace中选择下载Android-ButterKnife-Injections,如下图:

Mac Android Studio 4.1.1 版本 不适配butterknife的问题

 

2.将/Users/xxx/Library/Application Support/Google/AndroidStudio4.1/plugins/目录下,Android-ButterKnife-Injections.jar文件放到 /Applications/Android Studio.app/Contents/plugins/目录下。

3. 删除/Users/xxx/Library/Application Support/Google/AndroidStudio4.1/plugins目录下,Android-ButterKnife-Injections.jar和android-butterknife-zelezny.jar,有就删。

4.便可使用Android-ButterKnife,如下图:

Mac Android Studio 4.1.1 版本 不适配butterknife的问题

 

相关文章: