[英]Honeycomb app works in Emulator and locally but does not work when I create the signed APK
When I debug directly from Eclipse in the emulator/tablet, my app works fine.当我直接从模拟器/平板电脑中的 Eclipse 调试时,我的应用程序运行良好。 But when I try to sign it and download it from android market after putting it there, it does not seem to work and throws
但是当我尝试签名并从 android 市场下载它后,它似乎不起作用并抛出
Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.prakashkut.HackerNews.NewsListFragment: make sure class name exists, is public, and has an empty constructor that is public
at android.app.Fragment.instantiate(Fragment.java:500)
at android.app.Fragment.instantiate(Fragment.java:468)
at android.app.Activity.onCreateView(Activity.java:4132)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:664)
I tried putting a empty constructor too.我也尝试放置一个空的构造函数。
Am I missing something really simple?我错过了一些非常简单的东西吗?
Ah.啊。 I tried to create the signed APK on another machine and it worked fine.
我尝试在另一台机器上创建签名的 APK,它工作正常。 I guess there was some problem in the way Eclipse signed the APK the first time around because when even when I used jarsigner to sign it manually, it worked fine.
我想 Eclipse 第一次签署 APK 的方式存在一些问题,因为即使我使用 jarsigner 手动签署它,它也能正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.