English 中文(简体)
从市场安装的 App 时崩溃, 但是如果 Apk 是手动安装的, 则不会发生 。
原标题:App crashed when installed from Market but not if the Apk is installed manually.

我的App工作很好 如果我手动安装它 将Apk 移动到手机上并安装它, 但是当我把它放在市场上的时候, 它在第一个活动上崩溃, 这就是记录器。

E/AndroidRuntime(  999): FATAL EXCEPTION: main
E/AndroidRuntime(  999): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mbwasi.funapp/com.mbwasi.funapp.Splash}: java.lang.ClassNotFoundException: com.mbwasi.funapp.Splash in loader dalvik.system.PathClassLoader[/data/app/com.mbwasi.funapp-1.apk]
E/AndroidRuntime(  999):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
E/AndroidRuntime(  999):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2721)
E/AndroidRuntime(  999):        at android.app.ActivityThread.access$2300(ActivityThread.java:132)
E/AndroidRuntime(  999):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
E/AndroidRuntime(  999):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  999):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  999):        at android.app.ActivityThread.main(ActivityThread.java:4669)
E/AndroidRuntime(  999):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  999):        at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(  999):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
E/AndroidRuntime(  999):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
E/AndroidRuntime(  999):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  999): Caused by: java.lang.ClassNotFoundException: com.mbwasi.funapp.Splash in loader dalvik.system.PathClassLoader[/data/app/com.mbwasi.funapp-1.apk]
E/AndroidRuntime(  999):        at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
E/AndroidRuntime(  999):        at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
E/AndroidRuntime(  999):        at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
E/AndroidRuntime(  999):        at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(  999):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2619)
E/AndroidRuntime(  999):        ... 11 more

这里会发生什么事呢?我还注意到在日志上,Apk的名字在结尾还有 -1

com.mbwasi.funapp-1.apk

这从哪来的?

最佳回答

那么我离开它过夜,为我的App更新了市场页面,现在它不仅显示与我的所有设备兼容,而且安装时也起作用。所以这是一个市场问题。在另一条线上有一个小消息要取消出版和出版,我这样做了,不知道它是否真的做了什么。

问题回答

您确定您正在上传相同的 APK 吗? < code> Class nonFoundFoundExpendion 可能意味着您正在使用的“ 喷洒” 活动使用的某个类没有找到, 您可能缺少一些库 。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签