【问题标题】:Honeycomb app works in Emulator and locally but does not work when I create the signed APKHoneycomb 应用程序在模拟器和本地工作,但在我创建签名的 APK 时不起作用
【发布时间】:2011-07-19 23:52:04
【问题描述】:

当我在模拟器/平板电脑中直接从 Eclipse 调试时,我的应用程序运行良好。但是当我尝试签名并在将其放在那里后从 android market 下载它时,它似乎不起作用并抛出

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)

我也试过放一个空的构造函数。

我错过了一些非常简单的东西吗?

【问题讨论】:

    标签: android eclipse android-emulator android-3.0-honeycomb


    【解决方案1】:

    啊。我尝试在另一台机器上创建签名的 APK,它运行良好。 我猜 Eclipse 第一次签署 APK 的方式存在一些问题,因为即使我使用 jarsigner 手动签署它,它也能正常工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-16
      • 1970-01-01
      • 2015-09-07
      • 1970-01-01
      • 1970-01-01
      • 2019-04-21
      相关资源
      最近更新 更多