自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (2)
  • 收藏
  • 关注

原创 Binary XML file line #0: You must supply a layout_height attribute.

Binary XML file line #0: You must supply a layout_height attribute. 是一不消息设置高度没有dp  ,只设置了个数字

2017-12-29 16:17:43 1081

原创 Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null objec

Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference   原来是 里面的view用了小写,编译的时候不会报错,执行就报错了

2017-12-26 18:04:35 494

原创 com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

删除一个第三方的时候报错,com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex最后才发现是因为少来compile 'com.android.support:support-v4:27.0.2'v4包

2017-12-15 11:19:28 397

原创 android studio 3.0 报错 Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantDa

Error:Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava/util/List;'. Possible causes for this unexpected error include:Gradle's dependency cache

2017-11-09 11:55:52 1473

原创 version 1.7.0_17 of the JVM is not suitable for this product , Version 1.8 or greater i s required

version 1.7.0_17 of the JVM is not suitable for this product , Version 1.8 or greater i s required适配7.0更新的时候出现的,经过查资料,原来还要在清单文件里面加入provider android:name="android.support.v4.content.FileProvid

2017-07-07 11:09:05 5652

原创 QQ分享成功后也回调onCancel()

QQ分享问题

2017-06-13 11:37:10 1898

原创 java.lang.ClassCastException:android.widget.LinearLayout$LayoutParams cannot be cast to android.widg

如果你要将一个view添加到另一个布局中,你必须设定该View的布局参数为其父类所使用的布局参数类型。即要在代码中动态改变某组件的高度,其布局参数类型应该是其父类所使用的布局参数类型.

2017-05-15 13:28:25 1445

原创 Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android

原因就是有中文路径了,改掉就行了

2017-03-15 10:54:36 7407

原创 DescriptionResource Path Location Type The superclass "javax.servlet.http.HttpServlet" was not foun

用eclipse开发web项目。创建jsp的时候,提示找不到HttpServlet,查了一下网上的资料,都是去添加一下tomcat.但还是不行。最后直接把tomcat目录下lib里面的servlet-api.jar关联到项目里面来。这样就行了。至于为什么eclipse关联了tomcat.却不能引用里面的jar包。我也不知道

2017-03-12 11:04:08 3463 1

原创 fragment切换导致fragment里面的listView不显示

两个fragment间切换后fragment界面中的listview无法显示数据,问题原因是:在fragment切换时界面中的view控件onDestroyView掉,在重新回到fragment界面时,fragment重新加载view,以及数据,listview适配器。因为listview的数据在第一次fragment创建时已经加载过,所以并没有再次让其加载数据。关键:自己并没有重新给list

2017-03-10 16:55:21 3620 1

原创 android 7.0系统安装apk报错问题。

今天客户反馈一个问题,华为mate9,自动更新安装不了,其他手机没问题,经过多次查原因,才发现,是因为用了python脚本去打包,导致apk文件被更改了。7.0系统就认为APK被篡改,不让安装。

2017-01-16 15:17:31 2098 2

原创 打包出现这个错误Error:A problem was found with the configuration of task ':app:packageRelease'.

打包提示这个错误。Error:A problem was found with the configuration of task ':app:packageRelease'. 想了一下才发现是添加了一个属性.         在gradl里面添加了这个属性。shrinkResources true.打包的时候会去删除一些不必要 的文件,结果就打包失败了。

2016-11-14 14:36:12 10580 2

原创 微信分享出错问题,MicroMsg.SDK.WXMediaMessage: checkArgs fail, thumbData is invalid

微信分享

2016-10-31 13:11:23 8176

原创 Error:Execution failed for task ':app:mergeDebugResources'. > Error: java.lang.RuntimeException: Som

今天把eclipse项目导入AndroidStudio。结果报错了。查了很多资料在gradle里面加上这两句就行了。   android { compileSdkVersion 10 buildToolsVersion "25.0.0" aaptOptions.cruncherEnabled = false aaptOptions.useNewCrunc

2016-10-28 17:35:25 4114

原创 [Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.]

今天想打开DDMS,不小心点错了,一运行,结果运行不了。看了下提示,原来 enable ADB integration 这个关闭了。其实错误提示已经告诉我们该怎么做了菜单栏,Tools -> Adnroid -> enable ADB integration,enable ADB integration, 前边出现对勾就成功了

2016-10-12 17:40:02 378

原创 android java.lang.IllegalStateException: attempt to re-open an already-closed object:

今天用到SQLite数据库的时候,习惯性的把DB给关了。一运行报错了。一查才发现这个DB被我设置为单例模式了。不能用完就关闭。  特此记录一下。

2016-10-08 16:29:15 1699

原创 自定义dialog设置背景透明度

为了好看,有时候需要设置dialog透明。自定义dialog只需要几家代码就能实现背景透明。       在dialog初始化的时候加入下面几句代码就行了。        WindowManager.LayoutParams lp = window.getAttributes();        //设置背景透明度 背景透明        lp.alpha = 0.8f;//参数为

2016-10-08 10:23:44 6471

原创 java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.wid

java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.RelativeLayout$LayoutParams      在代码里面改变布局的宽高,直接报错。通过查资料。原来如果你要将一个view添加到另一个布局中或者为这个view重新设定

2016-09-29 11:32:38 1322

原创 基于openfire写的安卓端的一个IMapp

因为公司最近想在公司的APP里面加一个聊天的功能,就去研究了一下基于openfire的IM通信。就写了一个简单的daem.实现了发送 图片 文字 声音 等基本功能。     有兴趣的可以下载来看看:https://github.com/zhang550687086/imchat.git 点击打开链接。

2016-09-22 10:14:12 2240 1

原创 Error:(139) Attribute "background" already defined with incompatible format.

Error:(139) Attribute "background" already defined with incompatible format.

2016-09-21 16:33:32 11753 4

原创 解决adapter.getView()方法多次被调用,导致listView卡顿的原因。

一个模块做好之后,发现某个界面特别卡。就查原因。突然发现是adapter.getView()多次调用了。导致去重复加载,查了很多资料,各种测试。发现只有把listView的宽高都设置为下面这样就可以解决,adapter.getView()多次调用了. android:layout_width="match_parent"  android:layout_height="match_pare

2016-09-21 13:57:30 1510

基于openfire服务器的xmpp协议的andorid端聊天daem

基于openfire服务器的xmpp协议的andorid端聊天daem.实现了基本的登录。获取好友列表。发送文字 图片 声音聊天等功能。

2016-09-22

系统引导工具

系统引导没有了,可以用这工具修复,保证能行

2012-12-30

空空如也

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

TA关注的人

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