簡體   English   中英

由於APK文件無效,安裝失敗?

[英]Installation failed due to invalid APK file?

我剛剛在metaio中下載了AR的示例程序。 當我運行或構建程序時。 顯示錯誤:由於APK文件無效,安裝失敗! [2011-08-29 21:15:30-Example_SDK]請檢查logcat輸出以獲取更多詳細信息。 [2011-08-29 21:15:30-Example_SDK]啟動已取消!

這是logcat。 我已經閱讀了有關此問題的其他問題,但是仍然無法正常工作,包括確保手機和SDK目標設備版本相同。


08-29 21:15:00.186: VERBOSE/LocationManagerService(102): _removeUpdates: listener = Receiver{44aa7230 Intent PendingIntent{44bd8348: PendingIntentRecord{44aa6930 com.google.android.apps.maps startService}}}
08-29 21:15:00.206: DEBUG/TrafficAppWidgetUpdateService(1165): No longer requesting location updates.
08-29 21:15:05.846: DEBUG/UsbConnectionSettings(1188): -enableChargeOnly()
08-29 21:15:05.846: INFO/global(1188): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
08-29 21:15:05.856: DEBUG/UsbConnectionSettings(1188): usb_cable_connect = 1
08-29 21:15:05.916: DEBUG/UsbConnectionSettings(1188): -onPause()
08-29 21:15:06.056: INFO/LSState(102): EventReceiver:android.intent.action.NOTIFICATION_ADD
08-29 21:15:06.206: WARN/InputManagerService(102): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@44ea6148 (uid=10005 pid=1188)
08-29 21:15:06.896: DEBUG/UsbConnectionSettings(1188): -onStop()
08-29 21:15:06.896: DEBUG/UsbConnectionSettings(1188): -onDestroy()
08-29 21:15:14.076: DEBUG/dalvikvm(1188): GC_EXPLICIT freed 1940 objects / 164512 bytes in 115ms
08-29 21:15:27.726: DEBUG/TrafficAppWidgetUpdateService(1165): Got widget id to update: 20
08-29 21:15:27.746: DEBUG/TrafficAppWidgetUpdateService(1165): Scheduled update for 20 in 29 s.
08-29 21:15:27.756: WARN/TrafficAppWidgetUpdateService(1165): Requested widget update, but no data found for id: 20
08-29 21:15:27.766: VERBOSE/LocationManagerService(102): _removeUpdates: listener = Receiver{44aa5aa8 Intent PendingIntent{44d17750: PendingIntentRecord{44aa6930 com.google.android.apps.maps startService}}}
08-29 21:15:27.776: DEBUG/TrafficAppWidgetUpdateService(1165): No longer requesting location updates.
08-29 21:15:28.526: DEBUG/TrafficAppWidgetUpdateService(1165): Got widget id to update: 25
08-29 21:15:28.526: DEBUG/TrafficAppWidgetUpdateService(1165): Scheduled update for 25 in 29 s.
08-29 21:15:28.536: WARN/TrafficAppWidgetUpdateService(1165): Requested widget update, but no data found for id: 25
08-29 21:15:28.556: DEBUG/TrafficAppWidgetUpdateService(1165): No longer requesting location updates.
08-29 21:15:28.556: VERBOSE/LocationManagerService(102): _removeUpdates: listener = Receiver{44d1b8f8 Intent PendingIntent{44cb74e0: PendingIntentRecord{44aa6930 com.google.android.apps.maps startService}}}
08-29 21:15:29.574: INFO/wpa_supplicant(170): CTRL-EVENT-STATE-CHANGE id=22 state=6
08-29 21:15:29.576: VERBOSE/WifiMonitor(102): Event [CTRL-EVENT-STATE-CHANGE id=22 state=6]
08-29 21:15:29.576: INFO/wpa_supplicant(170): WPA: Group rekeying completed with 00:26:5a:cb:c8:73 [GTK=TKIP]
08-29 21:15:29.576: INFO/wpa_supplicant(170): CTRL-EVENT-STATE-CHANGE id=22 state=7
08-29 21:15:29.576: VERBOSE/WifiStateTracker(102): Changing supplicant state: COMPLETED ==> GROUP_HANDSHAKE
08-29 21:15:29.586: VERBOSE/WifiMonitor(102): Event [WPA: Group rekeying completed with 00:26:5a:cb:c8:73 [GTK=TKIP]]
08-29 21:15:29.586: VERBOSE/WifiMonitor(102): Event [CTRL-EVENT-STATE-CHANGE id=22 state=7]
08-29 21:15:29.596: VERBOSE/WifiStateTracker(102): Changing supplicant state: GROUP_HANDSHAKE ==> COMPLETED
08-29 21:15:32.836: DEBUG/dalvikvm(350): GC_EXPLICIT freed 1942 objects / 105944 bytes in 99ms
08-29 21:15:37.856: DEBUG/dalvikvm(581): GC_EXPLICIT freed 2758 objects / 105040 bytes in 111ms
08-29 21:15:40.119: VERBOSE/AlarmManager(102): Alarm triggering: Alarm{44e30020 type 2 com.google.android.location}
08-29 21:15:40.136: DEBUG/WifiService(102): acquireWifiLockLocked: WifiLock{NetworkLocationProvider type=2 binder=android.os.Binder@44c729f8}
08-29 21:15:40.146: DEBUG/WifiService(102): enable and start wifi due to updateWifiState
08-29 21:15:40.146: VERBOSE/AlarmManager(102): Adding Alarm{44f62eb0 type 2 com.google.android.location} Jan 01 08:25:58 am
08-29 21:15:41.036: INFO/wpa_supplicant(170): CTRL-EVENT-SCAN-RESULTS  Ready
08-29 21:15:41.066: DEBUG/LocationMasfClient(102): getNetworkLocation(): Returning cache location with accuracy 50.0
08-29 21:15:41.496: DEBUG/dalvikvm(1172): GC_FOR_MALLOC freed 4875 objects / 483848 bytes in 110ms
08-29 21:15:41.576: VERBOSE/LocationManagerService(102): _removeUpdates: listener = Receiver{44dfe9e8 Intent PendingIntent{44d7c620: PendingIntentRecord{44dfe990 com.google.android.apps.maps startService}}}
08-29 21:15:42.666: WARN/LocationMasfClient(102): uploadCollectionReport(): no ReplyElement
08-29 21:15:43.966: DEBUG/dalvikvm(1180): GC_FOR_MALLOC freed 5896 objects / 403016 bytes in 106ms
08-29 21:15:44.446: DEBUG/dalvikvm(1172): GC_FOR_MALLOC freed 8146 objects / 419664 bytes in 114ms
08-29 21:15:45.147: VERBOSE/AlarmManager(102): Alarm triggering: Alarm{44f62eb0 type 2 com.google.android.location}
08-29 21:15:45.166: VERBOSE/AlarmManager(102): Adding Alarm{44a76a50 type 2 com.google.android.location} Jan 01 08:26:53 am
08-29 21:15:45.176: DEBUG/WifiService(102): releaseWifiLockLocked: WifiLock{NetworkLocationProvider type=2 binder=android.os.Binder@44c729f8}
08-29 21:15:45.186: DEBUG/WifiService(102): enable and start wifi due to updateWifiState
08-29 21:15:56.746: DEBUG/TrafficAppWidgetUpdateService(1165): Got widget id to update: 20
08-29 21:15:56.756: DEBUG/TrafficAppWidgetUpdateService(1165): Scheduled update for 20 in 29 s.
08-29 21:15:56.776: WARN/TrafficAppWidgetUpdateService(1165): Requested widget update, but no data found for id: 20
08-29 21:15:56.806: DEBUG/TrafficAppWidgetUpdateService(1165): No longer requesting location updates.
08-29 21:15:56.806: VERBOSE/LocationManagerService(102): _removeUpdates: listener = Receiver{44e5c5b0 Intent PendingIntent{44b54330: PendingIntentRecord{44aa6930 com.google.android.apps.maps startService}}}
08-29 21:15:57.536: DEBUG/TrafficAppWidgetUpdateService(1165): Got widget id to update: 25
08-29 21:15:57.556: DEBUG/TrafficAppWidgetUpdateService(1165): Scheduled update for 25 in 29 s.
08-29 21:15:57.566: WARN/TrafficAppWidgetUpdateService(1165): Requested widget update, but no data found for id: 25
08-29 21:15:57.596: VERBOSE/LocationManagerService(102): _removeUpdates: listener = Receiver{44e873d8 Intent PendingIntent{44b781c8: PendingIntentRecord{44aa6930 com.google.android.apps.maps startService}}}
08-29 21:15:57.606: DEBUG/TrafficAppWidgetUpdateService(1165): No longer requesting location updates.
08-29 21:16:03.556: DEBUG/AndroidRuntime(1305): >>>>>>>>>>>>>> AndroidRuntime START 

----

我真的不知道是什么問題。

僅armeabi-v7a支持metaio Mobile SDK。 如果您嘗試在不支持armeabi-v7a的設備上安裝APK,則會出現本機ABI不匹配的情況。

我有和你完全一樣的問題。 據我了解,我需要在庫中運行ndk,因為可以通過這種方式解決本機ABI不匹配的問題(在Google搜索時發現)

這是logcat的輸出(如果可以幫助解決問題):

11-15 20:27:45.858: D/PackageParser(59): Scanning package: /data/app/vmdl36057.tmp
11-15 20:27:46.628: D/PackageManager(59): Scanning package com.metaio.example
11-15 20:27:46.639: I/PackageManager(59): /data/app/com.metaio.example-1.apk changed;  unpacking
11-15 20:27:46.658: W/PackageManager(59): Native ABI mismatch from package file
11-15 20:27:46.658: W/PackageManager(59): Package couldn't be installed in /data/app/com.metaio.example-1.apk
11-15 20:27:46.758: D/dalvikvm(59): GC_EXPLICIT freed 8795 objects / 479824 bytes in 97ms
11-15 20:27:46.838: D/AndroidRuntime(195): Shutting down VM
11-15 20:27:46.838: D/jdwp(195): adbd disconnected
11-15 20:27:46.848: I/AndroidRuntime(195): NOTE: attach of thread 'Binder Thread #3' failed

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM