我从网上下载了Layar401.apk
文件并尝试将其安装到我的Android设备(HTC Magic,Android 2.2)中。但每次我试图安装它时都说:
adb install Layar401.apk
1098 KB/s (1855698 bytes in 1.649s)
pkg: /data/local/tmp/Layar401.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]
在其他帖子中,我发现manifest.xml
文件中可能缺少Google地图api的共享库。我试图查看manifest.xml
文件,它给了我类似的内容:
package: name='com.layar' versionCode='27' versionName='4.0.1'
uses-permission:'android.permission.ACCESS_NETWORK_STATE'
uses-permission:'android.permission.INTERNET'
uses-permission:'android.permission.ACCESS_COARSE_LOCATION'
uses-permission:'android.permission.ACCESS_COARSE_UPDATES'
uses-permission:'android.permission.ACCESS_FINE_LOCATION'
uses-permission:'android.permission.ACCESS_WIFI_STATE'
uses-permission:'android.permission.CAMERA'
uses-permission:'android.permission.WAKE_LOCK'
uses-permission:'android.permission.READ_PHONE_STATE'
uses-permission:'android.permission.VIBRATE'
uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
application: label='Layar' icon='res/drawable/icon.png'
uses-library:'com.google.android.maps'
launchable activity name='com.layar.Main'label='Layar' icon=''
sdkVersion:'3'
targetSdkVersion:'4'
uses-feature:'android.hardware.camera'
main
other-activities
other-receivers
supports-screens: 'small' 'normal' 'large'
locales: '--_--' 'ja' 'de' 'he' 'sk' 'el' 'nl' 'ko' 'fr' 'tr' 'es' 'it' 'pt' 'hu' 'ru' 'sv' 'fr_CA' 'zh_HK' 'zh_CN' 'pt_BR' 'es_US' 'zh_TW'
densities: '120' '160' '240'
但是在这里它说库也包括谷歌地图api。所以我不确定为什么我无法安装这个apk文件。
任何形式的帮助都将受到赞赏。
感谢。
答案 0 :(得分:7)
显然,您的设备缺少Google Maps API。
答案 1 :(得分:0)
瑞伯,
知道你使用cyanogenmod 6.0,这可能有助于检查: