安卓开发遇坑记录
16lz
2021-12-04
Android10(API 29)getExternalStorageDirectory没权限
在AndroidManifest.xml文件中application节点中加上android:requestLegacyExternalStorage="true"属性就可以了,如下:
参考官方文档: https://developer.android.google.cn/training/data-storage/compatibility
andoird studio 运行的模拟器跑到了侧边栏,Emulator,想让他单独运行
This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
Toolbar toobar = findViewById(R.id.toolbar);setSupportActionBar(toobar);
取消主题的bar样式
方法1
values/styles.xml
方法2
修改style标签的 parent 属性,为无 actionBar 的主题
Minimum supported Gradle version is 6.5. Current version is 6.1.1. If using the gradle wrapper...
我尝试着新建了一个项目然后吧所有的
classpath 'com.android.tools.build:gradle:4.1.1'替换了一遍还是没有效果,最后发现这个项目中缺少了 gradle 文件,于是将 新项目中的gradle目录复制进去
更多相关文章
- NPM 和webpack 的基础使用
- 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
- Android(安卓)忽略文件
- Android读写文件
- RelativeLayout用到的一些重要的属性:
- android Webview基本配置以及android与js交互
- 获取Android正在运行的任务和服务
- Android运行过程中一点小问题
- android--------根据文件路径使用File类获取文件相关信息