gpt4 book ai didi

android - 包文件错误 : with Ndk HelloJni Sample 中的 native ABI 不匹配

转载 作者:行者123 更新时间:2023-11-30 04:24:48 29 4
gpt4 key购买 nike

我在用

android-mips-ndk-r5b-windows

和最新的 sdk,我的目标是 Android 2.2Cygwin 1.79该示例编译良好 - java 和 c 部分。

然而,当我尝试从 eclipse 中运行它时,我在 logcat 中遇到了这个错误:

12-31 18:28:41.523: D/PackageManager(73): Scanning package com.example.hellojni
12-31 18:28:41.564: I/PackageManager(73): /data/app/com.example.hellojni-1.apk changed; unpacking
12-31 18:28:41.582: W/PackageManager(73): Native ABI mismatch from package file
12-31 18:28:41.593: W/PackageManager(73): Package couldn't be installed in /data/app/com.example.hellojni-1.apk
12-31 18:28:41.753: D/dalvikvm(73): GC_EXPLICIT freed 3368 objects / 192440 bytes in 149ms
12-31 18:28:41.953: I/ActivityManager(73): Start proc com.android.quicksearchbox for broadcast com.android.quicksearchbox/.SearchWidgetProvider: pid=252 uid=10012 gids={3003}
12-31 18:28:42.103: D/AndroidRuntime(122): Shutting down VM
12-31 18:28:42.113: D/jdwp(122): adbd disconnected
12-31 18:28:42.153: I/AndroidRuntime(122): NOTE: attach of thread 'Binder Thread #3' failed
12-31 18:28:42.872: I/ActivityThread(252): Publishing provider com.android.quicksearchbox.google: com.android.quicksearchbox.google.GoogleSuggestionProvider
12-31 18:28:43.084: I/ActivityManager(73): Start proc com.android.music for broadcast com.android.music/.MediaAppWidgetProvider: pid=262 uid=10022 gids={3003, 1015}
12-31 18:28:44.583: D/dalvikvm(136): GC_EXTERNAL_ALLOC freed 3605 objects / 199344 bytes in 119ms
12-31 18:28:44.753: I/Launcher.Model(136): not binding apps: no Launcher activity
12-31 18:28:44.933: D/dalvikvm(136): GC_EXPLICIT freed 1326 objects / 66128 bytes in 177ms
12-31 18:28:47.227: D/dalvikvm(136): GC_EXPLICIT freed 9960 objects / 486072 bytes in 203ms

最佳答案

来自您的日志文件:包文件中的 native ABI 不匹配

我认为这意味着您的包和平台不匹配。

用谷歌搜索这个 - 那里似乎有很多信息。

关于android - 包文件错误 : with Ndk HelloJni Sample 中的 native ABI 不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8691893/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com