
android
JohnnyLiao_WJ
这个作者很懒,什么都没留下…
展开
-
Android.View.InflateException: Binary XML File Line
原因:layout 里面的xml文件里的引用出错...>src的、里面的路径com.XX.package 没有找到myPage这个class文件原创 2016-12-12 15:31:44 · 325 阅读 · 0 评论 -
This ScrollView layout or its FrameLayout parent is useless; transfer the background attribute to th
android xml 错误, scrollView 不能往下移:This ScrollView layout or its FrameLayout parent is useless; transfer the background attribute to the other view<LinearLayout xmlns:android="http:/原创 2016-12-30 13:41:32 · 2685 阅读 · 0 评论 -
ANDROID stackoverflowError
stackoverflowError 错误原因:多次使用替换按钮背景的方法;该方法放在reload中, 然后由onResume 调用,但我的逻辑是在点赞完之后,同时取消 踩贴的背景; 或者相反;于是就出现了重复调用;解决方法:在点赞完之后不调用该逻辑,而是将boolean参数设置一下,再根据该参数,在reload的方法中自动判断;原创 2017-01-06 15:29:24 · 973 阅读 · 0 评论 -
UnrecognizedPropertyException: Unrecognized field “***” ignorable
UnrecognizedPropertyException: Unrecognized field “XXX” (), not marked as ignorable报错如上面所示,发现entity里面少了那一个字段,于是补上;然后再加上setter 和 getter方法在真理的大海面前,人们的原创 2016-12-26 17:10:32 · 17108 阅读 · 0 评论 -
android.content.res.Resources$NotFoundException:String resource ID #xxxx
goods_num.setText(orders.getAmount());是上面这行报错, 然后我想起这个get方法是返回一个int类型的上网搜,果然是解决方法: goods_num.setText(""+ orders.getAmount());原创 2016-12-23 14:47:18 · 369 阅读 · 0 评论 -
@Autowired - No qualifying bean of type found for dependency
@Autowired - No qualifying bean of type found for dependency解决办法:在对应的Repository的class前面加上声明:@Component@Service@Transactional原创 2016-12-21 20:20:36 · 1463 阅读 · 0 评论 -
ast QuerySyntaxException: user is not mapped
MAVEN 项目报错:org.hibernate.hql.internal.ast.QuerySyntaxException: users is not mapped [from users]org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.j原创 2016-12-21 20:08:13 · 783 阅读 · 0 评论 -
Caused by: org.hibernate.MappingException: Could not determine type for
问题:Caused by: org.hibernate.MappingException: Could not determine type for: com.cloudage.membercenter.entity.Article, at table: Comment, for columns: [org.hibernate.mapping.Column(article)]解决办法原创 2016-12-15 20:03:36 · 2896 阅读 · 1 评论 -
no qualifying bean of type found for dependen
@Configuration@Component@Service@Transactional解决方法为在改Repository 的class上面加上上面的代码;原创 2016-12-15 20:01:58 · 1567 阅读 · 0 评论 -
The annotation @Query is disallowed for this location
@Repositorypublic interface ICommentRepository extends PagingAndSortingRepository { @Query(from Comment comment where comment.article.id = ?1) Page findAllArticleId(int articleId, Pageable page);原创 2016-12-14 09:19:11 · 2467 阅读 · 0 评论 -
java.lang.reflect.InvocationTargetException : Entity does not override hashCode
java.lang.reflect.InvocationTargetException : Entity Likes.Key does not override hashCode发现 Likes里面的Key类只有Equals方法public boolean equals(Object obj){ if(obj instanceof Key){ Key other = (K原创 2016-12-16 09:30:57 · 439 阅读 · 0 评论 -
NoSuchBeanDefinitionException: No qualifying bean of type
报错:NoSuchBeanDefinitionException: No qualifying bean of type [Bean ***] for dependency解决方法:在第一个 [Bean **] 里面的class的前面, 加上@Component@Service@Transactional因为我那个刚好是service,所以就得加上这一个声明原创 2016-12-13 17:23:20 · 2526 阅读 · 2 评论 -
用localhost:8080 可以,但172.*0.**.51:8080却不可以 500 server unavailable Maven okhttp
172.*0.**.51:8080/membercenter/ 一连接,发现却连不上,但是用localhost:8080 却可以;然后发现时电脑的ip换了,这实验室的ip会一星期换一个原创 2016-12-12 15:36:45 · 1076 阅读 · 0 评论 -
Unable to execute dex: Multiple dex files define 已解决
[2017-01-09 20:01:55 - Dex Loader] Unable to execute dex: Multiple dex files define Lcn/sharesdk/framework/TitleLayout$1;[2017-01-09 20:01:55 - FiveYuanStore] Conversion to Dalvik format failed: Unab原创 2017-01-09 20:17:52 · 428 阅读 · 0 评论