google play 服务 报错

10-14 11:51:35.425 1883-2125/com.google.android.gms E/AndroidRuntime: FATAL EXCEPTION: gcm-task#1
                                                                      Process: com.google.android.gms, PID: 1883
                                                                      java.lang.UnsatisfiedLinkError: Couldn't load gmscore from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/system/framework/com.android.location.provider.jar", zip file "/system/priv-app/com.google.android.gms-1.apk", zip file "/data/data/com.google.android.gms/code_cache/secondary-dexes/com.google.android.gms-1.apk.classes2.zip", zip file "/data/data/com.google.android.gms/code_cache/secondary-dexes/com.google.android.gms-1.apk.classes3.zip", zip file "/data/data/com.google.android.gms/code_cache/secondary-dexes/com.google.android.gms-1.apk.classes4.zip", zip file "/data/data/com.google.android.gms/code_cache/secondary-dexes/com.google.android.gms-1.apk.classes5.zip"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]]: findLibrary returned null
                                                                          at java.lang.Runtime.loadLibrary(Runtime.java:358)
                                                                          at java.lang.System.loadLibrary(System.java:526)
                                                                          at com.google.android.gms.org.conscrypt.NativeCryptoJni.init(:com.google.android.gms@11509034:1)
                                                                          at com.google.android.gms.org.conscrypt.NativeCrypto.(:com.google.android.gms@11509034:1)
                                                                          at com.google.android.gms.org.conscrypt.OpenSSLContextImpl$TLSv12.(:com.google.android.gms@11509034)
                                                                          at com.google.android.gms.org.conscrypt.OpenSSLContextImpl.getPreferred(:com.google.android.gms@11509034)
                                                                          at com.google.android.gms.common.net.SocketFactoryCreatorImpl.a(:com.google.android.gms@11509034:6)
                                                                          at com.google.android.gms.common.net.SocketFactoryCreatorImpl.newSocketFactory(:com.google.android.gms@11509034:3)
                                                                          at jin.a(:com.google.android.gms@11509034:12)
                                                                          at com.google.android.gms.common.net.SSLCertificateSocketFactory.getDelegate(:com.google.android.gms@11509034:3)
                                                                          at com.google.android.gms.common.net.SSLCertificateSocketFactory.createSocket(:com.google.android.gms@11509034:8)
                                                                          at com.android.okhttp.Connection.upgradeToTls(Connection.java:131)
                                                                          at com.android.okhttp.Connection.connect(Connection.java:107)
                                                                          at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:294)
                                                                          at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
                                                                          at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
                                                                          at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
                                                                          at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:89)
                                                                          at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:197)
                                                                          at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:254)
                                                                          at hgb.a(:com.google.android.gms@11509034:60)
                                                                          at hgb.a(:com.google.android.gms@11509034:186)
                                                                          at com.google.android.gms.checkin.CheckinChimeraService.a(:com.google.android.gms@11509034:149)
                                                                          at com.google.android.gms.checkin.CheckinChimeraService.a(:com.google.android.gms@11509034:199)
                                                                          at pwx.run(:com.google.android.gms@11509034:1)
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                          at java.lang.Thread.run(Thread.java:841)


大概的意思是找不到so库了


原因是我将google play服务放在/system/priv-app/下,(android4.4)

貌似正常安装并不会产生这个错误

解决方法是:

手动将apk内/lib下的.so文件复制到机器的/system/lib/下。



你可能感兴趣的:(坑)