自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

冷冷清清里风风火火是我

好玩的人, 在这个世界上终究会相遇。

  • 博客(163)
  • 资源 (11)
  • 收藏
  • 关注

原创 安卓权限预置设置

安卓权限预置设置

2024-04-08 12:18:56 1056

原创 error: unknown option `-v‘

查看vue版本时候报错如下:切换 vue -V或。

2023-03-29 22:50:29 1424 1

原创 解决java.lang.NullPointerException (no error message)

​Android Studio经常出现dependencies或者configuing相关错误,这类错误出现的原因一般是AndroidGradlePlugin Version、Gradle Version版本与工程文件冲突。(低版本不维护,甚至找不到下载链接)​

2022-12-04 19:06:18 3086 1

原创 解决Failed to connect to github.com port 443 after 21113 ms: Timed out

克隆新项目,提示连接超时,443。解决方案如下.......

2022-11-12 15:12:20 2792

原创 keytool 错误: java.io.IOException: Invalid keystore format

生成keystore和访问keystore的JDK版本不一致。(通俗来讲就是 jks是用和当前jdk的不同版本生成的。比如1.8 和 11)就会报错。

2022-07-07 10:01:44 26592 24

原创 解决无法下载/502 com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+

打开以前的项目结果build时出现找不到微信分享的依赖,com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+ 是微信提供给第三方sdk(支付、登录和分享等),这个依赖老是下载不到,最后找到了微信团队的maven服务器,才解决添加project 的 build.gradleallprojects { repositories { maven { url "https://bintray.com/

2022-07-07 08:33:01 4657

原创 cannot reach adb server, attempting to reconnect.

1、Android studio 取消勾选 "Enable adb mDNS for wireless debugging"具体位置File - Settings - Build, Extension, Deployment-Debugger 或 直接搜 adb

2022-06-14 17:58:24 4820 13

原创 ‘ipconfig‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。

找到ipconfig.exe所在的目录;添加到环境变量-->系统变量中的path 中添加 C:\Windows\System32不过我试了一下,好像不行;这个时候就是说,我们要再电脑上找到ipconfig.exe使用everything查找一下,查找到ipconfig.exe所在的文件目录这里再C:\Window\System32还有C:\Window\SysWOW64

2022-05-26 19:42:07 11731 13

原创 Android怎么在Service中执行耗时操作

Service的onStartCommand() 和 onBind() 方法中不能执行耗时操作BroadcastReceiver的onReceive方法不能执行耗时操作,因为这个方法是在主线程执行的,耗时操作会导致UI不顺畅,超过10秒钟可能会被系统杀死UI线程执行耗时操作,可以采用View.post方法来执行,或者使用HandleronPause 中不适合做耗时较长的操作,Activity的跳转要先执行完前一个Activity的onPause方法,如果执行耗时操作会影响UI的显示

2022-05-26 12:32:22 2057

原创 完美解决:The specified Gradle installation directory

打开顶部菜单:File -> Setting -> Build,Execution,Deployment -> BuildTools -> Gradle找到Gradle projects 下面的Gradle -> Use Gradle from -> 下来选择修改为:'gradle-wrapper.properties' file

2022-05-23 15:36:20 29427 16

原创 Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

gitee下载以前的项目本地编译运行error,gradle版本7.2.0A problem occurred evaluating project ':app'.> Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. Your current

2022-05-10 20:00:00 753

原创 Build was configured to prefer settings repositories over project repositories but repository ‘Googl

新建的项目把 project中的build.gradle放在了Seeting.gradleBuild was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle'替换dependencyResolutionManagement { repositories { .

2022-05-10 18:04:49 562

原创 Could not find com.github.hackware1993:MagicIndicator:1.7.0.

Could not find com.github.hackware1993:MagicIndicator:1.7.0.

2022-05-07 19:30:00 1731

原创 解决:The given artifact contains a string literal with a package reference ‘android.support.v4.content

The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.给定的工件包含一个

2022-04-14 19:57:56 7196

原创 解决 Didn‘t find class “androidx.core.app.CoreComponentFactory“ on path: DexPathList[[]

线上有很多问题,仔细看logcat发现了这个异常:Didn't find class "androidx.core.app.CoreComponentFactory" on path: DexPathList[[],nativeLibraryDirectories=[/data/app/com.xxxx.com-G0iZxv0fI40gORs0YEGc5Q==/lib/arm64, /data/app/com.xxxx.com-G0iZxv0fI40gORs0YEGc5Q==/base.apk!/lib

2022-04-13 18:31:43 14807 5

原创 Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules jetified-guava-2

AndroidStudio打包报错:Generate Signed APK: Errors while building APK. You can find the errors in the ‘Messages‘ view.

2022-04-09 14:51:11 4041

原创 The application could not be installed: INSTALL_FAILED_USER_RESTRICTED

卸载之后在运行报错如下:03/23 10:17:03: Launching 'app' on Xiaomi Redmi 6 Pro.Installation did not succeed.The application could not be installed: INSTALL_FAILED_USER_RESTRICTEDList of apks:[0] 'D:\xxxx_android\app\build\outputs\apk\debug\app-debug.apk'Installa

2022-04-09 14:42:33 2429 2

原创 Attempt to invoke virtual method ‘java.lang.String android.content.Intent.getStringExtra(java.lang.S

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object referenceIntent跳转的时候,传值,始终接收不到值 为 null同事logcat提示Android ActivityResumeTrigger: not whiteLis.

2022-04-07 18:23:28 6261

原创 解决DSL element ‘android.viewBinding.enabled‘ is obsolete and has been replaced with ‘android.buildFea

buildFeatures

2022-03-29 09:59:22 3373

原创 java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 38 path

java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 38 path $.data是解析出错,肯定是返回的json数据与自己的bean不一致List 和object数据。

2022-03-26 14:12:39 3588

原创 2021的计划2022的计划

打包报错:Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view.

2021-12-31 12:17:58 231

原创 Android NDK location无法配置?

Ctrl + Shift + A 输入 Project Structure如图Android NDK location无法配置无法选中修改 也无法下载 Download都是灰的点不了但是实际 File ——Project Structure SDK location 依然是没有配置NDK路径。在local.properties 中手动添加本地ndk.dir路径ndk.dir=D\:\\SoftWare\\Java\\Android\\Sdk\\ndk-bundle...

2021-07-16 14:42:27 12141 8

原创 解决:The Huawei Lite Simulator supports only Lite projects.

运行demo的时候报错:The Huawei Lite Simulator supports only Lite projects.翻译:华为Lite模拟器只支持Lite项目。点击 Tools --> HVD Manager登录华为开发者账号,(也可能之前登录好久没登录需再次登录)启动远程模拟机型选择对应的deviceType相关阅读解决HarmonyOS Device has not been authorized. Error while De.

2021-07-08 13:21:11 891

原创 打包报错:Generate Signed APK: Errors while building APK. You can find the errors in the ‘Messages‘ view.

AndroidStudio打包报错:Generate Signed APK: Errors while building APK. You can find the errors in the ‘Messages‘ view.

2021-06-15 10:21:46 8717 2

原创 AndroidStudio/Eclipse/keytool 如何获取 SHA1 值?

Android 如何获取 SHA1 值?开发模式(debug)和发布模式(release)下的 SHA1 值是不同的,发布 apk时 需要根据发布apk对应的keystore重新配置Key,获取发布模式下的SHA1的方法请参考如下。通过Eclipse获取SHA1使用 adt 22 以上版本,可以在 eclipse 中直接查看。Windows:依次在 eclipse 中打开 Window -> Preferances -> Android -> Build。Mac:依次在

2021-05-27 16:53:32 513 2

原创 Android Studio的Logcat/Run/Terminal/Build等窗口没有了怎么调出

无意间吧输出栏的一些窗口关闭了,点击顶部View ——>Tool Windows ——> Logcat/Run/Terminal/Build等都是在View里面设置打开。版本不同,但大概设置是一样的。书到用时方恨少,纸上得来终觉浅。共勉!...

2021-05-27 10:34:13 6813 2

原创 Could not determine java version from ‘11.0.8‘

报错如下 :Could not determine java version from '11.0.8'.The project uses Gradle version which is incompatible with Studio running on Java 10 or newer.解决办法:Gradle版本和Java version版本不兼容,切换 降低Java version版本或者升级gradle版本使两者匹配,jdk安装配置环境就不多说了,以前也有介绍。可移步.

2021-05-21 15:17:02 8827

原创 A problem occurred configuring project ‘:app‘.

打开一个之前的项目然后报错* Exception is:org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':app'.导致原因是 :1、配置项目中用到了NDK但是当前项目的NDK 路径和我电脑路径不一致,找不到ndk所以报错 2、多数原因是配置路径 jdk 或者ndk,尽可能用自己安装的jdk路径、如果在File---&...

2021-05-21 13:56:39 10599

原创 Android Studio 4.2没有GsonFormat解决办法

Android Studio 4.2 从3.6.1升级到4.2,发现生成Bean 的GsonFormat 已经不能用了。对此找到以下解决方案已经有了91.1K人使用了。Alt + Insert选择插件GsonFormatPlus或者Alt + S 打开 左下角 setting设置以下然后贴json数据,就很方便的生成了Bean。书到用时方恨少,纸上得来终觉浅。共勉!...

2021-05-12 15:48:39 2017 4

原创 Attempt to invoke virtual method on a null object reference 完美解决

报错信息如下例:Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null objectAttempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object referencejava.lang

2021-05-12 15:04:10 23602 3

转载 MySQL提示Can‘t connect to MySQL server on localhost (10061)解决方法

转载原文地址:https://www.cnblogs.com/technologylife/p/6010205.html本文mysql的安装环境为win1064位,mysql版本为MySQL5.7我遇到的问题是 电脑原先安装过mysql,卸载不干净,重装默认以前的用户名和密码,然鹅 我不知道用户名和密码以下方法可以解决1、运行 —— cmd ,打开面板,切换到mysql安装的bin目录下2、在命令行输入 mysql -u root -p 登录 mysql,可以随意输入一个..

2021-05-08 15:46:31 718 2

转载 MySQL登录时出现Access denied for user ‘root‘@‘localhost‘ (using password: YES)无法打开的解决方法

原文链接:https://blog.csdn.net/csh1807266489/article/details/94477928本人配置:系统64位win10,MySQL8.0.16错误 :ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)从上面这段英文的意思来看,可以这样分析,第一:Access denied(拒绝访问);第二:using password:NO/YES。这里这

2021-05-08 15:43:47 1612

原创 完美解决安装MySQL Install/Remove of the Service Denied!错误解决办法

在cmd.exe 控制界面卸载MySQL,结果报错信息如下:Install/Remove of the Service Denied!原来我用win+R进入的竟然不是admin身份(系统管理员,最高权限)如图,win搜索cmd,然后右键以管理员身份运行。然后操作,就可以完美解决安装MySQL Install/Remove of the Service Denied!错误,完美卸载。书到用时方恨少,纸上得来终觉浅。共勉!...

2021-05-08 09:28:16 8126 3

原创 IntellIJ IDEA 配置 Maven和修改默认Repository

IDEA版本IntelliJ IDEA 2021.1 (Ultimate Edition)Build #IU-211.6693.111, built on April 6, 2021Licensed to IntelliJ IDEA EvaluatorExpiration date: May 30, 2021Runtime version: 11.0.10+9-b1341.35 amd64VM: Dynamic Code Evolution 64-Bit Server VM by JetBra

2021-04-30 14:10:49 13589

原创 解决Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.1问题

今天将IntellIJ IDEA关于Maven项目搭建温习一下方便以后用到。结果报错大概的原因是 当前项目和 IDEA默认配置的Maven版本不一致。IDEA 版本IntelliJ IDEA 2021.1 (Ultimate Edition)Build #IU-211.6693.111, built on April 6, 2021Licensed to IntelliJ IDEA EvaluatorExpiration date: May 30, 2021Runtime vers.

2021-04-30 13:52:30 10046 2

原创 ‘android.support.v4.content‘ that cannot be safely rewritten. for androidx

不得已的情况用到butterknife,结果报错如下The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add sup

2021-04-01 16:46:33 999

原创 解决More than one file was found with OS independent path ‘lib/armeabi-v7a/libRSSupport.so‘

接入广告小说短视频平台,编译失败老是提示More than one file was found with OS independent path 'lib/armeabi-v7a/libRSSupport.so'....解决办法简单粗暴:在APP的build.gradle中 android节点下面添加对应的 so库依赖android { packagingOptions { pickFirst 'lib/armeabi-v7a/libRSSupport.so'

2021-03-30 11:21:33 14242 14

原创 Execution failed for task ‘:sdkdemo:mergeDebugResources‘.

下载第三方平台demo运行出现了如下问题Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher scrollbar_thumb.9.png failed, see logs问题一:可能是图片原来是jpg或者.9及其他格式的,你只是把后缀名改成png了,这样就会出问题,正确的做法是打开这个图片,然后另存为png格式的图片,然后再替换原来的图片就可以了。问题二:上面的也修改之后仍然

2021-03-19 17:21:52 332

原创 AndroidStudio 编译Gradle build running/ download maven依赖下载太慢

谨慎卸载编辑器,卸载之后,gradle 以及相关的AndroidStudio相关设置下载会很慢,非常好费时间。谨慎。谨慎。谨慎。卸载钱切记做好备份。特别是在卸载了IDE然后重装的时候,新建项目,作为以候修改项目gradle的模板,打开旧项目(吐槽一下接入第三方SDK有很多依赖和Maven依赖同步就更慢),会plugin以及添加依赖,building Project,就会发现很多问题。以及国内的一些镜像添加HTTP Proxy也Connection refused: connect或者...

2021-03-19 15:31:35 723 1

原创 解决Execution failed for task ‘:app:checkDebugDuplicateClasses‘.

安装新的IDE之后打开项目报错 Execution failed for task ':app:checkDebugDuplicateClasses'.解决方法如下:1、依赖了重复的资源文件,例如: lib中导入了A.aar文件,然后又在build.gradle中依赖了相同的A文件。 依赖两个不同的资源文件,但是,这两个资源文件里面包含了相同的内容。去除重复依赖或者lib、AAR不同版本等2、在应用包中注释所有的androidx依赖。gradle文件尝试迁移到Androidx。你可以在Refa.

2021-03-19 15:30:21 21361 2

Python 3.8.1 32位和64位安装包.rar

由于正式网站打不开无法下载Python3.8.4 32位和64位的最新包,有幸找到供大家使用。好用好评谢谢。

2020-07-20

自定义Spinner

自定义spinner,解决Spinner,竟然不能默认不选中和修改默认显示内容

2017-12-20

最新的省市区数据xml格式

最新的省市区数据xml格式 , xml格式的资源城市区文件,已配置好,直接点击下载就好!

2017-12-20

Delhpi 7 高级应用开发

Delhpi 7 高级应用开发 随书源码 这是在别人那下载的 然而看到源码两个字之后就下载,下载之后并没有多大帮助,希望给有需要的人 ,不能免费下载时遗憾。最低是2积分。希望对你有所帮助,纸上得来终觉浅,书到用时方恨少!——冷冷清清里风风火火是我

2017-12-20

android-19最新源码包

android-19最新源码包

2017-07-04

android-22

android SDK 开发版本 android-22

2017-04-21

android-21

android SDK 开发版本 android-20

2017-04-21

android-19

android SDK 开发版本 android-19

2017-04-21

android-16

android开发的sdk版本

2017-04-21

android-15

android开发的sdk版本android-15

2017-04-21

Asp.NET MVC 5 高级编程第5版

微软最新的UI逻辑层框架技术,适合企业级Web应用开发 英文高清pdf 七百多页 .net Web程序员建议学习历程: 1.C#和vs书籍 2.MVC书籍 3.Web API书籍 4.Entity Framework 书籍 5.WCF书籍 可以再配套一些开源的项目同时进行 我的资源里都有,请详细查看

2017-03-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除