Android的扩展文件库设置 [英] Android Expansion Files Library Setup

查看:238
本文介绍了Android的扩展文件库设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力实施失败扩展文件。我已经包括了授权,扩建和外部jar文件示例项目,一切zip文件库似乎是罚款,所有的错误离开。当我运行该程序,但是,我得到一个错误,指出:

I have been trying to implement Expansion files unsuccessfully. I have included the libraries for Licensing, Expansion, and zip files as external jar files to the sample project and everything seems to be fine and all errors go away. When I run the program, however, I get an error that says:

05-22 17:49:05.377:E / AndroidRuntime(10197):java.lang.NoClassDefFoundError的:com.android.vending.expansion.downloader.R $字符串

"05-22 17:49:05.377: E/AndroidRuntime(10197): java.lang.NoClassDefFoundError: com.android.vending.expansion.downloader.R$string"

和程序崩溃。如何解决这个错误,所以我可以使用测试,然后使用扩展库?

and the program crashes. How do I resolve this error so I can use test and then use the expansion library?

感谢。

推荐答案

扩展文件必须作为Android的库项目,而不是jar文件。这使得在下载库中使用的资源被添加到主项目的资源

The expansion files must be included as Android library projects rather than as jar files. This allows for the resources used in the downloader library to be added to the resources of the main project.

这篇关于Android的扩展文件库设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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