- 博客(28)
- 资源 (10)
- 收藏
- 关注
原创 centos7安装mysql8.0的rpm版本
1.wget https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpmyum -y localinstall mysql80-community-release-el7-3.noarch.rpm[root@localhost mysql]# wget https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm--2021-08-07 10:...
2021-08-07 11:23:07
698
原创 Springboot 多环境启动报错 Do not use @ for indentation ,active: @profile.name@ 错误解决方法
1.idea可能没有识别出来maven,右键项目中的pom.xml--maven--report2.或者点击3.去掉POM文件中的空格,先删除空格然后再按tab键恢复。maven会重新加载。
2021-07-22 12:59:59
3346
原创 Centos7 上 GitLab 详细安装步骤
1.安装 gitlab 之前, 先安装好git服务, 可参照git 官网安装链接2.安装包gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm下载3.sudo rpm -ivh /opt/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpmsudo yum install -y curl policycoreutils-python openssh-server croniesudo yum install -y lokkit sudo ...
2021-07-20 15:40:41
427
原创 gradle 无法下载 https://downloads.gradle.org/distributions/gradle-5.4.1-all.zip
可以进入页面https://services.gradle.org/distributions/查找自己的gradle 版本,如果不知道自己的版本,新建一个空项目,会自动加载一个gradle版本。下载完成后 然后找到 下面的目录 :把刚才下载的版本复制过去,然后解压到当前目录即可。如果没加载到,可以重启Android studio。...
2021-07-19 11:01:15
991
原创 Gradle build 报错:Received status code 400 from server: Bad Request
全部错误:Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom'. Received status code 400 from server: Bad Request。解决办法:因为我自己配置了一个代理,导致无法连接到dl.google.com打开 file -- setting ---搜索http 找到 http Proxy..
2021-07-19 10:54:30
1004
1
原创 Android 调试启动错误 Error type 3 一般是5.0 一下机型
Error while executing: am start -n "com.****.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHERStarting: Intent { act=android.intent.action.MAIN cat=[android.intent.cate
2016-12-08 16:28:02
1502
原创 react-native 启动服务器时候报错Could not install the app on the device, read the error above for details.
Could not install the app on the device, read the error above for details.Make sure you have an Android emulator running or a device connected and haveset up your Android development environment:
2016-10-13 16:24:35
19560
3
转载 android 调试启动错误Error type 3
Error while executing: am start -n "com.****.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHERStarting: Intent { act=android.intent.action.MAIN cat=[android.intent.cate
2016-08-17 12:39:47
6401
原创 react-native 环境搭建遇到问题
1. D:\Android\WorkSpace\AwesomeProject>react-native run-androidJS server already running.Building and installing the app on the device (cd android && gradlew.bat installDebug...FAILURE: B
2016-07-14 16:36:53
21491
原创 解决 Android studio gradle 的 read-only property 'jniFolders' 编译错误
Error:(73, 0) Cannot set the value of read-only property 'jniFolders' on open file 因为 build.gradle 中 有删除这些内容/ clean.dependsOn 'cleanCopyNativeLibs' tasks.withType(com.android.bui
2016-04-25 12:31:18
9334
原创 l.ExecException: Process 'command 'C:\Java\jdk1.8.0_45\bin\java.exe'' 错误
Android studio 出现 错误 com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit val
2016-03-30 12:09:17
2695
原创 tf卡数据恢复,手机里tf热插拔造成手机无法识别,TF卡电脑无法读取,提示使用前需要格式化
前两天在手机没卸载sd卡的时候 把TF卡拔掉了,然后再装到手机上就无法识别了,放到电脑离提示使用前需要格式化,这种情况应该是 sd卡 在手机热插拔的时候造成文件系统损坏,可以使用 下面命令进行恢复 1. 把sd卡或者tf卡 放到读卡器 2.插入电脑后 提示需要格式化,点击取消3.在属性里面 无法执行检查4.win+R 打开运行对话框 ,输入chkdsk H:/F
2016-02-18 14:16:27
10751
4
转载 webview 无法释放内存
在这次开发过程中,需要用到webview展示一些界面,但是加载的页面如果有很多图片就会发现内存占用暴涨,并且在退出该界面后,即使在包含该webview的Activity的destroy()方法中,使用webview.destroy();webview=null;对内存占回收用还是没有任何效果。有人说,一旦在你的xml布局中引用了webview甚至没有使用过,都会阻碍重新进入Application之
2016-02-02 12:27:21
4457
转载 android adb shel l命令使用 解决 Read-only file system
android adb shell命令使用 当运行一个命令的时候出现rm failed for CoeeRoat.apk, Read-only file systemadb shell mount -o remount rw /system 挂载设备内置应用:adb shell mount -o remount rw /systemadb push clock.
2016-01-07 09:47:19
5061
原创 关于FloatingActionButton
Support Library中简单的控件 android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_
2015-12-09 15:03:39
697
转载 android studio 2.0 preview 编译报错
Error:Internal error: (java.lang.ClassNotFoundException) com.android.repository.io.FileOpUtilsjava.lang.ClassNotFoundException: com.android.repository.io.FileOpUtilsat java.net.URLClassLoader.find
2015-12-09 11:39:48
1424
原创 com.android.dex.DexException: Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart;
com.android.dex.DexException: Multiple dex files define Lorg/apache/http/entity/mime/FormBodyPart; Android studio 编译的时候提示错误,1. 图片被修改名字 2.同名不同后缀的图片3。重复的jar包4 。git,提交的时候把build 目录提交到服务器,另外一个人更新
2015-12-08 17:12:54
2310
原创 使用回调方法在adapter 更新activtiy 数据
因为大家写一些东西的时候,经常会用在adapter里面去更新activity的数据。今天正好又遇到了 所以写了个回调方法 。闲来无事,发个博客吧 。一般adapter 更新activity 有多种方法,例如广播了 等等,但是广播不太安全, 就写了个回调方法public class MyActivity extends Activity implements MyAdapte
2015-11-13 16:40:11
802
原创 Android 中加载v4包里面的fragment
在使用过程中FragmentManager manager = getSupportFragmentManager();FragmentTransaction transaction = manager.beginTransaction();transaction.add(R.id.fragment_container, fragment, tag);transaction.add
2015-11-03 12:42:31
804
原创 git 的一些常用命令整理
如何新建版本库 1, 登录到 137 上面,通过 su git 命令切换到 git账户2, 到 /home/git/repositories 目录下面 通过 git init --bare test.git 新建版本库3, 将新加的用户的key写入到 /home/git/.ssh/authorized_keys 中4, 编辑 /home/git/.gitosis.conf
2015-10-29 14:06:43
596
原创 关于自己写博客的感想
今天解决一个问题,无意中搜索,竟然搜到自己的博客,虽然以前没写几篇文章。从08年注册csdn账号一来,那时候本来想把自己在学习过程中把自己的技术点点滴滴记录起来,不想后来一忙一直没有怎么写博客,今天回过头来看看很是后悔。今天决定重新捡起来。下面收集了一下写博客的有点和一些自己的想法 ,写出来激励下自己。一: 为自己写,1 写博客可以梳理自己学习知识的流程,并且能过把自己的错误记下来。2
2015-10-29 13:42:39
550
转载 android 常见错误汇集
错误:android library projects cannot be launched解决:properties 在android选项中将 is library中将前面的勾去了
2014-03-17 15:08:22
623
原创 android Activity中设置setResult 没有触发onActivityResult
昨天修改例如:Activity1 中有onActivityResult 方法 ,在Activity2 中有setResult 方法 ,Activity2 关闭后 应该触发Activity1的 onActivityResult 的方法的,但是我manifest 文件中activity2的android:launchMode="singleTask" ,使Activity变成单例模式 ,
2014-02-12 10:44:06
9991
原创 oracle win64 11g 安装错误信息
【转】 Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"2012年04月24日 星期二 23:06今天在 x64 的 Win7 上重新安装了 Oralce 后,通过 PL/SQL 连接数据库时,提示如下错误信息环境windows7 64bitOracle...
2012-07-01 09:48:56
121
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人