
android studio
blog_jenny
学习是一种信仰。学而不思则罔,思而不学则怠!
展开
-
MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
近期做项目时,引用别人的一个库,完了之后项目就是无法正常运行起来,报错如下:大概就是运行时异常,找不到启动的Activity2021-07-19 17:28:26.115 19262-19282/cn.forestar E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!2021-07-19 17:28:26.115 19262-19262/cn.forestar E/Minikin: Could not get c..原创 2021-07-20 14:19:08 · 1702 阅读 · 2 评论 -
DES加密算法(密文只有字符串和数字)java和android加密的结果一致(可放在url中)
参考别人的代码:https://www.cnblogs.com/qiantao/p/12979975.html解决问题:androidStudio与BS采用DES加密后,BS加密结果固定,androidStudio加密值动态变动问题解决思路: 将生成加密方法使用的KEY值固定import java.security.*;import javax.crypto.Cipher;import javax.crypto.SecretKey;import javax.crypto.Secr..原创 2021-01-28 15:37:12 · 707 阅读 · 0 评论 -
解决ConstraintLayout约束布局一行显示多个textView内容叠加问题
参考:https://blog.youkuaiyun.com/murongbingxiao/article/details/78414248?utm_source=blogxgwz7今天用ConstraintLayout约束布局为了提升效率,处理过程发现遇到了问题,一行内有多个文本时,不处理会叠加显示内容。处理前与处理后效果对比:注意:标题work_record_project_name与...原创 2020-02-23 21:59:19 · 6239 阅读 · 0 评论 -
python+UIAutomator2安卓自动化测试
最近工作需要用到自动化测试,对长期维护的项目且只修改部分功能进行个全方位的功能测试,老大让学习使用自动化,就开始学习了。python+uiautomator2自动化测试官网https://github.com/openatx/uiautomator2#installation一、准备工作 1、环境搭建 1.1、安装python环境及Python 包管理工具p...原创 2019-11-29 17:55:03 · 589 阅读 · 0 评论 -
Android Studio 3.0 之后Tools没有Android选项
参考:https://blog.youkuaiyun.com/csdn2314/article/details/81142306Android Studio 3.0 之后Tools没有Android选项,想打开monitor查看文件就不行,解决方法:view-->Tool windows ->Device File Explorer...原创 2018-11-27 16:58:51 · 1998 阅读 · 0 评论 -
android启动页为什么会显示一下黑屏或白屏
参考: https://www.cnblogs.com/woaixingxing/p/6438484.html1、为什么会出现这种情况,在启动Acitivty的onCreate()方法里面,执行setContentView(R.layout.activity_splash);出现白屏。 设想,onCreate---setContentView这个并不是发生在,窗体绘制的第一步,系统会在执行这...原创 2018-11-22 16:16:02 · 296 阅读 · 0 评论 -
Activity设置主题背景后AlertDialog的背景随之改变的问题
最近做项目时,在启动页提示AlertDialog时,发现AlertDialog的背景随之改变的问题参考:https://blog.youkuaiyun.com/Lindroid20/article/details/811487581、为了解决启动软件时,出现的黑屏或是白屏问题,需要在启动页面的activity修改它的theme主题样式<style name="Launch" parent="...原创 2018-11-22 15:47:54 · 879 阅读 · 0 评论 -
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'的解决办法
参考:https://blog.youkuaiyun.com/qq_32454537/article/details/79627228让android studio 输出效果在Setting->Build,Execution,Deployment->Compiler中的Command-line Opptions中输入–stacktrace启用堆栈跟踪...转载 2018-11-15 18:55:00 · 289 阅读 · 0 评论 -
Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
Error:Execution failed for task ':app:preDebugAndroidTestBuild'.> Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test ...原创 2018-11-15 18:53:31 · 176 阅读 · 0 评论 -
Andoird Studio想要运行运行JAVA类,报错Android studio3.0 com.android.tools.aapt2.Aapt2Exception: AAPT2 error
Error:Execution failed for task ':app:mergeDebugResources'.>Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2error: check logs for details原来的工程下面没有 gradl...转载 2018-04-16 21:10:36 · 251 阅读 · 0 评论 -
android stuido环境运行出错
转载网址:http://www.jcodecraeer.com/a/anzhuokaifa/Android_Studio/2017/0317/7691.html最近从github上下载的项目总是遇到这样的编译问题:Error:Failed to open zip file.Gradle's dependency cache may be corrupt (t转载 2017-10-09 21:47:04 · 309 阅读 · 0 评论