问题一:
解决方案:
先把butterknife的配置全部去掉,再去Github上面查找butterknife的最新配置方法。
1、首先,在项目Project的build.gradle文件里面,把有关butterknife的配置去掉,如下图所示:
2、然后,在项目app的build.gradle文件里面,将有关butterknife的配置去掉,如下图所示:
![](https://img.haomeiwen.com/i3169108/93ad907e42ced2b5.png)
3、参照Github,重新配置butterknife,如下图所示:
![](https://img.haomeiwen.com/i3169108/35131c8c75624af4.png)
问题二:
Error:Could not get unknown property ‘apkVariantData’ for object of type
com.android.build.gradle.internal.api.ApplicationVariantImpl.
解决方案:
gradle升级到3.0以后去除了一下api,比如apkVariantData这个api就被去掉了,所以造成了上面的bug,所以将gradle版本从3.0.0改为2.3.3即可。
问题三:
Error:A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> Tinker does not support instant run mode, please trigger build by assembleDebug or
disable instant run in 'File->Settings...'.
> can't find tinkerProcessDebugManifest, you must init tinker plugin first!
解决方案:
意思是说,Tinker不支持install run 模式,请手动 build assembleDebug 或者把install run 模式禁用掉。install run 模式禁用方法,打开settings,搜索run,将右边复选框全部取消即可。
参照博文:
http://blog.csdn.net/wuqilianga/article/details/78354454?readlog
http://blog.csdn.net/qq_36317441/article/details/78415833
http://blog.csdn.net/johnny901114/article/details/54934782
http://blog.csdn.net/u011663865/article/details/53104032
网友评论