Android - App由于意外信号13而无故崩溃

时间:2017-04-06 09:05:12

标签: android

从字面上不知道为什么它会崩溃,忘记我最后做出的改变。我试图更改我的数据库以添加ON DELETE CASCADE,我不知道是否在没有注意的情况下更改了一些基本代码。

04/06 10:59:13: Launching app
$ adb push C:\Users\Kontor\AndroidStudioProjects\Sales\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.sales.kontor.sales
$ adb shell pm install -r "/data/local/tmp/com.sales.kontor.sales"
pkg: /data/local/tmp/com.sales.kontor.sales
Success


$ adb shell am start -n "com.sales.kontor.sales/com.sales.kontor.sales.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 25808 on device huawei-huawei_gra_l09-S7M0215902006571
E/HAL: load: id=gralloc != hmi->id=gralloc
W/System: ClassLoader referenced unknown path: /data/app/com.sales.kontor.sales-2/lib/arm64
I/InstantRun: Instant Run Runtime started. Android package is com.sales.kontor.sales, real application class is null.

              [ 04-06 10:59:16.884  2917: 2917 E/         ]
              process stopped due to unexpected signal 13
W/System: ClassLoader referenced unknown path: /data/app/com.sales.kontor.sales-2/lib/arm64
I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl

          [ 04-06 10:59:17.928  2917: 2917 E/         ]
          process stopped due to unexpected signal 13
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
I/HwSecImmHelper: mSecurityInputMethodService is null
I/Process: Sending signal. PID: 25808 SIG: 9
Application terminated.

3 个答案:

答案 0 :(得分:0)

在日志中仔细查看。您正尝试使用Instant Run运行应用程序。因此,您可以禁用InstantRun并查看问题是否仍然存在。

禁用InstantRun:

  

转到 - 文件 - >设置 - >构建,执行,部署 - >即时运行    - >取消选中“启用即时运行到部署时热插拔代码/资源更改”复选框(默认启用)

答案 1 :(得分:0)

将您的apk文件扩展名更改为.zip并将其解压缩。检查lib\arm64路径,查看所有.so个文件的可用状态。有些时候,一些.so文件仅适用于特殊CPU类型。 您可以在模块gradle中过滤目标cpu类型,如下所示:

defaultConfig {

    ndk {
        abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
    }
}

答案 2 :(得分:0)

尝试卸载应用并重新安装,因为您之前创建的表格不会有字段ON DELETE CASCADE。

尝试清理项目,然后再次安装