Android Expansion Files Library Setup

旧巷老猫 提交于 2019-12-23 20:21:45

问题


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$string"

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

Thanks.


回答1:


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.



来源:https://stackoverflow.com/questions/10710922/android-expansion-files-library-setup

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!