草庐IT

current_path

全部标签

Android ExternalStorage读写权限问题(Access to the path “/storage/emulated/0/...“ is denied)

现象:从android10.0开始,不管manifest里是否添加读写权限,都不可以直接访问内部存储路径为什么1、因为很多App在安装以后,会在/storage/emulated/0下随意创建各种文件/文件夹,导致手机内部存储目录十分混乱,而且app卸载以后,这些文件不会被卸载掉,遗留垃圾文件,造成空间浪费。2、可以修改其它App创建的文件,有数据安全问题…变更面对上述一些列问题,Google在Android10.0引入了ScopedStorage。1、App访问自身内部存储空间,这个与Android10.0之前一致2、外部存储空间,需要通过Uri访问(有兴趣的同学可以去查一查)回到本文的主题

Unable to make field private final java.lang.String java.io.File.path accessible: module java.base

问题描述:使用AndroidStudio运行应用时报错:Unabletomakefieldprivatefinaljava.lang.Stringjava.io.File.pathaccessible:modulejava.basedoesnot"opensjava.io"tounnamedmodule@7a4eb222 从报错信息可以看出跟Java模块化有关,先前都是用的JDK8而模块化是JDK9引入的新功能解决方法:经过检查发现升级了gradle7,使用的JDK17.真是一次大跳跃,不得不说Java这几年发版本真快。方法1:既然JDK17要模块化,那就跟项目指定一个不需要模块化得JDK8.

go mod init 在初始化时出现 cannot determine module path for source directory (outside GOPATH,module path)

1问题新创建的golang项目,使用gomodinit命令时出现cannotdeterminemodulepathforsourcedirectoryxxxxxxx(outsideGOPATH,modulepathmustbespecified)2解决方案这是因为gomodinit初始化项目时,需要定义一个module,当打开一个go.mod文件,就会发现第一行就有moduleProjectName因此,在执行gomodinit时需要定义module,如:gomodinitProjectName

No plugin found for prefix ‘install‘ in the current project and in the plugin groups 的解决方法

【现象】[WARNING]Failuretotransferorg.apache.maven.plugins/maven-metadata.xmlfromhttp://maven.oschina.net/content/groups/public/wascachedinthelocalrepository,resolutionwillnotbereattempteduntiltheupdateintervalofoschaselapsedorupdatesareforced.Originalerror:Couldnottransfermetadataorg.apache.maven.plugi

XCode 14.2 运行MonkeyDev项目出现Executable Path is a Directory

解决办法:更改Generateinfo.plistfile的值为NO,将info.plistFile的值改为xxx/info.plist 问题: TheWatchKitapp'sInfo.plistmusthaveaXXX 解决办法:1.删除weChat.app/com.apple.WatchPlaceholder文件夹          2.删除DerivedData缓存          3.工程clean一下

unable to find valid certification path to requested target

调用https接口时出现该异常,Causedby:sun.security.validator.ValidatorException:PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtarget 原因是可以看上图,因为本地没有目标服务器证书导致。解决此方法的两种方案,1.在运行java环境安装对方服务器证书,可使用keytool -printcert -rfc -sslserver ip:p

unable to find valid certification path to requested target

javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtarget问题产生:本地与测试环境下使用apache的HttpClient访问第三方https域名下的接口可以正常请求,但上线到正式环境后进行请求时日志报错。基本原因:在jdk证书库里找不

【异常】Dbeaver配置JDBC连接ES时提示SQL错误:current license is non-compliant for [jdbc]

一、报错内容通过Dbeaver配置JDBC连接Elasticsearch时,报错currentlicenseisnon-compliantfor[jdbc]二、问题说明使用的Elasticsearch服务端版本:7.16.3客户端IDE:DBeaver23.0.0Management>Elasticsearch>LicenseManagement查看官网搜索后发现需要白金级别,因此JDBC需要一个白金(或试用)许可证才能够使用JDBC客户端。查看服务器es的license信息,发现“type”:“basic”

Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed;

更新更高版本的SpringBoot依赖解决了来源来自GitHub上面的GitHub-echisan/springboot-jwt-demo:这是一个使用了springboot+springSecurity+jwt实现的基于token的权限管理的一个demo项目,本地启动后报错org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'entityManagerFactory'definedinclasspathresource[org/springframework/boot/autocon

com.alibaba.nacos.api.exception.NacosException: Client not connected, current status:STARTING

springboot集成nacos配置正确的情况下,报错:com.alibaba.nacos.api.exception.NacosException:Requestnacosserverfailed: atcom.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:288) atcom.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doSubscribe(Na