AS资料笔记
Cru$h
这个作者很懒,什么都没留下…
展开
-
Android Studio权限请求
存储权限ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},1);原创 2020-04-13 14:19:13 · 624 阅读 · 0 评论 -
关于Received close_notify during handshake的解决方法
在使用Jetpack架构Room创建数据库时出现编译错误,如下:Received close_notify during handshake解决方法:在build.gradle中进行以下操作注释部分 // jcenter()替换为以下代码:maven{ url'http://maven.aliyun.com/nexus/content/groups/public/' }mave...原创 2020-03-15 17:28:40 · 3183 阅读 · 0 评论 -
ViewModelProviders被弃用的代替方法
在Android Studio最新版本中以下语句被弃用: myViewModel= ViewModelProviders.of(this).get(MyViewModel.class);代替方法为:myViewModel = new ViewModelProvider(this).get(MyViewModel.class);...原创 2020-03-14 13:48:59 · 2949 阅读 · 0 评论