简体   繁体   English

Honeycomb 应用程序在模拟器和本地工作,但在我创建签名的 APK 时不起作用

[英]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.

相关问题 Flutter 应用程序 apk 在手机上无法正常运行,但在模拟器上运行良好 - Flutter app apk does not work properly on phone but works well on emulator 我调试应用程序时,webview.loadUrl工作正常。 但是当我生成签名的APK时,它不起作用。 - webview.loadUrl works fine when I debug the app. But when I generate a signed APK, it doesn't work. 我在Android模拟器上执行该应用程序,效果很好,但是当我导出为APK并在我的手机上对其进行测试时,它不起作用 - I execute the application on Android emulator it works fine but when I export to APK and I test it on my mobile it does not work 应用程序在调试期间在手机上工作,在安装apk时不起作用 - App works on phone during debugging, does not work when apk is installed 使用GSON的Android应用程序在调试模式下工作,但在运行已签名的apk时则不行 - Android app with GSON works in debug mode, but not when running signed apk 当您生成签名的 apk Firebase 数据库无法正常工作 - When you generate the signed apk Firebase Database does not work correctly 当应用签名的APK安装在设备上但无法正常工作时,Google Map才能正常工作 - Google Map work when app signed apk install in device but not work play store apk 当我使用jsoup构建签名的APK时应用崩溃 - App crashed when i build a signed APK with jsoup 当我在模拟器上启动我的应用程序时,总是会有一个旧的apk - When I start my app on an emulator there is always an old apk 从Android Studio运行时,应用正常运行,但在安装签名的APK后崩溃 - App works fine when running from Android Studio but crashes when signed apk installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM