Android实用
乂影
这个作者很懒,什么都没留下…
展开
-
实用问题处理
fragment中嵌套viewpager,vierpager中有多个fragment不显示 fragmentsList = new ArrayList<Fragment>(); viewPager.setAdapter(new FragmentPagerAdapter(getActivity().getSupportFragmentManager(), fragmentsLi...原创 2020-03-16 15:52:29 · 162 阅读 · 0 评论 -
Android开发人员不得不收集的代码(blankj:utilcode)
为方便查找,已进行大致归类,其目录如下所示: Activity相关→ActivityUtils.java→Demo isActivityExists : 判断是否存在Activity launchActivity : 打开Activity getLauncherActivity : 获取入口activity App相关→AppUtils.java→Demo is转载 2018-01-11 18:41:41 · 1112 阅读 · 0 评论 -
android权限请求框架
封装的权限请求框架,自己练手使用这一个中有两套框架使用方法不同,可按需使用。 github入口. 此文主要说明如何引用及使用方法 How to To get a Git project into your build: Step 1. Add the JitPack repository to your build file gradle maven sbt leiningen Add it in...原创 2018-11-03 12:04:24 · 2839 阅读 · 1 评论 -
WebView使用踩坑
Cannot read property 'getItem' of null" Uncaught TypeError: Cannot read property 'getItem' of null WebSettings settings = mWebView.getSettings(); settings.setDomStorageEnabled(true);//开启DOM s...原创 2018-12-21 12:47:48 · 183 阅读 · 0 评论 -
ReactNative打包后运行问题
生成项目后打包运行报错 Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. dependencies { classpath...原创 2019-02-19 13:49:09 · 302 阅读 · 0 评论 -
高德导航定位未触发activate方法
按照官网一步步做,最后发现不能触发定位,参数、监听都写了,自带定位按钮可以触发activate,而我自己调 mlocationClient.startLocation() 不行。 最后发现少了这一句,真是个坑。第一次用高德的注意 aMap.setMyLocationEnabled(true);注意要写在 aMap.setLocationSource(this); 这句代码后面 ...原创 2019-03-23 12:53:23 · 1252 阅读 · 1 评论 -
Lint found fatal errors while assembling a release target.问题的分析与解决
转自:https://www.kaelli.com/34.html 打正式包的时候,Android Studio毫不客气的给我浇了来了一出错误: org.gradle.api.GradleException: Lint found fatal errors while assembling a release target. To proceed, either fix the issues i...转载 2019-04-23 18:08:19 · 2224 阅读 · 2 评论 -
编译问题记录
There were multiple failures while executing work items 解决:在Module的build.gradle中的defaultConfig下添加: vectorDrawables.useSupportLibrary = true原创 2019-06-11 11:54:42 · 398 阅读 · 0 评论