Novo 7 Paladin平板电脑上的INSTALL_FAILED_INVALID_APK错误(ICS 4.01)

时间:2012-01-31 01:51:42

标签: android-4.0-ice-cream-sandwich android

我尝试在我的Nexus One(2.3)上部署Google IO Schedule应用程序(http://code.google.com/p/iosched/),该应用程序在Motorola Xoom平板电脑(ICS 4.03)上正常运行仿真器。

但是,当我尝试在Novo 7 Padalin Tablet(ICS 4.01)上运行它时,我收到消息INSTALL_FAILED_INVALID_APK。

以下是我尝试部署应用时的日志(应用包名称与原始Google IO名称不同,但它是相同的应用)。

之前有人报告了这个问题,并且它发布在LiveCode论坛上,但由于StackOverflow很受欢迎,我想给它一个最终解决方案的简称。或者这可能是这个特定平板电脑/ Android堆栈的问题。

http://forums.runrev.com/viewtopic.php?f=53&t=10606&p=50837#p50837

(我在Mac OS X Lion上有最新的Android ICS SDK。)

应用清单:http://code.google.com/p/iosched/source/browse/android/AndroidManifest.xml

错误日志:

http://pastebin.com/jhGhRsv7

Target device: Novo7 Paladin
Uploading file
    local path: /Users/user/Projects/USJ/mo.edu.usj.cis.android/out/production/mo.edu.usj.cis.android/mo.edu.usj.cis.android.apk
    remote path: /data/local/tmp/mo.edu.usj.cis.android
Installing mo.edu.usj.cis.android
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/mo.edu.usj.cis.android"
pkg: /data/local/tmp/mo.edu.usj.cis.android
Failure [INSTALL_FAILED_INVALID_APK]


D/AndroidRuntime( 2502): 
D/AndroidRuntime( 2502): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 2502): CheckJNI is OFF
D/AndroidRuntime( 2502): Calling main entry com.android.commands.pm.Pm
I/NativeLibraryHelper( 1172): hello +++++++++++++++++++++++++++++++++++++++++ /data/local/tmp/mo.edu.usj.cis.android --- /data/local/tmp/mo.edu.usj.cis.android ---(null) ok
D/NativeLibraryHelper( 1172): Comparing ABIs mips  versus README.txt
D/NativeLibraryHelper( 1172): abi didn't match anything: README.txt (end at -1)
I/NativeLibraryHelper( 1172): hello +++++++++++++++++++++++++++++++++++++++++ /data/local/tmp/mo.edu.usj.cis.android --- /data/local/tmp/mo.edu.usj.cis.android ---(null) ok
D/NativeLibraryHelper( 1172): Comparing ABIs armeabi  versus README.txt
D/NativeLibraryHelper( 1172): abi didn't match anything: README.txt (end at -1)
I/NativeLibraryHelper( 1172): hello +++++++++++++++++++++++++++++++++++++++++ /data/local/tmp/mo.edu.usj.cis.android --- /data/local/tmp/mo.edu.usj.cis.android ---(null) ok
D/NativeLibraryHelper( 1172): Comparing ABIs armeabi-v7a  versus README.txt
D/NativeLibraryHelper( 1172): abi didn't match anything: README.txt (end at -1)
W/ActivityManager(  130): No content provider found for permission revoke: file:///data/local/tmp/mo.edu.usj.cis.android
D/dalvikvm( 1172): GC_CONCURRENT freed 395K, 8% free 6905K/7431K, paused 1ms+2ms
W/ActivityManager(  130): No content provider found for permission revoke: file:///data/local/tmp/mo.edu.usj.cis.android
D/dalvikvm(  130): GC_CONCURRENT freed 1159K, 11% free 11705K/13127K, paused 3ms+6ms
D/dalvikvm(  130): GC_FOR_ALLOC freed 755K, 11% free 11703K/13127K, paused 64ms
D/dalvikvm(  130): GC_FOR_ALLOC freed 732K, 11% free 11703K/13127K, paused 63ms
D/dalvikvm(  130): GC_FOR_ALLOC freed 739K, 11% free 11710K/13127K, paused 64ms
E/PackageManager(  130): ---------------------------------in else if /data/app/mo.edu.usj.cis.android-1.apk---/data/data/mo.edu.usj.cis.android/lib
I/NativeLibraryHelper(  130): hello +++++++++++++++++++++++++++++++++++++++++ /data/app/mo.edu.usj.cis.android-1.apk --- /data/app/mo.edu.usj.cis.android-1.apk ---(null) ok
D/NativeLibraryHelper(  130): Comparing ABIs mips  versus README.txt
D/NativeLibraryHelper(  130): abi didn't match anything: README.txt (end at -1)
I/NativeLibraryHelper(  130): hello +++++++++++++++++++++++++++++++++++++++++ /data/app/mo.edu.usj.cis.android-1.apk --- /data/app/mo.edu.usj.cis.android-1.apk ---(null) ok
D/NativeLibraryHelper(  130): Comparing ABIs armeabi  versus README.txt
D/NativeLibraryHelper(  130): abi didn't match anything: README.txt (end at -1)
I/NativeLibraryHelper(  130): hello +++++++++++++++++++++++++++++++++++++++++ /data/app/mo.edu.usj.cis.android-1.apk --- /data/app/mo.edu.usj.cis.android-1.apk ---(null) ok
D/NativeLibraryHelper(  130): Comparing ABIs armeabi-v7a  versus README.txt
D/NativeLibraryHelper(  130): abi didn't match anything: README.txt (end at -1)
E/PackageManager(  130): ---------------------------------  NativeLibraryHelper.copyNativeBinariesIfNeededLI err! 
W/PackageManager(  130): Package couldn't be installed in /data/app/mo.edu.usj.cis.android-1.apk
D/dalvikvm(  130): GC_EXPLICIT freed 158K, 12% free 11678K/13127K, paused 4ms+11ms
D/AndroidRuntime( 2502): Shutting down VM
I/AndroidRuntime( 2502): NOTE: attach of thread 'Binder Thread #3' failed
D/dalvikvm( 2502): GC_CONCURRENT freed 123K, 78% free 465K/2048K, paused 1ms+0ms
D/jdwp    ( 2502): Got wake-up signal, bailing out of select
D/dalvikvm( 2502): Debugger has detached; object registry had 1 entries
D/dalvikvm(  192): GC_CONCURRENT freed 689K, 64% free 9355K/25607K, paused 2ms+6ms
I/EventLogService(  223): Aggregate from 1327891093093 (log), 1327891093093 (data)
D/dalvikvm(  223): GC_CONCURRENT freed 400K, 9% free 7614K/8327K, paused 2ms+4ms

1 个答案:

答案 0 :(得分:1)

在搜索时偶然发现了这个旧问题,所以我在回答这个问题,以防将来对其他人有用。

安装中的错误是NativeLibraryHelper无法找到要安装的适当本机库。

Novo 7 Paladin有一个MIPS处理器(为了节省成本),当这个问题发布时,Android SDK不支持开箱即用的原生二进制文件的MIPS架构(现在虽然如此)。 Google I / O应用程序都是Java,但它有几个依赖项,我假设其中一个(可能是Android 4支持库)包含本机二进制文件。