体验最新版AndroidStudio3.0 Canary 8的时候,发现之前项目的butter knife报错,用到注解的应该都会报错Error:Execution failed for task ':app:javaPreCompileDebug'.> Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - butterknife-7.0.1.jar Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future. See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.在app的build中android { ... defaultConfig { ... //添加如下配置就OK了 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } } ...}Mr.Smile填坑记——AndroidStudio3.0 Can
-
上面webview 下边评论
NestedScrollView,RecyclerView,webview。评论与webview相结合
-
Activity与AppCompatActivity去掉标题栏
Activity与AppCompatActivity去掉标题栏
-
百度鹰眼轨迹管理台注意事项
仔细阅读文档,深度理解写文档作者的用意。
-
通过gradle下载最新依赖包的一种方式
通常我们添加依赖包有两种方式,一种是直接添加到libs文件夹下面,另一种是通过gradle进行依赖,例如:
-
关于Plugin with id 'com.github.dcendents.android-maven' not found.问题解决
com.github.dcendents.android-maven
-
RecycleView4种定位滚动方式演示
将RecyclerView滑动到指定位置,或者检索RecyclerView的某一项(各个项的高度不确定),然后定位滚动这到一项,将它显示。 下面就讲解4种RecyclerView定位滚动
-
android ScollView 嵌套 WebView 底部空白,高度无法自适应解决
最近要做一个页面,需要 ScrollView 嵌套 WebView,怎么嵌套,怎么解决焦点和 touch 事件冲突,网上一大堆,这里就不赘述了,但是发现 WebView 从一个高度很高的网页加载一个高度很低的网页的时候,高度无法自适应了,造成底部会有一大片的空白,解决方案找到了挺多,描述一下:
-
Android根据字符串加载Activity和图片
根据传入的字符串跳转Activity,根据传入的字符加载资源
-
for example, for httpclient use HttpUrlConnection or okhttp instead
原因:去除commons-logging.jar包后 maven依赖的commons-logging与系统自带的起冲突了.
-
html5--移动端视频video的android兼容,去除播放控件、全屏等
android下html5的视频播放一直是前端兼容的重灾区,各种体验差,被诟病已久。但之前的故宫穿越H5,和吴亦凡入伍H5,利用的视频技术,貌似又给人一种新面貌。