Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1136 Discussions

请问,如何将webrtc引入android module中?(求关闭该话题,自己的问题,已处理)

Somnus_Chen
Beginner
227 Views

12-18 18:54:03.045 8003-8057/? E/art: No implementation found for void org.webrtc.PeerConnectionFactory.nativeInitializeAndroidGlobals(android.content.Context, boolean) (tried Java_org_webrtc_PeerConnectionFactory_nativeInitializeAndroidGlobals and Java_org_webrtc_PeerConnectionFactory_nativeInitializeAndroidGlobals__Landroid_content_Context_2Z)
12-18 18:54:03.045 8003-8057/? W/System.err: java.lang.UnsatisfiedLinkError: No implementation found for void org.webrtc.PeerConnectionFactory.nativeInitializeAndroidGlobals(android.content.Context, boolean) (tried Java_org_webrtc_PeerConnectionFactory_nativeInitializeAndroidGlobals and Java_org_webrtc_PeerConnectionFactory_nativeInitializeAndroidGlobals__Landroid_content_Context_2Z)
12-18 18:54:03.046 8003-8057/? W/System.err:     at org.webrtc.PeerConnectionFactory.nativeInitializeAndroidGlobals(Native Method)
12-18 18:54:03.046 8003-8057/? W/System.err:     at org.webrtc.PeerConnectionFactory.initializeAndroidGlobals(PeerConnectionFactory.java:67)
12-18 18:54:03.046 8003-8057/? W/System.err:     at com.intel.webrtc.base.PCFactory$FactoryHandler.handleMessage(PCFactory.java:269)
12-18 18:54:03.046 8003-8057/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
12-18 18:54:03.046 8003-8057/? W/System.err:     at android.os.Looper.loop(Looper.java:154)
12-18 18:54:03.046 8003-8057/? W/System.err:     at android.os.HandlerThread.run(HandlerThread.java:61)
12-18 18:54:03.047 8003-8057/? I/art: System.exit called, status: -1

请问,我将webrtc做成android的一个module,引入到主工程中,.so文件应该怎么引用?

apply plugin: 'com.android.library'

android {
    compileSdkVersion 23



    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }

    buildTypes {
        release {
            minifyEnabled false
        }
    }
    packagingOptions{
        exclude 'AndroidManifest.xml'
    }
    //配置.so文件的引用
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']  //将so文件路径(jniLibs)指向"libs"路径,这样就可以把so文件打包到APK的lib文件夹中
        }
    }
}

dependencies {
    compile files('libs/woogeenbase.jar')
    compile files('libs/woogeenconference.jar')
    compile files('libs/woogeenp2p.jar')
    compile 'com.facebook.react:react-native:+'
}
0 Kudos
0 Replies
Reply