最新Android ADT报parseSdkContent failed java.lang.ExceptionInInitializerError异常的处理办法


由于升级最新的Android L,导致的问题。。。
源地址:https://code.google.com/p/android/issues/detail?id=77726
1) Download the SDK platform for API 20 (4.4W)

2) Navigate to your sdk folder (should be like D:\EclipseWorkspace\adt-bundle-windows-x86_64-20140321\sdk)

3) Go to platforms folder -> android-21 folder -> data folder

4) rename layoutlib.jar (for backup purpose)

5) copy the same file from your android-20 folder to this folder

6) restart Eclipse

7) ???

8) Profit


Let me know if it fixed the problem, maybe it was something else I did.
Thanks deepanshu for the hint and hardwork :)
展开阅读全文

求助,sshjava.lang.ExceptionInInitializerError

05-28

我写的一个ssh练习rn想实现many-to-many 当时在配置文件ssh.xml 只加入一个类时没有错误发生rnrn这个是dao代码rnrnpublic List testFind() rn rn final String str = "from Student";rn //rn HibernateTemplate temp= this.getHibernateTemplate(); rn rn rn rn @SuppressWarnings("unchecked")rn List list =(List) temp.execute(new HibernateCallback()rn rn rn public List doInHibernate(Session session)throws HibernateException, SQLException rn Query q = session.createQuery(str);rn return q.list();rn rn );rn rn return list;rn rn rn然后我将ssh.xml 变成rnrn rn rn rn pojo/Student.hbm.xml rn pojo/Course.hbm.xmlrn rn rnrnrnrnhbm.xml分别加入rn rn rn rn rnrnrnrn rn rnrn再去用dao的方法rn无论我用hq是 "select student" 还是 "select student s join fetch s.course"都会报如下错误rnrnjava.lang.ExceptionInInitializerErrorrnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in class path resource [ssh.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: An association from the table t_student_course refers to an unmapped class: pojo.Studentrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rnrnrnrn到底为什么? 论坛

没有更多推荐了,返回首页