ADT 相关

  

  文章来源 : http://blog.csdn.net/qiantujava/article/details/30035571

 1. 如何添加 android private libraries 中的包的源代码

  

这里以添加 afinal_0.5.1_bin.jar 为例。
第一步:添加jar包到libs里面,系统自动把jar加载到android private libraries中;
第二步:新建文件 afinal_0.5.1_bin.jar.properties 文件,文件内容为jar包的源代码的路径,如下:(换成你自己的)

  src = C:\\Users\\xuanran30\\Desktop\\afinal-master\\src_version_list\\afinal_0.5_src

 第三步:clear 一下项目

 

parseSdkContent failed Could not initialize class android.graphics.Typeface

 

When I open layout editor, eclipse is giving this error:

parseSdkContent failed
Could not initialize class android.graphics.Typeface
And when I try to run project, it is giving this error :

An internal error occurred during: "Launching myapp".
java.lang.NullPointerException

解决办法:

I deleted the home/.android folder and everything is normal now.

In Windows you can find this folder in C:/Users/User/

Source: http://stackoverflow.com/a/5883841/3681056

Note: it happens when you have 2 versions of SDK and eclipse, both in the same computer (and using the same .android file), if you open on version the other will get this error.

 

3.解决使用Androidandroidannotations 配置时 Eclipse 不出现 Annotation Processor Factory

 

 

在使用 Androidannotations 这个是一个能够加速 Android 开发的开源框架。遇到Androidannotations  配置的问题。

 

Androidannotations 可以帮助开发者处理一些 前后台任务、rest 服务、应用类、代码片段等,让开发者专注于真正重要的东西。

 

在使用之前 需要对Androidannotations  进行配置,具体是要在Java Compiler里面 Annotation Processin 中设置如下图所示:

processor,factory,解决,配置,annotation0

但是好多开发者在使用的时候会发现最新的官方的Android Bundle没有这个选项

解决方法: 

  需要配置一个插件。

processor,factory,解决,配置,annotation2

 

posted @ 2015-03-25 17:50  杨牧远  阅读(109)  评论(0)    收藏  举报