Cannot resolve webrtc character in Android Studio

I am trying to use webrtc in Android Studio. The libjingle_peerconnection_so.so file is placed in the src / main / jniLibs / arneabi-v7a folder . But when I put in the Java file:

import org.webrtc.DataChannel;

he tells me that he cannot solve "Cannot resolve the webrtc character". Any help was appreciated.

+4
source share
1 answer

At first its ar m eabi-v7a, not ar n eabi-v7a, but this alone will not solve your problem :)

, :

libjingle_peerconnection_so.so WebRTC Java. , Java JNI WebRTC, Java WebRTC. libjingle_peerconnection.jar, "libs" , "src" . , :

  • SRC//jniLibs/armeabi-v7a
  • /libjingle _peerconnection.jar

, .jar . Android Studio Gradle, ('libs/libjingle_peerconnection.jar') .

! pristine.io WebRTC Android Maven (. ). , 'io.pristine: libjingle: 10839 @aar' Gradle . .so . ( WebRTC, , 10839)

+2

Source: https://habr.com/ru/post/1618419/


All Articles