杂点记录
fatkang
这个作者很懒,什么都没留下…
展开
-
android studio 一直不停indexing
android studio 突然不停indexIng,不断尝试clean,rebuild 无果。网上查询解决方法:依次打开File > Invalidate Caches/Restart 点击后自动重启androidstudio,恢复正常。记录一下...原创 2020-04-23 17:27:21 · 240 阅读 · 0 评论 -
Android合成图片
private fun convertViewToBitmap(view: View): Bitmap { view.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED), View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFI...原创 2020-04-06 17:14:23 · 548 阅读 · 0 评论 -
包重复java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files
项目报错:Error:java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files问题原因:包重复问题解决方法:去除重复包引用原创 2019-12-06 10:02:57 · 814 阅读 · 0 评论 -
kotlin databinding 资源文件报错
报错信息Error:Execution failed for task ‘:app:compileDebugJavaWithJavac’.android.databinding.tool.util.LoggedErrorException: failure, see logs for details.Exception while handling step android.databind...原创 2019-11-12 11:28:27 · 515 阅读 · 0 评论 -
android 判断webview是否已经滚动到底部
private fun setWebView(webviewcontent: WebView, content: String) { webviewcontent.settings.javaScriptEnabled=true webviewcontent.settings.builtInZoomControls=true webviewcontent.settings.d...原创 2019-07-28 21:12:14 · 1601 阅读 · 1 评论 -
flutter 安装问题
运行 flutter doctor 后报:(Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses)运行flutter doctor --android-licenses一直输入 y原创 2019-07-23 10:46:36 · 104 阅读 · 0 评论 -
okhttp缓存
CacheControl control = new CacheControl.Builder() //不使用缓存,但是会保存缓存数据 //.noCache() //不使用缓存,同时也不保存缓存数据 // .noStore() //只使用缓存 //...原创 2019-04-24 17:48:26 · 316 阅读 · 0 评论 -
java.lang.IllegalStateException: An instance of OnFlingListener already set.
项目中recyview SnapHelper这个辅助类的时候,抛出一个异常"illegalstateexception an instance ofonflinglistener already set".java.lang.IllegalStateException: An instance of OnFlingListener already set.android.support.v7...原创 2019-04-16 11:53:58 · 1364 阅读 · 0 评论 -
Android软件盘(EditText)的搜索功能 回车改为搜索
edittext 软键盘文字根据需求更改 在xml中更改imeOptions 属性 <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:imeOptions="actionSearch" android:inputTy...原创 2019-04-15 17:06:21 · 364 阅读 · 0 评论