0

에 나는 Sinch에 우는 오류를 받고. 일부 기기에서 문제가 있습니다.Sinch 문제 java.lang.UnsatisfiedLinkError가 안드로이드

Process: com.reach.communications, PID: 14029 
                      java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.reach.communications-1/base.apk"],nativeLibraryDirectories=[/data/app/com.reach.communications-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libsinch-android-rtc.so" 
                       at java.lang.Runtime.loadLibrary(Runtime.java:366) 
                       at java.lang.System.loadLibrary(System.java:988) 
                       at com.sinch.android.rtc.internal.client.DefaultSinchClient.<clinit>(DefaultSinchClient.java:76) 
                       at com.sinch.android.rtc.internal.client.InternalSinchClientFactory.createSinchClient(InternalSinchClientFactory.java:19) 
                       at com.sinch.android.rtc.DefaultSinchClientBuilder.build(DefaultSinchClientBuilder.java:95) 
                       at com.reach.communications.ui.sinch.SinchService.start(SinchService.java:146) 
                       at com.reach.communications.ui.sinch.SinchService.access$200(SinchService.java:19) 
                       at com.reach.communications.ui.sinch.SinchService$SinchServiceInterface.startClient(SinchService.java:50) 
                       at com.reach.communications.ui.Fragment3.setView(Fragment3.java:91) 
                       at com.reach.communications.ui.Fragment3.onCreateView(Fragment3.java:78) 
                       at android.app.Fragment.performCreateView(Fragment.java:2053) 
                       at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:895) 
                       at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1068) 
                       at android.app.BackStackRecord.run(BackStackRecord.java:840) 
                       at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1455) 
                       at android.app.FragmentManagerImpl$1.run(FragmentManager.java:447) 
                       at android.os.Handler.handleCallback(Handler.java:739) 
                       at android.os.Handler.dispatchMessage(Handler.java:95) 
                       at android.os.Looper.loop(Looper.java:135) 
                       at android.app.ActivityThread.main(ActivityThread.java:5273) 
                       at java.lang.reflect.Method.invoke(Native Method) 
                       at java.lang.reflect.Method.invoke(Method.java:372) 
                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908) 
                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703) 

해결 방법을 알려주세요. 나는 android studio를 사용하고 있습니다.

답변

0

/libslibsinch-android-rtc.so lib64에 버전을 추가합니다.

+0

여기서 lib64는 무엇입니까? –

+0

어딘가에'libsinch-android-rtc.so'가 있습니다. 'arm64' 또는'lib64'는 x64 플랫폼 abi 용입니다. 내가 가진 – sakiM

1

이 시도 :

build.gradle

android 
     { 
      compileSdkVersion 23 
      buildToolsVersion "23.0.3" 

defaultConfig 
        { 
         ... 
         //important code, write in target API 22 
         minSdkVersion 15 
         targetSdkVersion 22 
         ... 
        }//end defaultConfig 

sourceSets 
        { 
         main 
           { 

            ... 
            jniLibs.srcDirs = ['src/main/jniLibs'] 
            assets.srcDirs = ['src/main/assets/'] 
            aidl.srcDirs = ['src/main/aidl/'] 
            ... 

           } 

         // Move the tests to tests/java, tests/res, etc... 
         instrumentTest.setRoot('tests') 

         // Move the build types to build-types/<type> 
         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... 
         // This moves them out of them default location under src/<type>/... which would 
         // conflict with src/ being used by the main source set. 
         // Adding new build types or product flavors should be accompanied 
         // by a similar customization. 
         debug.setRoot('build-types/debug') 
         release.setRoot('build-types/release') 
        }//end sourceSets 


        ... 
        ... 
       }//end android 

또 다른 중요한 것은 당신은 src/main/jniLibs에 새 폴더를 만들고 * 거기에 추가 할 필요가

할 .SO 라이브러리.

enter image description here

+0

이미 armeabi-V7A에게) 3) MIPS 4) 86 1), 2), 4) 폴더에 이미 "libsinch - 안드로이드 - RTC가를 폴더를 jniLibs 외 4 개 폴더 1) 2 armeabi이 있습니다. 그래서 "하지만 모든 크기는 다음 단계를 위해 다른 도움이됩니다 –

+0

음 ..."모든 크기가 다름 "이란 뜻은 무엇입니까? ....? – Aspicas

+0

다음 단계는 무엇인지 잊어 버렸습니까? 나는 그것을 해결하지 못한다. –