不幸的是,com.sinch.apptoappcall已经停止的Andr​​oid [英] unfortunately,com.sinch.apptoappcall has stopped Android

查看:108
本文介绍了不幸的是,com.sinch.apptoappcall已经停止的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行我的程序,它给我不幸的是,com.sinch.apptoappcall已停止错误消息

When I run my program, it gives me the error message "unfortunately,com.sinch.apptoappcall has stopped"

下面是LogCat中:

Here is the LogCat:

11-16 19:35:10.610: D/AndroidRuntime(897): Shutting down VM
11-16 19:35:10.610: W/dalvikvm(897): threadid=1: thread exiting with uncaught exception (group=0xb1acbba8)
11-16 19:35:10.650: E/AndroidRuntime(897): FATAL EXCEPTION: main
11-16 19:35:10.650: E/AndroidRuntime(897): Process: com.sinch.apptoappcall, PID: 897
11-16 19:35:10.650: E/AndroidRuntime(897): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.sinch.apptoappcall/com.sinch.apptoappcall.LoginActivity}: java.lang.ClassNotFoundException: Didn't find class "com.sinch.apptoappcall.LoginActivity" on path: DexPathList[[zip file "/data/app/com.sinch.apptoappcall-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.sinch.apptoappcall-1, /system/lib]]
11-16 19:35:10.650: E/AndroidRuntime(897):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
11-16 19:35:10.650: E/AndroidRuntime(897):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
11-16 19:35:10.650: E/AndroidRuntime(897):  at android.app.ActivityThread.access$800(ActivityThread.java:135)
11-16 19:35:10.650: E/AndroidRuntime(897):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
11-16 19:35:10.650: E/AndroidRuntime(897):  at android.os.Handler.dispatchMessage(Handler.java:102)
11-16 19:35:10.650: E/AndroidRuntime(897):  at android.os.Looper.loop(Looper.java:136)
11-16 19:35:10.650: E/AndroidRuntime(897):  at android.app.ActivityThread.main(ActivityThread.java:5017)
11-16 19:35:10.650: E/AndroidRuntime(897):  at java.lang.reflect.Method.invokeNative(Native Method)
11-16 19:35:10.650: E/AndroidRuntime(897):  at java.lang.reflect.Method.invoke(Method.java:515)
11-16 19:35:10.650: E/AndroidRuntime(897):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
11-16 19:35:10.650: E/AndroidRuntime(897):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
11-16 19:35:10.650: E/AndroidRuntime(897):  at dalvik.system.NativeStart.main(Native Method)
11-16 19:35:10.650: E/AndroidRuntime(897): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sinch.apptoappcall.LoginActivity" on path: DexPathList[[zip file "/data/app/com.sinch.apptoappcall-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.sinch.apptoappcall-1, /system/lib]]
11-16 19:35:10.650: E/AndroidRuntime(897):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
11-16 19:35:10.650: E/AndroidRuntime(897):  at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
11-16 19:35:10.650: E/AndroidRuntime(897):  at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
11-16 19:35:10.650: E/AndroidRuntime(897):  at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
11-16 19:35:10.650: E/AndroidRuntime(897):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
11-16 19:35:10.650: E/AndroidRuntime(897):  ... 11 more

我在这里上传程序的 http://www.megafileupload.com /en/file/580300/workspace-rar.html

我使用的Eclipse在Windows 7上。

I'm using Eclipse on Windows 7.

什么引起我的错误,我该如何解决这个问题?

What is causing my error and how can I fix it?

推荐答案

问题是没有在你的包无类LoginActivity说得再经过不应该出现这样的问题? 如果还是同样的问题,然后从清单中删除此......

Issue is there is no class "LoginActivity" in your package put it then after this problem should not be occur... If still same problem then delete this from manifest....

<activity
            android:name=".LoginActivity"
            android:label="Log In">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".CallActivity"
            android:label="Make a Call"
            android:screenOrientation="portrait">
        </activity>

创建新的活动..eclipse自动添加活动引用来体现,现在只需添加这个意图过滤器

create new activity ..eclipse automatically add activity reference to manifest and now just add this intent filter

<intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>

这将现在的工作

it will work now

这篇关于不幸的是,com.sinch.apptoappcall已经停止的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆