如何构建一个Android支持包 [英] How to build the Android support package

查看:147
本文介绍了如何构建一个Android支持包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此<一个href=\"http://stackoverflow.com/questions/8748064/starting-activity-from-fragment-causes-nullpointerexception\">question,唯一的修复重建涉及Android的支持库从它的来源。我不知道如何做到这一点。在Eclipse中,我已经试过:文件 - >导入 - >常规 - >文件系统 - >与路径到SDK /演员/安卓/支持/ V4 / src目录/。这种进口的所有文件。然后我说对的android.jar版本14到构建路径。这仍然给了我一吨的错误,我不知道如何一个罐子出口与固定来源。任何帮助将大大AP preciated。

In this question, the only fix involves rebuilding the Android support library from it's source. I'm not sure how to do this. In Eclipse, I've tried: File -> Import -> General -> File System -> with path-to-SDK/extras/android/support/v4/src/. This imported all of the files. Then I added android.jar for version 14 to the build path. This still gave me a ton of errors, and I'm not sure how to export a jar with the fixed source. Any help would be greatly appreciated.

推荐答案

您必须每个文件夹里面添加额外/安卓/兼容性/ V4 / src目录作为独立的源文件夹中获取正确的项目源。

You must add every folder inside extras/android/compatibility/v4/src as independent source folder to get sources in project properly.

这篇关于如何构建一个Android支持包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆