我是编程新手,正在尝试制作一款android应用程序。最近几天我在使用调试器时遇到了麻烦。该应用程序在正常运行模式下工作正常。应用程序连接到firebase,所有数据都保存在那里。如果我尝试以学生身份在调试模式下登录,应用程序将立即崩溃。如果我以教授的身份登录,我会进入主页,但如果我单击“下一步”按钮,我会返回到登录页面,它会变为运行模式。我真的不知道问题出在哪里,但调试器和firebase有什么问题吗?
我不知道我应该从哪里开始寻找我得到的错误信息,所以我只是发布一切,希望有人知道这个问题,或者可以告诉我在错误代码中我应该寻找解决方案。谢谢!我在这里发布一些错误:
[ 03-26 11:07:15.981 1253: 1253 W/ ]
debuggerd: resuming target 890
03-26 11:07:15.982 1574-1592/system_process I/BootReceiver: Copying /data/tombstones/tombstone_08 to DropBox (SYSTEM_TOMBSTONE)
03-26 11:07:16.068 1574-2194/system_process D/GraphicsStats: Buffer count: 5
03-26 11:07:16.073 1574-1618/system_process W/InputDispatcher: channel '3bb91ba com.example.anna.eduback2/com.example.anna.eduback2.views.Login.LoginActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
03-26 11:07:16.074 1574-1618/system_process E/InputDispatcher: channel '3bb91ba com.example.anna.eduback2/com.example.anna.eduback2.views.Login.LoginActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
03-26 11:07:16.075 1574-1618/system_process W/InputDispatcher: channel '4df46b1 com.example.anna.eduback2/com.example.anna.eduback2.views.Mains.MainActivityProfessor (server)' ~ Consumer closed input channel or an error occurred. events=0x9
03-26 11:07:16.076 1574-1618/system_process E/InputDispatcher: channel '4df46b1 com.example.anna.eduback2/com.example.anna.eduback2.views.Mains.MainActivityProfessor (server)' ~ Channel is unrecoverably broken and will be disposed!
03-26 11:07:16.077 1302-1302/? I/Zygote: Process 890 exited due to signal (6)
03-26 11:07:16.122 1574-1986/system_process W/ActivityManager: Force finishing activity com.example.anna.eduback2/.views.Subject.SubjectViewActivity
03-26 11:07:16.185 1574-2193/system_process I/WindowManager: WIN DEATH: Window{4df46b1 u0 com.example.anna.eduback2/com.example.anna.eduback2.views.Mains.MainActivityProfessor}
03-26 11:07:16.186 1574-2193/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '4df46b1 com.example.anna.eduback2/com.example.anna.eduback2.views.Mains.MainActivityProfessor (server)'
03-26 11:07:16.191 1574-2084/system_process I/WindowManager: WIN DEATH: Window{3bb91ba u0 com.example.anna.eduback2/com.example.anna.eduback2.views.Login.LoginActivity}
03-26 11:07:16.192 1574-2084/system_process W/InputDispatcher: Attempted to unregister already unregistered input channel '3bb91ba com.example.anna.eduback2/com.example.anna.eduback2.views.Login.LoginActivity (server)'
03-26 11:07:16.211 1574-1986/system_process W/ActivityManager: Exception thrown during pause
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:615)
at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:785)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1141)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3523)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3359)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:1855)
at com.android.server.am.AppErrors.handleAppCrashLocked(AppErrors.java:619)
at com.android.server.am.AppErrors.makeAppCrashingLocked(AppErrors.java:477)
at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:353)
at com.android.server.am.AppErrors.crashApplication(AppErrors.java:305)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:13476)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
03-26 11:07:16.214 1574-1986/system_process I/ActivityManager: Restarting because process died: ActivityRecord{57c1c35 u0 com.example.anna.eduback2/.views.Mains.MainActivityProfessor t29}
03-26 11:07:16.237 1574-1986/system_process W/ActivityManager: Exception when starting activity com.example.anna.eduback2/.views.Mains.MainActivityProfessor
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:615)
at android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:884)
at com.android.server.am.ActivityStackSupervisor.realStartActivityLocked(ActivityStackSupervisor.java:1309)
at com.android.server.am.ActivityStackSupervisor.startSpecificActivityLocked(ActivityStackSupervisor.java:1408)
at com.android.server.am.ActivityStack.resumeTopActivityInnerLocked(ActivityStack.java:2548)
at com.android.server.am.ActivityStack.resumeTopActivityUncheckedLocked(ActivityStack.java:2127)
at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:1833)
at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:1823)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1196)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3523)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3359)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:1855)
at com.android.server.am.AppErrors.handleAppCrashLocked(AppErrors.java:619)
at com.android.server.am.AppErrors.makeAppCrashingLocked(AppErrors.java:477)
at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:353)
at com.android.server.am.AppErrors.crashApplication(AppErrors.java:305)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:13476)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
03-26 11:07:16.237 1574-1986/system_process D/ActivityManager: cleanUpApplicationRecord -- 890
03-26 11:07:16.244 1574-1986/system_process W/ActivityManager: Force removing ActivityRecord{57c1c35 u0 com.example.anna.eduback2/.views.Mains.MainActivityProfessor t29}: app died, no saved state
03-26 11:07:16.269 1574-1986/system_process I/ActivityManager: Start proc 1991:com.example.anna.eduback2/u0a71 for activity com.example.anna.eduback2/.views.Mains.MainActivityProfessor
03-26 11:07:16.269 1991-1991/? I/art: Not late-enabling -Xcheck:jni (already on)
03-26 11:07:16.269 1991-1991/? W/art: Unexpected CPU variant for X86 using defaults: x86
03-26 11:07:16.270 1574-32531/system_process W/ActivityManager: Spurious death for ProcessRecord{e80098 1991:com.example.anna.eduback2/u0a71}, curProc for 890: null
03-26 11:07:16.270 1574-1986/system_process E/NativeCrashListener: Unable to report native crash
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.get(ArrayList.java:411)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3375)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:1855)
at com.android.server.am.AppErrors.handleAppCrashLocked(AppErrors.java:619)
at com.android.server.am.AppErrors.makeAppCrashingLocked(AppErrors.java:477)
at com.android.server.am.AppErrors.crashApplicationInner(AppErrors.java:353)
at com.android.server.am.AppErrors.crashApplication(AppErrors.java:305)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:13476)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
看看这个答案:Android应用程序在调试模式下启动时崩溃。尝试从嵌套函数中删除所有断点。在菜单中转到Run-
我有应用程序上传在玩商店。它在调试模式下运行良好,但当我从play store下载相同的APK(发布模式)时,它就崩溃了。我无法确定堆栈跟踪没有给出准确的错误位置。 java.lang.RuntimeException:在Android.os.AsyncTask$3上完成(asynctask.java:318)在java.util.concurrent.FutureTask.FinishCompl
我想减小应用程序的大小,因此我在发布模式下使用,但由于此应用程序崩溃。下面是我的 Build.Gradle 我添加了proguard-rules.pro。如果我移除它,它会给我多个警告。 我的清单是这样的: 我也尝试过使用,但它仍然在发布模式下崩溃,在调试模式下运行良好。 我还尝试在依赖项中添加。但没有运气
我有一个应用程序,现在我要发布它。我已经创建了一个apk文件,并且安装了它,但是当我向服务器发送登录请求时,它返回NULL。 奇怪的是,当我用调试构建启动应用程序时,它工作得很好。该问题仅发生在释放模式。所以看了这篇文章后我认为问题出在proguard 这是我目前所做的。 null 这是我的proguard-rules.pro文件。
我正在开发一个Android应用程序,它必须从文件中解析文本。 我的解析器中有以下方法。java类: 每当调用缓冲区时,我都会遇到问题。while循环中的readLine()方法。 我传递以下路径信息File对象是: 现在我已经看了堆栈和在线上的许多帖子,以便尝试解决这个问题,并尝试使用一些解决方案,但没有运气。这是我从错误堆栈跟踪中获得的一个片段。 我确信文件的路径是正确的,因为我在调试时检查了
当我运行应用程序时,它工作得很好,但是当我想调试一个变量值时,应用程序就崩溃了。下面是完整的调试日志。我不知道是什么错误来纠正它。你们能帮帮我吗?我读到了一些关于并且我禁用和启用了ADB集成,但没有帮助我。我试图清洁,重建和运行的项目再次和没有帮助我。每次我尝试开始调试时,应用程序都会崩溃。 提前谢谢!!