Android Studio使用问题之Instant Run

Android Studio的Instant Run是2.0以后的版本新给出的特性,旨在快速运行新修改的程序。可是最近在开发过程中,发现Android 4.4.4的机器运行报以下错误:

Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication:
java.lang.ClassNotFoundException: Didn’t find class
“com.android.tools.fd.runtime.BootstrapApplication” on path:
DexPathList[[zip file “/data/app/com.elitech.rb.debug-1.apk”],
nativeLibraryDirectories=[/data/app-lib/com.elitech.rb.debug-1, /system/lib]]

这里只要把Instant Run禁用掉就可以了:Settings–> Build,Execution,Deployment –>Instant Run

封装一个vue component的方法

为什么选择自己封装第三方库

最近几个月来我司把公司之前两三年的所以业务都用了vue重构了一遍,前台使用了vue+ssr,后台使用了vue+element,在此过程中包装和自己写了很多的vue component。其实vue 写component相当方便和简单的,github上有很多的vue component都只是简单的包装了一些jquery或者原生js的插件,但我个人是不太喜欢使用这些第三方封装的。

Read More