android使用library

时间:2021-01-28 22:49:22

 

http://www.vogella.com/tutorials/AndroidLibraryProjects/article.html

 

 

介绍support lib使用

http://developer.android.com/tools/support-library/setup.html

 

Adding libraries without resources

 

  1. Make sure you have downloaded the Android Support Library using the SDK Manager.
  2. Create a libs/ directory in the root of your application project.
  3. Copy the JAR file from your Android SDK installation directory (e.g., <sdk>/extras/android/support/v4/android-support-v4.jar) into your application's project libs/ directory.
  4. Right click the JAR file and select Build Path > Add to Build Path.

 

Adding libraries with resources

参考setup文档,要先建立一个library project,然后再引用这个project

 

发现studio好简单啊