随笔分类 -  毕设完成过程记录

摘要:vivo系统升级之后,在真机调试时一直安装失败 并提示: 解决办法:在gradle.properties中添加 android.injected.testOnly=false 阅读全文
posted @ 2020-03-17 11:24 阿布不学习 阅读(5595) 评论(0) 推荐(0) 编辑
摘要:W/System.err: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnec 阅读全文
posted @ 2020-03-14 16:52 阿布不学习 阅读(861) 评论(0) 推荐(0) 编辑
摘要:在Java中操作时间的时候,需要计算某段时间开始到结束的区间日期,常用的时间工具 Date date = new Date();//获取当前时间 Calendar calendar = Calendar.getInstance(); //创建Calendar 的实例 calendar.add(Cal 阅读全文
posted @ 2020-03-01 15:54 阿布不学习 阅读(13075) 评论(0) 推荐(0) 编辑
摘要:转载自:https://blog.csdn.net/akuma_/article/details/83992871 Not a primitive array: class org.json.JSONArray 报错语句:JSONArray okJsonArray = new JSONArray(j 阅读全文
posted @ 2020-02-29 11:37 阿布不学习 阅读(666) 评论(0) 推荐(0) 编辑
摘要:public class newThread extends Thread { private String msg; public void run(){ //第一步:实例化URL对象 String address="https://api.heclouds.com/devices/5847584 阅读全文
posted @ 2020-02-17 10:17 阿布不学习 阅读(780) 评论(0) 推荐(0) 编辑
摘要:package com.example.webview; import android.os.Bundle; import android.view.View; import android.widget.Button; import androidx.appcompat.app.AppCompat 阅读全文
posted @ 2020-02-16 20:10 阿布不学习 阅读(1398) 评论(0) 推荐(0) 编辑
摘要:1、首先在“Project”结构下将需要的包复制进入libs文件夹中 2、在导入的jar包处右键 选择“Add As Library” 3、选择你要导入到的那个module,如果当前只是一个项目,下拉框中除了app也没有其他的内容,那么直接点击ok确认。 4、然后就完成了jar包的添加 阅读全文
posted @ 2020-02-16 09:54 阿布不学习 阅读(1411) 评论(0) 推荐(0) 编辑
摘要:在报该编译错误的module的build.gradle中加入如下配置项,排除掉中间生成的META-INF/xxx文件 packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META- 阅读全文
posted @ 2020-02-16 09:41 阿布不学习 阅读(4619) 评论(0) 推荐(0) 编辑
摘要:两个方法:1.直接将login方法设置为静态方法2.想办法获取BaseActivity的实例,再调用login方法 代码1: public class BaseActivity extends Activity { private static BaseActivity instance; @Ove 阅读全文
posted @ 2020-02-10 17:39 阿布不学习 阅读(485) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/mattdong0106/article/details/10139389 EditText中的getText()方法的返回值为CharSequence,如果我们想要获得string类型数据的话,需要在后边加上.toString 另外,Strin 阅读全文
posted @ 2020-02-10 17:32 阿布不学习 阅读(928) 评论(0) 推荐(0) 编辑
摘要:报错如图: 解决方法: fragment中没有getSystemService这个方法,如果你要用的话,应该把Context传过去 阅读全文
posted @ 2020-02-07 16:56 阿布不学习 阅读(786) 评论(1) 推荐(1) 编辑
摘要:可使用控件ScrollView来做下翻滚动条,但是ScrollView内部只能包含一个控件(可在其内部添加一个layout布局,在布局内部再添加内容) <ScrollView android:layout_width="409dp" android:layout_height="wrap_conte 阅读全文
posted @ 2020-02-04 12:14 阿布不学习 阅读(1461) 评论(0) 推荐(0) 编辑
摘要:package com.example.airmonitor.ui.mine; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.vi 阅读全文
posted @ 2020-02-04 10:54 阿布不学习 阅读(540) 评论(0) 推荐(0) 编辑
摘要:解决办法:在布局文件中给添加 android:focusableInTouchMode="false" 阅读全文
posted @ 2020-02-04 10:52 阿布不学习 阅读(735) 评论(0) 推荐(0) 编辑
摘要:报错: 解决方法: 输入select host,user,plugin,authentication_string from mysql.user; 看用户信息 更改加密方式,重置密码:(原加密方式为:alter user 'root'@'localhost' identified by '123' 阅读全文
posted @ 2020-01-30 12:45 阿布不学习 阅读(346) 评论(0) 推荐(0) 编辑
摘要:本文转载自:https://blog.csdn.net/hua1011161696/article/details/80666025 解决方案: 步骤一:关闭数据库服务端mysqld程序 两种方式: ①快捷键 windows + R ;输入 services.msc ; 找到MySQL 停止其服务( 阅读全文
posted @ 2020-01-30 12:28 阿布不学习 阅读(982) 评论(0) 推荐(0) 编辑
摘要:例如: <activity android:name="com.google.android.gms.ads.AdActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" tools:replace="android:t 阅读全文
posted @ 2020-01-14 13:08 阿布不学习 阅读(665) 评论(0) 推荐(0) 编辑
摘要:在引入 库文件时候,AS报错 Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.androi 阅读全文
posted @ 2020-01-14 13:06 阿布不学习 阅读(3193) 评论(0) 推荐(0) 编辑
摘要:切换到国内的Maven镜像仓库。修改项目根目录下 build.gradle 文件,将 jcenter() 或者 mavenCentral() 替换掉即可。可以用国内的仓库代替: 阿里的仓库地址:http://maven.aliyun.com/nexus/content/groups/public/O 阅读全文
posted @ 2020-01-09 15:03 阿布不学习 阅读(1315) 评论(0) 推荐(0) 编辑
摘要:原文链接:https://blog.csdn.net/u010515279/article/details/73513027 Android开发过程中,遇到过无数次这个错误,每次都是临时去百度,感觉是时候写一写总结了。 这个错误一般在初次创建工程或者导入别人的工程时出现。 关于这个错误,基本上都是因 阅读全文
posted @ 2020-01-08 21:25 阿布不学习 阅读(1272) 评论(0) 推荐(0) 编辑