在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,切记
**
* 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,切记
相关文章推荐
- 在android工程中导入layoutlib.jar
- 在android工程中导入layoutlib.jar…
- android工程导入多个三方jar包 android.mk写法
- Android工程导入jar文件步骤
- Android工程导入外部jar包时遇到的问题自动生成APK文件
- android工程导入自己生成的jar包时报:Could not find class referenced from method
- Android工程导入jar文件步骤(转)
- Android工程导入jar文件步骤
- Android导入工程遇到的问题:没有R.java和android.jar的jar包
- android工程导入多个三方jar包 android.mk写法
- Android工程文件导入Jar包和So第三方库
- Androidstudio导入依赖的三种方式,第三方类库,jar包,Android工程(eclipse工程或者androidstudio module)
- 导入android工程后没有自动关联android.jar包的原因
- 安卓工程如何正确导入第三方jar (2) ---解决问题【intellij+gradle+android-support-multidex.jar】
- 将Android 工程从Windows导入到Ubuntu 下java类中的中文在ADT中乱码
- Android Studio导入工程报错[Plugin with id 'com.android.application' not found]
- Android导入一个工程时提示 Invalid project description的解决方法
- android工程导出成为jar包。
- Android优美代码赏析:上层开发与导入sample到eclipse工程
- Android中怎么把引入的library库工程转换成jar包