困在INSTALL_FAILED_MISSING_SHARED_LIBRARY和ClassNotFound之间

时间:2014-11-29 02:12:30

标签: android

9563 KB/s (1485970 bytes in 0.151s)
WARNING: linker: libvc1dec_sa.ca7.so has text relocations. This is wasting memory and is a security risk. Please fix.
WARNING: linker: libvc1dec_sa.ca7.so has text relocations. This is wasting memory and is a security risk. Please fix.
    pkg: /data/local/tmp/carEgiri28_Nov.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

从清单文件中删除

<uses-library
            android:name="com.google.android.maps"
            android:required="true" />

我运行我的应用程序,它与ClassNotFound一起崩溃,用于我的第一项活动。

11-29 07:38:50.627: E/AndroidRuntime(5054): Process: com.mcruiseon.hindjewadipune.caregiri, PID: 5054
11-29 07:38:50.627: E/AndroidRuntime(5054): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mcruiseon.hindjewadipune.caregiri/com.mcruiseon.caregiri.Registration}: java.lang.ClassNotFoundException: Didn't find class "com.mcruiseon.caregiri.Registration" on path: DexPathList[[zip file "/data/app/com.mcruiseon.hindjewadipune.caregiri-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.mcruiseon.hindjewadipune.caregiri-2, /vendor/lib, /system/lib]]
11-29 07:38:50.627: E/AndroidRuntime(5054):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2264)
.....
11-29 07:38:50.627: E/AndroidRuntime(5054):     at dalvik.system.NativeStart.main(Native Method)
11-29 07:38:50.627: E/AndroidRuntime(5054): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.mcruiseon.caregiri.Registration" on path: DexPathList[[zip file "/data/app/com.mcruiseon.hindjewadipune.caregiri-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.mcruiseon.hindjewadipune.caregiri-2, /vendor/lib, /system/lib]]

1 个答案:

答案 0 :(得分:0)

  

主持人,抱歉复制这个答案。很难找到真正的设备的答案。所有答案都会导致模拟器。这是唯一嵌入非相关答案的内容。

在用于修复fixing missing shared library的真实设备上,某些roms上comp.google.android.map不存在。

download googleapps
extract two files
system/etc/permissions/com.google.android.maps.xml
system/framework/com.google.android.maps.jar
remount the /system filesystem rw (mount -o rw,remount /system)
copy the files in
do a chmod 644 on them
reboot

@Nys

的所有学分