`
yangwei0915
  • 浏览: 460455 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

工作经验杂记 2018年-4月

 
阅读更多
eclipse maven编译打包时报出如下错误:
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 问题
可以通过
Window > Preferences > Java > Installed JREs 进行安装jdk,如果还报这个问题,需要
右键项目Run as > Run Configurations > JRE >设置jdk
然后再执行编译打包。

eclipse新版eclipse中文字太小
window – preferences – general – appearance – colors and fonts – basic – text font – edit 把弹出页面中“西欧语言”改成“中欧字符”,即可解决。

wifi pei890720

支付对接
18674033340   江

Eclipse 打开文件夹插件  Eclipse Explorer

android studio  编译签名包时发生如下错误:
Error:Execution failed for task ':app:packageRelease'.
> Failed to read key alex from store "C:\alex\Project\my_project.keystore": Cannot recover key
解决的办法是重新输入密码,别名和别名密码

电视开发的app如果也想在手机上运行,需要设置两个入口的Activity,在AndroidMainfest.xml文件中每个Activity分别设置如下节点:
电视:
<intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
            </intent-filter>
手机:
<intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

android的AndroidMainfest.xml文件的application节点中如果设置label属性,就会在界面上不显示程序名,只显示程序的包名。
android:label="@string/app_name"

React native 运行在android的模拟器,修改js,重新加载按两下R键,

mave中有时候引入的本地库的jar包,却不能使用里面的class,解决的办法是,删除库里面的jar,重新下载

maven编译中出现如下问题:
Maven giving error: try-with-resources is not supported in -source 1.5
解决的办法是,设置maven的java版本为1.8,代码如下所示:
<plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>

java中通常用如下的方法去获取java classpath下面的资源文件
InputStream in = this.getClass(). getResourceAsStream (fileName);
如果fileName前面没有加"/",获取到的是这个类所在目录下的资源文件,如果加上"/",则是获取classpath根目录下的文件


萤石视频云设备配网出现WIFI连接成功,但是注册平台失败,解决的办法是:
设置wifi的dns为:
114.114.114.114
备选 8.8.8.8
萤石云客户端拍照保存在如下目录:
C:\Program Files (x86)\Ezviz Studio\captrue

jpa执行更新或删除报出如下错误:
org.springframework.orm.jpa.JpaSystemException: could not extract ResultSet; nested exception is org.hibernate.exception.GenericJDBCException: could not extract ResultSet
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:333)
原因是要在@Query前面加上@Modifying注解,因为如果不加这个注解,框架认为这个sql是一个查询,就要去获取ResultSet,就会出错

android 中类库中switch case不能使用R资源变量来作为分支条件,只能讲switch case转换为if else,android studio中将鼠标放到switch上,点击Alt+Enter,选择“Replace ‘switch‘ with ‘if‘”,

spring mvc list传值,采用逗号分隔,例如下面,接口的registrationIdList为List
http://localhost:8080/api/v1/certificate/batchCnPrintInfo?registrationIdList=160,161

android studio中编译项目中的library模块为aar,点击菜单中的Build,然后点击ReBuilder Project

执行node js的命令,报出如下错误ETIMEDOUT错误,错误消息类似Error: connect ETIMEDOUT 52.216.226.184:443,可能是没有网络不能访问国外网络,如果能访问了,可以多试几次。

微信小程序中的蓝牙api只能和BLE(低功耗)的设备进行通信(发现和链接以及通信),通过修改特征值完成通信

webstorem 默认html和xml标签都是有灰色背景,去掉的方法为File --> Settings --> Editor (--> Colors & Scheme --> Html(或xml)) ;选中 Tag ,
右侧有选项“Use inherited attributes” 勾选;去掉这个勾选,然后去掉Background的勾选

信息小程序开发时,如果开发微信小程序时,点击远程调试显示二维码,使用手机扫码后,二维码下方显示 已结束,请重新开始,
但是手机上的小程序里面是空白,尝试多次,仍然这样。解决的办法是,在微信里面将这个小程序删除,重新扫描。

华为手机为app打开存储权限的方法:设置-》应用管理-》app-》权限  在此界面上将存储权限打开
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics