您的位置:首页 > 移动开发 > Android开发

在android工程中导入layoutlib.jar…

2014-04-24 14:11 465 查看
/
**
 
* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
*
 
* @hide
*
/
打了@hide标签的,在android.jar中是找不到的。
在android-sdk-linux_x86/platforms/android-10/data/layoutlib.jar中包含了source中internal的api,在eclipse中导入这个jar包就可以使用internal的api了。
导入方法:
1.
Right-click the project in Eclipse and select "Build Path -> Add
Libraries...".
2.
Select User Library from the list and click
Next.
3. Click
the "User Libraries..." button.
4. Click
"New..." in the User Libraries dialog.
5. Give
the user library a name and select the System library checkbox and
click OK.
6.
Highlight the newly added user library in the list and click the
"Add JARs..." button and add the desired jar
files.
7. Click
OK on the User Libraries dialog.
8. Make
sure the new user library is checked in the Add Library dialog
and...

不以这种方式添加会出现DEX
error,切记
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: