Android SDK

Android Support Library
在SDK Manager中下载Extras -> Android Support Library,Android Support Repository(用Android Studio开发),下载的文件 在<sdk>\extras\android\compatibility (或support)中
在工程根目录创建libs文件夹,拷贝需要的support jar包,right click JAR file,select Build Path -> Add To Build Path
工程类型
Android Projects, Test Projects, Library Projects(共享的代码和资源)
Android Projects
src/.java .aidl文件
bin/.apk output directory
jni/ native code
gen/ R.java generated by ADT
assets/raw asset files
res/anim color drawable layout menu raw values xml 
libs/
project.propertiescontains project settings,such as the build target,maintain it in a source revision control system(放在版本控制中)
local.propertiescomputer-specific properties,not maintain it in a source revision control system(不放在版本控制中)
ant.propertiesproperties for the build system
build.xmlAnt build file
Library Projects

When you build an application that depends on a library project, the SDK tools compile the library into a temporary JAR file and uses it in the main project, then uses the result to generate the .apk. In cases where a resource ID is defined in both the application and the library, the tools ensure that the resource declared in the application gets priority and that the resource in the library project is not compiled into the application .apk. 

android-support-v4.jar关联源码

在android-support-v4.jar相同的路径下新建一个“.properties”文件, 文件名与需要关联的jar包相同, 这里是“android-support-v4 .jar .properties”

文件内容是“src=D:/adt-bundle-windows-x86_64-20131030/sdk/extras/android/support/v4/src”。“src=”之后是源码的路径。

Close and re-open your android project


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值